]> granicus.if.org Git - python/commitdiff
[SF bug 631713] use the import exeption message in the TestFailed
authorFinn Bock <bckfnn@worldonline.dk>
Fri, 1 Nov 2002 11:33:00 +0000 (11:33 +0000)
committerFinn Bock <bckfnn@worldonline.dk>
Fri, 1 Nov 2002 11:33:00 +0000 (11:33 +0000)
exception.

Lib/test/test_frozen.py

index 120a85f67a4051f45b819d0a2c51b256fa4c617a..dd4fa66cd895dd13641e25f6e868699bd4b1b495 100644 (file)
@@ -6,17 +6,17 @@ import sys, os
 try:
     import __hello__
 except ImportError, x:
-    raise TestFailed, "import __hello__ failed:", x
+    raise TestFailed, "import __hello__ failed:" + str(x)
 
 try:
     import __phello__
 except ImportError, x:
-    raise TestFailed, "import __phello__ failed:", x
+    raise TestFailed, "import __phello__ failed:" + str(x)
 
 try:
     import __phello__.spam
 except ImportError, x:
-    raise TestFailed, "import __phello__.spam failed:", x
+    raise TestFailed, "import __phello__.spam failed:" + str(x)
 
 try:
     import __phello__.foo