Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9288338 commit b9c1d3dCopy full SHA for b9c1d3d
1 file changed
Lib/test/test_exceptions.py
@@ -6,6 +6,14 @@
6
print '5. Built-in exceptions'
7
# XXX This is not really enough, each *operation* should be tested!
8
9
+# Reloading the built-in exceptions module failed prior to Py2.2, while it
10
+# should act the same as reloading built-in sys.
11
+try:
12
+ import exceptions
13
+ reload(exceptions)
14
+except ImportError, e:
15
+ raise TestFailed, e
16
+
17
def test_raise_catch(exc):
18
try:
19
raise exc, "spam"
0 commit comments