Commit da37b693 authored by Stefan Behnel's avatar Stefan Behnel

support setting "Options.error_on_unknown_names=False" via test tag

parent ab805949
......@@ -719,6 +719,10 @@ class CythonCompileTestCase(unittest.TestCase):
if extra_compile_options is None:
extra_compile_options = {}
if 'allow_unknown_names' in self.tags['tag']:
from Cython.Compiler import Options
Options.error_on_unknown_names = False
try:
CompilationOptions
except NameError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment