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

bckfnn@users.sourceforge.net bckfnn@users.sourceforge.net
Fri, 01 Nov 2002 03:33:03 -0800


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

Modified Files:
	test_frozen.py 
Log Message:
[SF bug 631713] use the import exeption message in the TestFailed
exception.



Index: test_frozen.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_frozen.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_frozen.py	30 Jul 2002 23:26:01 -0000	1.2
--- test_frozen.py	1 Nov 2002 11:33:00 -0000	1.3
***************
*** 7,21 ****
      import __hello__
  except ImportError, x:
!     raise TestFailed, "import __hello__ failed:", x
  
  try:
      import __phello__
  except ImportError, x:
!     raise TestFailed, "import __phello__ failed:", x
  
  try:
      import __phello__.spam
  except ImportError, x:
!     raise TestFailed, "import __phello__.spam failed:", x
  
  try:
--- 7,21 ----
      import __hello__
  except ImportError, x:
!     raise TestFailed, "import __hello__ failed:" + str(x)
  
  try:
      import __phello__
  except ImportError, x:
!     raise TestFailed, "import __phello__ failed:" + str(x)
  
  try:
      import __phello__.spam
  except ImportError, x:
!     raise TestFailed, "import __phello__.spam failed:" + str(x)
  
  try: