From 3fd21ede4c49dbdeccf8f31b95daf7bd993dec5f Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Sat, 1 Aug 2015 14:55:23 -0700 Subject: TST: alternatively assert existence of msvc .obj files Fixes test_system_info.TestSystemInfoReading.test_compile1 failure on Windows --- numpy/distutils/tests/test_system_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/distutils/tests/test_system_info.py') diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py index 205f53d27..16cb6ecf7 100644 --- a/numpy/distutils/tests/test_system_info.py +++ b/numpy/distutils/tests/test_system_info.py @@ -179,7 +179,8 @@ class TestSystemInfoReading(TestCase): os.chdir(self._dir1) c.compile([os.path.basename(self._src1)], output_dir=self._dir1) # Ensure that the object exists - assert_(os.path.isfile(self._src1.replace('.c', '.o'))) + assert_(os.path.isfile(self._src1.replace('.c', '.o')) or + os.path.isfile(self._src1.replace('.c', '.obj'))) os.chdir(previousDir) except OSError: pass -- cgit v1.2.1