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
a9719057
Commit
a9719057
authored
Mar 12, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#8942: add test for __path__ contents in zipimport tests
Patch by Tatiana Al-Chueyr.
parent
2b695a46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_zipimport.py
Lib/test/test_zipimport.py
+4
-0
No files found.
Lib/test/test_zipimport.py
View file @
a9719057
...
...
@@ -205,6 +205,10 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
mod
=
zi
.
load_module
(
TESTPACK
)
self
.
assertEqual
(
zi
.
get_filename
(
TESTPACK
),
mod
.
__file__
)
existing_pack_path
=
__import__
(
TESTPACK
).
__path__
[
0
]
expected_path_path
=
os
.
path
.
join
(
TEMP_ZIP
,
TESTPACK
)
self
.
assertEqual
(
existing_pack_path
,
expected_path_path
)
self
.
assertEqual
(
zi
.
is_package
(
packdir
+
'__init__'
),
False
)
self
.
assertEqual
(
zi
.
is_package
(
packdir
+
TESTPACK2
),
True
)
self
.
assertEqual
(
zi
.
is_package
(
packdir2
+
TESTMOD
),
False
)
...
...
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