* introduce py.test.collect.Collector.collect_by_name and special case it for Directories to allow specifying files that would otherwise be ignored because of filters. * fix py/doc/conftest to work with new API * refactor py/doc/test_conftest.py to use suptest helper * avoid old APIs in some more places. --HG-- branch : trunk
9 lines
236 B
Python
9 lines
236 B
Python
import py, os
|
|
|
|
class Directory(py.test.collect.Directory):
|
|
def collect(self):
|
|
if os.name == 'nt':
|
|
py.test.skip("Cannot test green layer on windows")
|
|
else:
|
|
return super(Directory, self).run()
|