(self)
| 232 | |
| 233 | @pytest.mark.skipif(not HAVE_COMPILER, reason="Missing compiler") |
| 234 | def test_compile1(self): |
| 235 | # Compile source and link the first source |
| 236 | c = customized_ccompiler() |
| 237 | previousDir = os.getcwd() |
| 238 | try: |
| 239 | # Change directory to not screw up directories |
| 240 | os.chdir(self._dir1) |
| 241 | c.compile([os.path.basename(self._src1)], output_dir=self._dir1) |
| 242 | # Ensure that the object exists |
| 243 | assert_(os.path.isfile(self._src1.replace('.c', '.o')) or |
| 244 | os.path.isfile(self._src1.replace('.c', '.obj'))) |
| 245 | finally: |
| 246 | os.chdir(previousDir) |
| 247 | |
| 248 | @pytest.mark.skipif(not HAVE_COMPILER, reason="Missing compiler") |
| 249 | @pytest.mark.skipif('msvc' in repr(ccompiler.new_compiler()), |
nothing calls this directly
no test coverage detected