Skip to content

Commit

Permalink
fix test directory migration (#27885)
Browse files Browse the repository at this point in the history
* fix test directory migration

* change assert to self.assertXXX
  • Loading branch information
pangyoki authored Oct 14, 2020
1 parent 9a2a4b5 commit 6e5034e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def test_new_directory(self):
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 = [
Expand Down Expand Up @@ -177,7 +177,7 @@ def test_old_directory(self):
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__':
Expand Down

0 comments on commit 6e5034e

Please sign in to comment.