diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-12-01 02:32:32 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-12-01 02:32:32 +0000 |
commit | 2956b3ca751b9a9e7ab7cc09fae88b2568780cb9 (patch) | |
tree | 1244669e72c6250aeaf5379228c641250998a00d /Lib/test/test_runpy.py | |
parent | 8100b84551e9b3d2cb673518ff95dbcc5c21f603 (diff) | |
download | cpython-2956b3ca751b9a9e7ab7cc09fae88b2568780cb9.tar.gz |
#10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
Diffstat (limited to 'Lib/test/test_runpy.py')
-rw-r--r-- | Lib/test/test_runpy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_runpy.py b/Lib/test/test_runpy.py index 94e47d688e..ad3ab397f4 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) |