diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2022-12-14 10:55:10 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2022-12-14 10:55:10 +0100 |
commit | 1ea0da7d0cfbc50deb562bf8b95c871468fc2025 (patch) | |
tree | c774ed41d655840c6e15d17bb4fde27353e3021d /runtests.py | |
parent | cbcda04523900612ef543ac7f99d70f5bfd0ca88 (diff) | |
download | cython-1ea0da7d0cfbc50deb562bf8b95c871468fc2025.tar.gz |
Suppress annoying "Command line warning D9025" messages in test output on Windows.
Diffstat (limited to 'runtests.py')
-rwxr-xr-x | runtests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtests.py b/runtests.py index d0f6b7b20..d2013f1c7 100755 --- a/runtests.py +++ b/runtests.py @@ -1314,6 +1314,12 @@ class CythonCompileTestCase(unittest.TestCase): except CompileError as exc: error = str(exc) stderr = get_stderr() + if stderr and b"Command line warning D9025" in stderr: + # Manually suppress annoying MSVC warnings about overridden CLI arguments. + stderr = b''.join([ + line for line in stderr.splitlines(keepends=True) + if b"Command line warning D9025" not in line + ]) if stderr: # The test module name should always be ASCII, but let's not risk encoding failures. output = b"Compiler output for module " + module.encode('utf-8') + b":\n" + stderr + b"\n" |