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
553b552b
Commit
553b552b
authored
Jul 28, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more directive default references.
parent
295fdc83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
runtests.py
runtests.py
+3
-3
No files found.
runtests.py
View file @
553b552b
...
@@ -648,7 +648,7 @@ class CythonCompileTestCase(unittest.TestCase):
...
@@ -648,7 +648,7 @@ class CythonCompileTestCase(unittest.TestCase):
self._saved_default_directives = list(Options.get_directive_defaults().items())
self._saved_default_directives = list(Options.get_directive_defaults().items())
Options.warning_errors = self.warning_errors
Options.warning_errors = self.warning_errors
if sys.version_info >= (3, 4):
if sys.version_info >= (3, 4):
Options.directive_defaults['autotestdict'] = False
Options.
_
directive_defaults['autotestdict'] = False
if not os.path.exists(self.workdir):
if not os.path.exists(self.workdir):
os.makedirs(self.workdir)
os.makedirs(self.workdir)
...
@@ -659,7 +659,7 @@ class CythonCompileTestCase(unittest.TestCase):
...
@@ -659,7 +659,7 @@ class CythonCompileTestCase(unittest.TestCase):
from Cython.Compiler import Options
from Cython.Compiler import Options
for name, value in self._saved_options:
for name, value in self._saved_options:
setattr(Options, name, value)
setattr(Options, name, value)
Options.directive_defaults = dict(self._saved_default_directives)
Options.
_
directive_defaults = dict(self._saved_default_directives)
unpatch_inspect_isfunction()
unpatch_inspect_isfunction()
try:
try:
...
@@ -1197,7 +1197,7 @@ class CythonPyregrTestCase(CythonRunTestCase):
...
@@ -1197,7 +1197,7 @@ class CythonPyregrTestCase(CythonRunTestCase):
from Cython.Compiler import Options
from Cython.Compiler import Options
Options.error_on_unknown_names = False
Options.error_on_unknown_names = False
Options.error_on_uninitialized = False
Options.error_on_uninitialized = False
Options.directive_defaults.update(dict(
Options.
_
directive_defaults.update(dict(
binding=True, always_allow_keywords=True,
binding=True, always_allow_keywords=True,
set_initial_path="SOURCEFILE"))
set_initial_path="SOURCEFILE"))
patch_inspect_isfunction()
patch_inspect_isfunction()
...
...
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