[Python-checkins] CVS: python/dist/src/Lib/test test_exceptions.py,1.12,1.13
Barry Warsaw
bwarsaw@users.sourceforge.net
Mon, 13 Aug 2001 16:07:02 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv28969
Modified Files:
test_exceptions.py
Log Message:
reload(exceptions) should not raise an ImportError, but should act
just like reload(sys). Test that this is so. Closes SF bug #422004.
Index: test_exceptions.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_exceptions.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_exceptions.py 2001/02/01 22:48:12 1.12
--- test_exceptions.py 2001/08/13 23:07:00 1.13
***************
*** 7,10 ****
--- 7,18 ----
# XXX This is not really enough, each *operation* should be tested!
+ # 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, e:
+ raise TestFailed, e
+
def test_raise_catch(exc):
try: