mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[SF bug 631713] use the import exeption message in the TestFailed
exception.
This commit is contained in:
parent
ff031cfdf4
commit
218c5f9691
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue