Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
c6338dae
Commit
c6338dae
authored
Nov 25, 2008
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second fix for issue #4373
parent
a122c288
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/test_build_ext.py
tests/test_build_ext.py
+10
-0
No files found.
tests/test_build_ext.py
View file @
c6338dae
...
...
@@ -11,6 +11,10 @@ from distutils import sysconfig
import
unittest
from
test
import
support
# http://bugs.python.org/issue4373
# Don't load the xx module more than once.
ALREADY_TESTED
=
False
class
BuildExtTestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
# Create a simple test environment
...
...
@@ -23,6 +27,7 @@ class BuildExtTestCase(unittest.TestCase):
shutil
.
copy
(
xx_c
,
self
.
tmp_dir
)
def
test_build_ext
(
self
):
global
ALREADY_TESTED
xx_c
=
os
.
path
.
join
(
self
.
tmp_dir
,
'xxmodule.c'
)
xx_ext
=
Extension
(
'xx'
,
[
xx_c
])
dist
=
Distribution
({
'name'
:
'xx'
,
'ext_modules'
:
[
xx_ext
]})
...
...
@@ -45,6 +50,11 @@ class BuildExtTestCase(unittest.TestCase):
finally
:
sys
.
stdout
=
old_stdout
if
ALREADY_TESTED
:
return
else
:
ALREADY_TESTED
=
True
import
xx
for
attr
in
(
'error'
,
'foo'
,
'new'
,
'roj'
):
...
...
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