diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-05-17 14:56:40 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-05-17 14:56:40 -0400 |
commit | f5c6fd96beb04ccd7a86817ad5be1163f8409420 (patch) | |
tree | 063c9c92cc1ec679c323b310e8e2379fed34e469 /tests/test_process.py | |
parent | b52c96fe479e4b30d19dd6be62a032791ac20ba3 (diff) | |
download | python-coveragepy-git-f5c6fd96beb04ccd7a86817ad5be1163f8409420.tar.gz |
Avoid a bunch of deprecated functions.
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index bb110499..e5836567 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -229,7 +229,7 @@ class ProcessTest(CoverageTest): self.run_command("coverage run fleeting.py") os.remove("fleeting.py") out = self.run_command("coverage html -d htmlcov") - self.assertRegexpMatches(out, "No source for code: '.*fleeting.py'") + self.assertRegex(out, "No source for code: '.*fleeting.py'") self.assertNotIn("Traceback", out) # It happens that the code paths are different for *.py and other @@ -241,13 +241,13 @@ class ProcessTest(CoverageTest): self.run_command("coverage run fleeting") os.remove("fleeting") status, out = self.run_command_status("coverage html -d htmlcov", 1) - self.assertRegexpMatches(out, "No source for code: '.*fleeting'") + self.assertRegex(out, "No source for code: '.*fleeting'") self.assertNotIn("Traceback", out) self.assertEqual(status, 1) def test_running_missing_file(self): status, out = self.run_command_status("coverage run xyzzy.py", 1) - self.assertRegexpMatches(out, "No file to run: .*xyzzy.py") + self.assertRegex(out, "No file to run: .*xyzzy.py") self.assertNotIn("raceback", out) self.assertNotIn("rror", out) self.assertEqual(status, 1) |