Skip to content

Commit

Permalink
change assert to self.assertXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
pangyoki committed Oct 13, 2020
1 parent d1cb0c4 commit 503d43a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def test_new_directory(self):
stderr=subprocess.PIPE)
stdout, stderr = ps_proc.communicate()

assert "Error" not in str(stderr), "ErrorMessage:\n{}".format(
bytes.decode(stderr))
self.assertFalse("Error" in str(stderr),
"ErrorMessage:\n{}".format(bytes.decode(stderr)))

def test_old_directory(self):
old_directory = [
Expand Down Expand Up @@ -173,7 +173,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

1 comment on commit 503d43a

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.