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
32eda021
Commit
32eda021
authored
Nov 02, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support running tests with language level 3 (mostly run the CPython regression tests)
parent
8c5adff1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
runtests.py
runtests.py
+12
-2
No files found.
runtests.py
View file @
32eda021
...
@@ -850,6 +850,9 @@ if __name__ == '__main__':
...
@@ -850,6 +850,9 @@ if __name__ == '__main__':
parser
.
add_option
(
"-T"
,
"--ticket"
,
dest
=
"tickets"
,
parser
.
add_option
(
"-T"
,
"--ticket"
,
dest
=
"tickets"
,
action
=
"append"
,
action
=
"append"
,
help
=
"a bug ticket number to run the respective test in 'tests/*'"
)
help
=
"a bug ticket number to run the respective test in 'tests/*'"
)
parser
.
add_option
(
"-3"
,
dest
=
"language_level"
,
action
=
"store_const"
,
const
=
3
,
default
=
2
,
help
=
"set language level to Python 3 (useful for running the CPython regression tests)'"
)
parser
.
add_option
(
"--xml-output"
,
dest
=
"xml_output_dir"
,
metavar
=
"DIR"
,
parser
.
add_option
(
"--xml-output"
,
dest
=
"xml_output_dir"
,
metavar
=
"DIR"
,
help
=
"write test results in XML to directory DIR"
)
help
=
"write test results in XML to directory DIR"
)
parser
.
add_option
(
"--exit-ok"
,
dest
=
"exit_ok"
,
default
=
False
,
parser
.
add_option
(
"--exit-ok"
,
dest
=
"exit_ok"
,
default
=
False
,
...
@@ -918,13 +921,13 @@ if __name__ == '__main__':
...
@@ -918,13 +921,13 @@ if __name__ == '__main__':
if
not
os
.
path
.
exists
(
WORKDIR
):
if
not
os
.
path
.
exists
(
WORKDIR
):
os
.
makedirs
(
WORKDIR
)
os
.
makedirs
(
WORKDIR
)
sys
.
stderr
.
write
(
"Python %s
\
n
"
%
sys
.
version
)
sys
.
stderr
.
write
(
"
\
n
"
)
if
WITH_CYTHON
:
if
WITH_CYTHON
:
from
Cython.Compiler.Version
import
version
from
Cython.Compiler.Version
import
version
sys
.
stderr
.
write
(
"Running tests against Cython %s
\
n
"
%
version
)
sys
.
stderr
.
write
(
"Running tests against Cython %s
\
n
"
%
version
)
else
:
else
:
sys
.
stderr
.
write
(
"Running tests without Cython.
\
n
"
)
sys
.
stderr
.
write
(
"Running tests without Cython.
\
n
"
)
sys
.
stderr
.
write
(
"Python %s
\
n
"
%
sys
.
version
)
sys
.
stderr
.
write
(
"
\
n
"
)
if
options
.
with_refnanny
:
if
options
.
with_refnanny
:
from
pyximport.pyxbuild
import
pyx_to_dll
from
pyximport.pyxbuild
import
pyx_to_dll
...
@@ -939,6 +942,13 @@ if __name__ == '__main__':
...
@@ -939,6 +942,13 @@ if __name__ == '__main__':
sys
.
stderr
.
write
(
"Disabling forked testing to support XML test output
\
n
"
)
sys
.
stderr
.
write
(
"Disabling forked testing to support XML test output
\
n
"
)
options
.
fork
=
False
options
.
fork
=
False
if
WITH_CYTHON
and
options
.
language_level
==
3
:
sys
.
stderr
.
write
(
"Using Cython language level 3.
\
n
"
)
from
Cython.Compiler
import
Options
Options
.
directive_defaults
[
'language_level'
]
=
3
sys
.
stderr
.
write
(
"
\
n
"
)
test_bugs
=
False
test_bugs
=
False
if
options
.
tickets
:
if
options
.
tickets
:
for
ticket_number
in
options
.
tickets
:
for
ticket_number
in
options
.
tickets
:
...
...
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