summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@worldonline.dk>2002-11-01 11:33:00 (GMT)
committerFinn Bock <bckfnn@worldonline.dk>2002-11-01 11:33:00 (GMT)
commit218c5f9691bdbc81b7e3f8a3a2b12d58193e840d (patch)
treef49a43d5aa1cf14ed71b733a7c9c25a6337fbfeb /Lib/test
parentff031cfdf4038d577a8f7b11862a6a396deb2dbc (diff)
downloadcpython-218c5f9691bdbc81b7e3f8a3a2b12d58193e840d.zip
cpython-218c5f9691bdbc81b7e3f8a3a2b12d58193e840d.tar.gz
cpython-218c5f9691bdbc81b7e3f8a3a2b12d58193e840d.tar.bz2
[SF bug 631713] use the import exeption message in the TestFailed
exception.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_frozen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_frozen.py b/Lib/test/test_frozen.py
index 120a85f..dd4fa66 100644
--- a/Lib/test/test_frozen.py
+++ b/Lib/test/test_frozen.py
@@ -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