From: Stefan Behnel Date: Mon, 1 Sep 2008 07:08:27 +0000 (+0200) Subject: allow keeping .cpp files in test runner X-Git-Tag: 0.9.9.2.beta~63^2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8fb0e4012894f00e835c1abaf48e4e6d1208c817;p=cython.git allow keeping .cpp files in test runner --- diff --git a/runtests.py b/runtests.py index c605f1d2..3b431c1d 100644 --- a/runtests.py +++ b/runtests.py @@ -157,8 +157,9 @@ class CythonCompileTestCase(unittest.TestCase): cleanup_lib_files = self.cleanup_sharedlibs if os.path.exists(self.workdir): for rmfile in os.listdir(self.workdir): - if not cleanup_c_files and rmfile[-2:] in (".c", ".h", ".cpp"): - continue + if not cleanup_c_files: + if rmfile[-2:] in (".c", ".h") or rmfile[-4:] == ".cpp": + continue if not cleanup_lib_files and rmfile.endswith(".so") or rmfile.endswith(".dll"): continue if self.annotate and rmfile.endswith(".html"):