Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
13dd5858
Commit
13dd5858
authored
Nov 01, 2002
by
Finn Bock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SF bug 631713] use the import exeption message in the TestFailed
exception.
parent
3bba6660
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_frozen.py
Lib/test/test_frozen.py
+3
-3
No files found.
Lib/test/test_frozen.py
View file @
13dd5858
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment