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:
commit
086e698eae
|
@ -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__]),
|
||||
|
|
Loading…
Reference in a new issue