summaryrefslogtreecommitdiff
path: root/tests/test_execfile.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-05-17 14:56:40 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-05-17 14:56:40 -0400
commitf5c6fd96beb04ccd7a86817ad5be1163f8409420 (patch)
tree063c9c92cc1ec679c323b310e8e2379fed34e469 /tests/test_execfile.py
parentb52c96fe479e4b30d19dd6be62a032791ac20ba3 (diff)
downloadpython-coveragepy-git-f5c6fd96beb04ccd7a86817ad5be1163f8409420.tar.gz
Avoid a bunch of deprecated functions.
Diffstat (limited to 'tests/test_execfile.py')
-rw-r--r--tests/test_execfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_execfile.py b/tests/test_execfile.py
index 7f672495..2427847e 100644
--- a/tests/test_execfile.py
+++ b/tests/test_execfile.py
@@ -118,11 +118,11 @@ class RunPycFileTest(CoverageTest):
fpyc.write(binary_bytes([0x2a, 0xeb, 0x0d, 0x0a]))
fpyc.close()
- with self.assertRaisesRegexp(NoCode, "Bad magic number in .pyc file"):
+ with self.assertRaisesRegex(NoCode, "Bad magic number in .pyc file"):
run_python_file(pycfile, [pycfile])
def test_no_such_pyc_file(self):
- with self.assertRaisesRegexp(NoCode, "No file to run: 'xyzzy.pyc'"):
+ with self.assertRaisesRegex(NoCode, "No file to run: 'xyzzy.pyc'"):
run_python_file("xyzzy.pyc", [])