未验证 提交 6e5034e2 编写于 作者: P pangyoki 提交者: GitHub

fix test directory migration (#27885)

* fix test directory migration

* change assert to self.assertXXX
上级 9a2a4b5f
......@@ -94,8 +94,8 @@ class TestDirectory(unittest.TestCase):
stderr=subprocess.PIPE)
stdout, stderr = ps_proc.communicate()
assert "Error" not in str(stderr), "Error: Can't" \
" import Module {}".format(module)
self.assertFalse("Error" in str(stderr),
"ErrorMessage:\n{}".format(bytes.decode(stderr)))
def test_old_directory(self):
old_directory = [
......@@ -177,7 +177,7 @@ if count != {len_old_directory}:
stderr=subprocess.PIPE)
stdout, stderr = ps_proc.communicate()
assert "Error" not in str(stdout), str(stdout)
self.assertFalse("Error" in str(stdout), bytes.decode(stdout))
if __name__ == '__main__':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册