From: Stefan Behnel Date: Fri, 11 Jul 2008 06:52:31 +0000 (+0200) Subject: fix source filename assembly in test runner X-Git-Tag: 0.9.8.1~123^2~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fddbab389bdf590b0b7534694d3095a53b6630ea;p=cython.git fix source filename assembly in test runner --- diff --git a/runtests.py b/runtests.py index 2e6a9162..11037acc 100644 --- a/runtests.py +++ b/runtests.py @@ -149,9 +149,9 @@ class CythonCompileTestCase(unittest.TestCase): return source_file def split_source_and_output(self, directory, module, workdir): - source_file = os.path.join(directory, module) + source_file = os.path.join(directory, module) + '.pyx' source_and_output = open( - self.find_module_source_file(source_file), 'rU') + self.find_module_source_file(source_file), 'rU') out = open(os.path.join(workdir, module + '.pyx'), 'w') for line in source_and_output: last_line = line