Author: David Schneider <[email protected]>
Branch: 
Changeset: r62893:bc465cb0b6a7
Date: 2013-03-30 19:08 +0100
http://bitbucket.org/pypy/pypy/changeset/bc465cb0b6a7/

Log:    Check if base directory exists while collecting tests

diff --git a/testrunner/runner.py b/testrunner/runner.py
--- a/testrunner/runner.py
+++ b/testrunner/runner.py
@@ -315,9 +315,12 @@
     def collect_testdirs(self, testdirs, p=None):
         if p is None:
             p = self.root
-            
+
         reldir = self.reltoroot(p)
-        entries = [p1 for p1 in p.listdir() if p1.check(dotfile=0)]
+        if p.check():
+            entries = [p1 for p1 in p.listdir() if p1.check(dotfile=0)]
+        else:
+            entries = []
         entries.sort()
 
         if p != self.root:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to