[svn r61296] a failing test

--HG--
branch : trunk
This commit is contained in:
fijal 2009-01-24 09:44:03 +01:00
parent 97005dc4bb
commit 1dc8555ca0
1 changed files with 14 additions and 0 deletions

View File

@ -292,6 +292,20 @@ class TestNewSession(SessionTests):
assert len(colfail) == 1
assert len(colskipped) == 1
def test_minus_x_import_error(self):
py.test.skip("fails")
o = self.tmpdir
tfile = o.join('test_one.py').write(py.code.Source("""
xxxx
"""))
tfile2 = o.join('test_two.py').write(py.code.Source("""
yyyyy
"""))
sorter = self.events_from_cmdline('-x')
finished = sorter.get(event.CollectionReport)
colfail = [x for x in finished if x.failed]
assert len(colfail) == 1
class TestNewSessionDSession(SessionTests):
def parseconfig(self, *args):
args = ('-n1',) + args