1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Merge pull request #2584 from msabramo/tests_ignore_DoctestTextfile

Ignore DoctestTextfile when collecting
This commit is contained in:
Donald Stufft 2015-04-07 14:56:42 -04:00
commit 086e698eae

View file

@ -12,6 +12,8 @@ from tests.lib.venv import VirtualEnvironment
def pytest_collection_modifyitems(items):
for item in items:
if not hasattr(item, 'module'): # e.g.: DoctestTextfile
continue
module_path = os.path.relpath(
item.module.__file__,
os.path.commonprefix([__file__, item.module.__file__]),