2013-08-09 03:08:46 +00:00
|
|
|
import sys
|
|
|
|
import os.path
|
|
|
|
|
2016-10-18 12:54:16 +00:00
|
|
|
test_sources = ['injector_test.py']
|
2013-08-09 03:08:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
if sys.version_info[0] >= 3:
|
2016-10-18 12:54:16 +00:00
|
|
|
test_sources.extend(['injector.py', 'injector_test_py3.py', 'README.md'])
|
2013-08-09 03:08:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
def pytest_ignore_collect(path, config):
|
|
|
|
return not os.path.basename(str(path)) in test_sources
|