1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed 10d502e

fix collection of test_lib_pypy tests when runappdirect is set
(transplanted from 5acfa3319a452ba70b7b04a21525e4d66aa242a9)

  • Participants
  • Parent commits 78a4037
  • Branches default

Comments (0)

Files changed (1)

File pypy/conftest.py

View file
  • Ignore whitespace
         if self.config.option.runappdirect:
             # only collect regular tests if we are in an 'app_test' directory,
             # or in test_lib_pypy
-            names = self.listnames()
-            return "app_test" in names or "test_lib_pypy" in names
-        else:
-            return True
+            for name in self.listnames():
+                if "app_test" in name or "test_lib_pypy" in name:
+                    return True
+            return False
+        return True
 
     def funcnamefilter(self, name):
         if name.startswith('test_'):