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
61e85cec
Commit
61e85cec
authored
Aug 27, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another embed test fix for Python 2.4
parent
1422b74f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
runtests.py
runtests.py
+8
-2
No files found.
runtests.py
View file @
61e85cec
...
@@ -646,9 +646,15 @@ class EmbedTest(unittest.TestCase):
...
@@ -646,9 +646,15 @@ class EmbedTest(unittest.TestCase):
def
test_embed
(
self
):
def
test_embed
(
self
):
from
distutils
import
sysconfig
from
distutils
import
sysconfig
libname
=
sysconfig
.
get_config_var
(
'LIBRARY'
)
libdir
=
sysconfig
.
get_config_var
(
'LIBDIR'
)
libdir
=
sysconfig
.
get_config_var
(
'LIBDIR'
)
if
not
os
.
path
.
isdir
(
libdir
):
if
not
os
.
path
.
isdir
(
libdir
)
or
libname
not
in
os
.
listdir
(
libdir
):
libdir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
executable
),
'../lib'
)
libdir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
executable
),
'..'
,
'lib'
)
if
not
os
.
path
.
isdir
(
libdir
)
or
libname
not
in
os
.
listdir
(
libdir
):
libdir
=
os
.
path
.
join
(
libdir
,
'python%d.%d'
%
sys
.
version_info
[:
2
],
'config'
)
if
not
os
.
path
.
isdir
(
libdir
)
or
libname
not
in
os
.
listdir
(
libdir
):
# report the error for the original directory
libdir
=
sysconfig
.
get_config_var
(
'LIBDIR'
)
self
.
assert_
(
os
.
system
(
self
.
assert_
(
os
.
system
(
"make PYTHON='%s' LIBDIR1='%s' test > make.output"
%
(
sys
.
executable
,
libdir
))
==
0
)
"make PYTHON='%s' LIBDIR1='%s' test > make.output"
%
(
sys
.
executable
,
libdir
))
==
0
)
try
:
try
:
...
...
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