[Python-checkins] python/dist/src/Lib/test test_frozen.py,1.3,1.4
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Wed, 08 Jan 2003 08:30:57 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv28768/Lib/test
Modified Files:
test_frozen.py
Log Message:
n the Mac the frozen import that should fail actually succeeds, and we know it, so skip the test in stead of confusing the end user.
Index: test_frozen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_frozen.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_frozen.py 1 Nov 2002 11:33:00 -0000 1.3
--- test_frozen.py 8 Jan 2003 16:30:54 -0000 1.4
***************
*** 19,26 ****
raise TestFailed, "import __phello__.spam failed:" + str(x)
! try:
! import __phello__.foo
! except ImportError:
! pass
! else:
! raise TestFailed, "import __phello__.foo should have failed"
--- 19,27 ----
raise TestFailed, "import __phello__.spam failed:" + str(x)
! if sys.platform != "mac": # On the Mac this import does succeed.
! try:
! import __phello__.foo
! except ImportError:
! pass
! else:
! raise TestFailed, "import __phello__.foo should have failed"