[pypy-commit] pypy cleanup-tests: fix collection of test_lib_pypy tests when runappdirect is set
bdkearns
noreply at buildbot.pypy.org
Thu Jan 31 23:02:25 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch: cleanup-tests
Changeset: r60798:5acfa3319a45
Date: 2013-01-31 16:53 -0500
http://bitbucket.org/pypy/pypy/changeset/5acfa3319a45/
Log: fix collection of test_lib_pypy tests when runappdirect is set
diff --git a/pypy/conftest.py b/pypy/conftest.py
--- a/pypy/conftest.py
+++ b/pypy/conftest.py
@@ -84,10 +84,11 @@
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_'):
More information about the pypy-commit
mailing list