diff --git a/py/green/conftest.py b/py/green/conftest.py index 361296acf..1bbd7d3d3 100644 --- a/py/green/conftest.py +++ b/py/green/conftest.py @@ -1,4 +1,8 @@ import py, os -if os.name == 'nt': - py.test.skip("Cannot test green layer on windows") +class Directory(py.test.collect.Directory): + def run(self): + if os.name == 'nt': + py.test.skip("Cannot test green layer on windows") + else: + return super(Directory, self).run()