[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
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
import py, os import py, os
if os.name == 'nt': class Directory(py.test.collect.Directory):
def run(self):
if os.name == 'nt':
py.test.skip("Cannot test green layer on windows") py.test.skip("Cannot test green layer on windows")
else:
return super(Directory, self).run()