[svn r51056] fijal: don't use py.test.skip directly in a conftest.py -

this will get called very early during import time.
This lead to windows not executing any py/ tests at all.

--HG--
branch : trunk
This commit is contained in:
hpk
2008-01-26 11:58:23 +01:00
parent f2b0bd10e6
commit f7e1bbeb24

View File

@@ -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()