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
0b03efae
Commit
0b03efae
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
ed02fd9b
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 @
0b03efae
...
@@ -353,6 +353,8 @@ class CythonCompileTestCase(unittest.TestCase):
...
@@ -353,6 +353,8 @@ class CythonCompileTestCase(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
from
Cython.Compiler
import
Options
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
Options
.
warning_errors
=
self
.
warning_errors
if
self
.
workdir
not
in
sys
.
path
:
if
self
.
workdir
not
in
sys
.
path
:
...
@@ -360,7 +362,8 @@ class CythonCompileTestCase(unittest.TestCase):
...
@@ -360,7 +362,8 @@ class CythonCompileTestCase(unittest.TestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
from
Cython.Compiler
import
Options
from
Cython.Compiler
import
Options
Options
.
warning_errors
=
False
for
name
,
value
in
self
.
_saved_options
:
setattr
(
Options
,
name
,
value
)
try
:
try
:
sys
.
path
.
remove
(
self
.
workdir
)
sys
.
path
.
remove
(
self
.
workdir
)
...
@@ -738,6 +741,11 @@ class CythonUnitTestCase(CythonRunTestCase):
...
@@ -738,6 +741,11 @@ class CythonUnitTestCase(CythonRunTestCase):
class
CythonPyregrTestCase
(
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
):
def
_run_unittest
(
self
,
result
,
*
classes
):
"""Run tests from unittest.TestCase-derived classes."""
"""Run tests from unittest.TestCase-derived classes."""
valid_types
=
(
unittest
.
TestSuite
,
unittest
.
TestCase
)
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