From 196959fdba5167a9ef9399284a7be65389d29e6e Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Fri, 2 Feb 2024 17:10:34 -0800 Subject: [PATCH] Skip compile-fail tests on Windows for now These tests need a lot of changes to work on Windows, so leave them for now. For example, the expected compiler error message is different (MSVC reports a C2338 error), include paths often contain spaces which we don't currently handle, and the command line needs extra arguments such as /MD to build correctly with Boost. --- modules/test/pyext/src/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/test/pyext/src/__init__.py b/modules/test/pyext/src/__init__.py index b4b281d028..49e0ce8877 100644 --- a/modules/test/pyext/src/__init__.py +++ b/modules/test/pyext/src/__init__.py @@ -339,6 +339,8 @@ def _read_cmake_cache(self, cmake_cache): def assertCompileFails(self, headers, body): """Test that the given C++ code fails to compile with a static assertion.""" + if sys.platform == 'win32': + self.skipTest("No support for Windows yet") libdir = os.path.dirname(IMP.__file__) cmake_cache = os.path.join(libdir, '..', '..', 'CMakeCache.txt') if not os.path.exists(cmake_cache):