Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
12f1191b
Commit
12f1191b
authored
Feb 11, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor test code cleanup
parent
40389081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pyximport/test/test_pyximport.py
pyximport/test/test_pyximport.py
+4
-1
No files found.
pyximport/test/test_pyximport.py
View file @
12f1191b
...
@@ -95,8 +95,9 @@ def test_zip():
...
@@ -95,8 +95,9 @@ def test_zip():
import
test_zip_module
import
test_zip_module
assert
test_zip_module
.
x
==
42
assert
test_zip_module
.
x
==
42
finally
:
finally
:
if
zip_path
in
sys
.
path
:
sys
.
path
.
remove
(
zip_path
)
os
.
remove
(
zip_path
)
os
.
remove
(
zip_path
)
sys
.
path
.
remove
(
zip_path
)
def
test_zip_nonexisting
():
def
test_zip_nonexisting
():
...
@@ -105,6 +106,8 @@ def test_zip_nonexisting():
...
@@ -105,6 +106,8 @@ def test_zip_nonexisting():
import
nonexisting_zip_module
import
nonexisting_zip_module
except
ImportError
:
except
ImportError
:
pass
pass
finally
:
sys
.
path
.
remove
(
"nonexisting_zip_module.zip"
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
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