Commit 340bad0a authored by Robert Bradshaw's avatar Robert Bradshaw

Remove .c file to force recompilation regardless of timestamp.

parent 00e9a43b
...@@ -38,10 +38,12 @@ class TestCyCache(CythonTest): ...@@ -38,10 +38,12 @@ class TestCyCache(CythonTest):
self.fresh_cythonize(a_pyx, cache=self.cache_dir) self.fresh_cythonize(a_pyx, cache=self.cache_dir)
self.assertEqual(1, len(self.cache_files('a.c*'))) self.assertEqual(1, len(self.cache_files('a.c*')))
a_contents1 = open(a_c).read() a_contents1 = open(a_c).read()
os.unlink(a_c)
open(a_pyx, 'w').write(content2) open(a_pyx, 'w').write(content2)
self.fresh_cythonize(a_pyx, cache=self.cache_dir) self.fresh_cythonize(a_pyx, cache=self.cache_dir)
a_contents2 = open(a_c).read() a_contents2 = open(a_c).read()
os.unlink(a_c)
self.assertNotEqual(a_contents1, a_contents2, 'C file not changed!') self.assertNotEqual(a_contents1, a_contents2, 'C file not changed!')
self.assertEqual(2, len(self.cache_files('a.c*'))) self.assertEqual(2, len(self.cache_files('a.c*')))
......
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