summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_runpy.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-12-01 02:32:32 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-12-01 02:32:32 (GMT)
commited3a7d2d601ce1e65b0bacf24676440631158ec8 (patch)
treed8e7df73bc7d9aa2c3cfafd4adb9838dffcea230 /Lib/test/test_runpy.py
parentf10c400b91e44c5c744f4ddc05d90933cba3a56b (diff)
downloadcpython-ed3a7d2d601ce1e65b0bacf24676440631158ec8.zip
cpython-ed3a7d2d601ce1e65b0bacf24676440631158ec8.tar.gz
cpython-ed3a7d2d601ce1e65b0bacf24676440631158ec8.tar.bz2
#10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
Diffstat (limited to 'Lib/test/test_runpy.py')
-rw-r--r--Lib/test/test_runpy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py
index 94e47d6..ad3ab39 100644
--- a/Lib/test/test_runpy.py
+++ b/Lib/test/test_runpy.py
@@ -329,7 +329,7 @@ argv0 = sys.argv[0]
def _check_import_error(self, script_name, msg):
msg = re.escape(msg)
- self.assertRaisesRegexp(ImportError, msg, run_path, script_name)
+ self.assertRaisesRegex(ImportError, msg, run_path, script_name)
def test_basic_script(self):
with temp_dir() as script_dir:
@@ -403,7 +403,7 @@ argv0 = sys.argv[0]
script_name = self._make_test_script(script_dir, mod_name, source)
zip_name, fname = make_zip_script(script_dir, 'test_zip', script_name)
msg = "recursion depth exceeded"
- self.assertRaisesRegexp(RuntimeError, msg, run_path, zip_name)
+ self.assertRaisesRegex(RuntimeError, msg, run_path, zip_name)