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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
1422b74f
Commit
1422b74f
authored
Aug 27, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
retry by moving stupidly misplaced fix
parent
2302a576
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
runtests.py
runtests.py
+6
-6
No files found.
runtests.py
View file @
1422b74f
...
@@ -633,12 +633,8 @@ class EmbedTest(unittest.TestCase):
...
@@ -633,12 +633,8 @@ class EmbedTest(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
old_dir
=
os
.
getcwd
()
self
.
old_dir
=
os
.
getcwd
()
os
.
chdir
(
self
.
working_dir
)
os
.
chdir
(
self
.
working_dir
)
from
distutils
import
sysconfig
libdir
=
sysconfig
.
get_config_var
(
'LIBDIR'
)
if
not
os
.
path
.
isdir
(
libdir
):
libdir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
executable
),
'../lib'
)
os
.
system
(
os
.
system
(
"make PYTHON='%s'
LIBDIR1='%s' clean > /dev/null"
%
(
sys
.
executable
,
libdir
)
)
"make PYTHON='%s'
clean > /dev/null"
%
sys
.
executable
)
def
tearDown
(
self
):
def
tearDown
(
self
):
try
:
try
:
...
@@ -649,8 +645,12 @@ class EmbedTest(unittest.TestCase):
...
@@ -649,8 +645,12 @@ class EmbedTest(unittest.TestCase):
os
.
chdir
(
self
.
old_dir
)
os
.
chdir
(
self
.
old_dir
)
def
test_embed
(
self
):
def
test_embed
(
self
):
from
distutils
import
sysconfig
libdir
=
sysconfig
.
get_config_var
(
'LIBDIR'
)
if
not
os
.
path
.
isdir
(
libdir
):
libdir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
executable
),
'../lib'
)
self
.
assert_
(
os
.
system
(
self
.
assert_
(
os
.
system
(
"make PYTHON='%s'
test > make.output"
%
sys
.
executable
)
==
0
)
"make PYTHON='%s'
LIBDIR1='%s' test > make.output"
%
(
sys
.
executable
,
libdir
)
)
==
0
)
try
:
try
:
os
.
remove
(
'make.output'
)
os
.
remove
(
'make.output'
)
except
OSError
:
except
OSError
:
...
...
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