Commit 57036fdf authored by Lisandro Dalcin's avatar Lisandro Dalcin

Windows: Workaround distutils consuming C compiler stderr stream

parent 8a9282c8
...@@ -945,7 +945,8 @@ class CythonCompileTestCase(unittest.TestCase): ...@@ -945,7 +945,8 @@ class CythonCompileTestCase(unittest.TestCase):
with captured_fd(2) as get_stderr: with captured_fd(2) as get_stderr:
so_path = self.run_distutils(test_directory, module, workdir, incdir) so_path = self.run_distutils(test_directory, module, workdir, incdir)
except Exception: except Exception:
if 'cerror' in self.tags['tag'] and get_stderr and get_stderr(): if ('cerror' in self.tags['tag'] and
((get_stderr and get_stderr()) or sys.platform == 'win32')):
show_output = False # expected C compiler failure show_output = False # expected C compiler failure
else: else:
raise raise
......
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