[py-svn] r9651 - py/branch/py-collect/misc/testing
hpk at codespeak.net
hpk at codespeak.net
Fri Mar 4 20:59:25 CET 2005
Author: hpk
Date: Fri Mar 4 20:59:25 2005
New Revision: 9651
Modified:
py/branch/py-collect/misc/testing/test_initpkg.py
Log:
mask out greenlets from autoimport-tests
Modified: py/branch/py-collect/misc/testing/test_initpkg.py
==============================================================================
--- py/branch/py-collect/misc/testing/test_initpkg.py (original)
+++ py/branch/py-collect/misc/testing/test_initpkg.py Fri Mar 4 20:59:25 2005
@@ -31,6 +31,7 @@
nodirs = (
base.join('test', 'testing', 'data'),
base.join('test', 'testing', 'test'),
+ base.join('magic', 'greenlet.py'),
base.join('path', 'extpy', 'testing', 'test_data'),
base.join('path', 'gateway',),
base.join('documentation',),
@@ -41,9 +42,9 @@
)
for p in base.visit('*.py', py.path.checker(dotfile=0)):
relpath = p.new(ext='').relto(base)
- if base.sep in relpath: # not std/*.py itself
+ if base.sep in relpath: # not py/*.py itself
for x in nodirs:
- if p.relto(x):
+ if p == x or p.relto(x):
break
else:
relpath = relpath.replace(base.sep, '.')
More information about the pytest-commit
mailing list