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
Gwenaël Samain
cython
Commits
d6027cb2
Commit
d6027cb2
authored
13 years ago
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Python 3 testrunner and give a warning for Python 2 builds without debug symbols
parent
f0288806
master
nogil_cypclass_acthon_on_rc8v3
snippets_article
nogil_cypclass_rc8
nogil_cypclass_lock_on_rc8v3
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
Cython/Debugger/Tests/TestLibCython.py
Cython/Debugger/Tests/TestLibCython.py
+2
-1
Cython/Debugger/Tests/test_libcython_in_gdb.py
Cython/Debugger/Tests/test_libcython_in_gdb.py
+1
-1
runtests.py
runtests.py
+14
-0
No files found.
Cython/Debugger/Tests/TestLibCython.py
View file @
d6027cb2
...
...
@@ -197,10 +197,11 @@ class TestAll(GdbDebuggerTestCase):
return
out
,
err
=
self
.
p
.
communicate
()
err
=
err
.
decode
(
'UTF-8'
)
border
=
'*'
*
30
start
=
'%s v INSIDE GDB v %s'
%
(
border
,
border
)
end
=
'%s ^ INSIDE GDB ^ %s'
%
(
border
,
border
)
errmsg
=
'
\
n
%s
\
n
%s%s'
%
(
start
,
err
.
decode
(
'UTF-8'
)
,
end
)
errmsg
=
'
\
n
%s
\
n
%s%s'
%
(
start
,
err
,
end
)
self
.
assertEquals
(
0
,
self
.
p
.
wait
(),
errmsg
)
sys
.
stderr
.
write
(
err
)
...
...
This diff is collapsed.
Click to expand it.
Cython/Debugger/Tests/test_libcython_in_gdb.py
View file @
d6027cb2
...
...
@@ -426,7 +426,7 @@ def run_unittest_in_module(modulename):
"debugging information. Either compile python with "
"-g or get a debug build (configure with --with-pydebug)."
)
warnings
.
warn
(
msg
)
os
.
_exit
(
1
)
os
.
_exit
(
0
)
else
:
m
=
__import__
(
modulename
,
fromlist
=
[
''
])
tests
=
inspect
.
getmembers
(
m
,
inspect
.
isclass
)
...
...
This diff is collapsed.
Click to expand it.
runtests.py
View file @
d6027cb2
...
...
@@ -78,6 +78,15 @@ VER_DEP_MODULES = {
'
run
.
special_methods_T561_py2
']),
}
# files that should not be converted to Python 3 code with 2to3
KEEP_2X_FILES = [
os.path.join('
Cython
', '
Debugger
', '
Tests
', '
test_libcython_in_gdb
.
py
'),
os.path.join('
Cython
', '
Debugger
', '
Tests
', '
test_libpython_in_gdb
.
py
'),
os.path.join('
Cython
', '
Debugger
', '
libcython
.
py
'),
os.path.join('
Cython
', '
Debugger
', '
libpython
.
py
'),
]
INCLUDE_DIRS = [ d for d in os.getenv('
INCLUDE
', '').split(os.pathsep) if d ]
CFLAGS = os.getenv('
CFLAGS
', '').split()
...
...
@@ -932,9 +941,14 @@ def refactor_for_py3(distdir, cy3_dir):
recursive-exclude Cython *
recursive-include Cython *.py *.pyx *.pxd
recursive-include Cython/Debugger/Tests *
include runtests.py
'''
)
sys
.
path
.
insert
(
0
,
cy3_dir
)
for
keep_2x_file
in
KEEP_2X_FILES
:
destfile
=
os
.
path
.
join
(
cy3_dir
,
keep_2x_file
)
shutil
.
copy
(
keep_2x_file
,
destfile
)
class
PendingThreadsError
(
RuntimeError
):
pass
...
...
This diff is collapsed.
Click to expand it.
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