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
06e37587
Commit
06e37587
authored
Jun 23, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to further debug occasional buildbot failure
parent
78157b3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Lib/test/test_imp.py
Lib/test/test_imp.py
+6
-0
No files found.
Lib/test/test_imp.py
View file @
06e37587
...
@@ -320,6 +320,12 @@ class PEP3147Tests(unittest.TestCase):
...
@@ -320,6 +320,12 @@ class PEP3147Tests(unittest.TestCase):
'/foo/bar/foo.cpython-32.foo.pyc'
)
'/foo/bar/foo.cpython-32.foo.pyc'
)
def
test_package___file__
(
self
):
def
test_package___file__
(
self
):
try
:
m
=
__import__
(
'pep3147'
)
except
ImportError
:
pass
else
:
self
.
fail
(
"pep3147 module already exists: %r"
%
(
m
,))
# Test that a package's __file__ points to the right source directory.
# Test that a package's __file__ points to the right source directory.
os
.
mkdir
(
'pep3147'
)
os
.
mkdir
(
'pep3147'
)
sys
.
path
.
insert
(
0
,
os
.
curdir
)
sys
.
path
.
insert
(
0
,
os
.
curdir
)
...
...
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