diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-29 23:37:32 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-29 23:37:32 (GMT) |
commit | 3add4d78ff9f5de02e2c0de09efe9a9b5317539f (patch) | |
tree | c61c6a122b33537814bcc643300f10759fa81010 /Lib/test/test_pkgimport.py | |
parent | e0281cab810c30a23cf2490704e0f85aa4751e83 (diff) | |
download | cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.zip cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.gz cpython-3add4d78ff9f5de02e2c0de09efe9a9b5317539f.tar.bz2 |
Raise statement normalization in Lib/test/.
Diffstat (limited to 'Lib/test/test_pkgimport.py')
-rw-r--r-- | Lib/test/test_pkgimport.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py index 574d1db..316ea83 100644 --- a/Lib/test/test_pkgimport.py +++ b/Lib/test/test_pkgimport.py @@ -51,7 +51,7 @@ class TestImport(unittest.TestCase): self.rewrite_file('for') try: __import__(self.module_name) except SyntaxError: pass - else: raise RuntimeError, 'Failed to induce SyntaxError' + else: raise RuntimeError('Failed to induce SyntaxError') self.assert_(self.module_name not in sys.modules and not hasattr(sys.modules[self.package_name], 'foo')) @@ -65,7 +65,7 @@ class TestImport(unittest.TestCase): try: __import__(self.module_name) except NameError: pass - else: raise RuntimeError, 'Failed to induce NameError.' + else: raise RuntimeError('Failed to induce NameError.') # ...now change the module so that the NameError doesn't # happen |