summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-02-26 22:22:47 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2007-02-26 22:22:47 +0000
commit2633c69fae7e413b2b64b01d8c0c901ae649a225 (patch)
tree144a1f97f427f019a8ddaae96a8f0da6a09df985 /Lib/test/test_exceptions.py
parentf543348fff32ae20a9fd2c7f70a3549a3280048c (diff)
downloadcpython-git-2633c69fae7e413b2b64b01d8c0c901ae649a225.tar.gz
Remove the exceptions builtin module, all the exceptions are already builtin.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 4891f4be50..0ff3b10dd9 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -15,15 +15,6 @@ from test.test_support import TESTFN, unlink, run_unittest
class ExceptionTests(unittest.TestCase):
- def testReload(self):
- # Reloading the built-in exceptions module failed prior to Py2.2, while it
- # should act the same as reloading built-in sys.
- try:
- import exceptions
- reload(exceptions)
- except ImportError as e:
- self.fail("reloading exceptions: %s" % e)
-
def raise_catch(self, exc, excname):
try:
raise exc, "spam"
@@ -289,7 +280,7 @@ class ExceptionTests(unittest.TestCase):
if type(e) is not exc:
raise
# Verify module name
- self.assertEquals(type(e).__module__, 'exceptions')
+ self.assertEquals(type(e).__module__, '__builtin__')
# Verify no ref leaks in Exc_str()
s = str(e)
for checkArgName in expected: