[Python-checkins] python/dist/src/Lib/test test_frozen.py,1.3,1.3.2.1

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Sun, 05 Jan 2003 15:08:45 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv10405

Modified Files:
      Tag: r23a1-branch
	test_frozen.py 
Log Message:
On 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.3.2.1
diff -C2 -d -r1.3 -r1.3.2.1
*** test_frozen.py	1 Nov 2002 11:33:00 -0000	1.3
--- test_frozen.py	5 Jan 2003 23:08:42 -0000	1.3.2.1
***************
*** 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"