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
Boxiang Sun
cython
Commits
8c54bc64
Commit
8c54bc64
authored
Apr 21, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable unknown names check for pyregr tests
parent
ab7f8aad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
runtests.py
runtests.py
+9
-1
No files found.
runtests.py
View file @
8c54bc64
...
...
@@ -353,6 +353,8 @@ class CythonCompileTestCase(unittest.TestCase):
def
setUp
(
self
):
from
Cython.Compiler
import
Options
self
.
_saved_options
=
[
(
name
,
getattr
(
Options
,
name
))
for
name
in
(
'warning_errors'
,
'error_on_unknown_names'
)
]
Options
.
warning_errors
=
self
.
warning_errors
if
self
.
workdir
not
in
sys
.
path
:
...
...
@@ -360,7 +362,8 @@ class CythonCompileTestCase(unittest.TestCase):
def
tearDown
(
self
):
from
Cython.Compiler
import
Options
Options
.
warning_errors
=
False
for
name
,
value
in
self
.
_saved_options
:
setattr
(
Options
,
name
,
value
)
try
:
sys
.
path
.
remove
(
self
.
workdir
)
...
...
@@ -738,6 +741,11 @@ class CythonUnitTestCase(CythonRunTestCase):
class
CythonPyregrTestCase
(
CythonRunTestCase
):
def
setUp
(
self
):
CythonRunTestCase
.
setUp
(
self
)
from
Cython.Compiler
import
Options
Options
.
error_on_unknown_names
=
False
def
_run_unittest
(
self
,
result
,
*
classes
):
"""Run tests from unittest.TestCase-derived classes."""
valid_types
=
(
unittest
.
TestSuite
,
unittest
.
TestCase
)
...
...
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