Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/test_exit_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_exit_code_success(self):
ofile.write(s)
ofile.flush()
sys.argv = ['<ignored>', '--exit-code', tmpfile.name]
self.assertRaisesRegexp(SystemExit, '0', self.run_action)
self.assertRaisesRegex(SystemExit, '0', self.run_action)

def test_exit_code_fail(self):
s = "raise RuntimeError('I am not working nicely')"
Expand All @@ -27,7 +27,7 @@ def test_exit_code_fail(self):
ofile.write(s)
ofile.flush()
sys.argv = ['<ignored>', '--exit-code', tmpfile.name]
self.assertRaisesRegexp(SystemExit, '1', self.run_action)
self.assertRaisesRegex(SystemExit, '1', self.run_action)

def test_no_exit_code_success(self):
s = "raise RuntimeError('I am not working nicely')"
Expand Down