Avoiding an emacs temporary in runtests.py
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Wed, 30 Jul 2008 14:02:23 +0000 (16:02 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Wed, 30 Jul 2008 14:02:23 +0000 (16:02 +0200)
runtests.py

index 2cc789297eba7c40f4b0daec6073d272b04d5f64..f2f582f50e28b2678296dd0200100690cd0082fd 100644 (file)
@@ -85,6 +85,7 @@ class TestBuilder(object):
         for filename in filenames:
             if not (filename.endswith(".pyx") or filename.endswith(".py")):
                 continue
+            if filename.startswith('.'): continue # certain emacs backup files
             if context == 'pyregr' and not filename.startswith('test_'):
                 continue
             module = os.path.splitext(filename)[0]