fix source filename assembly in test runner
authorStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 06:52:31 +0000 (08:52 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 06:52:31 +0000 (08:52 +0200)
runtests.py

index 2e6a91625eedc80851264d95f3b7a5f7c31ff21a..11037acc17cf86526bd45d29ef8b688dcf5e2e71 100644 (file)
@@ -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