From: Finn Bock Date: Fri, 1 Nov 2002 11:33:00 +0000 (+0000) Subject: [SF bug 631713] use the import exeption message in the TestFailed X-Git-Tag: v2.3c1~3626 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=218c5f9691bdbc81b7e3f8a3a2b12d58193e840d;p=python [SF bug 631713] use the import exeption message in the TestFailed exception. --- diff --git a/Lib/test/test_frozen.py b/Lib/test/test_frozen.py index 120a85f67a..dd4fa66cd8 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