From 1dc8555ca028d7b155299f411ea3a16bb40d67ab Mon Sep 17 00:00:00 2001 From: fijal Date: Sat, 24 Jan 2009 09:44:03 +0100 Subject: [PATCH] [svn r61296] a failing test --HG-- branch : trunk --- py/test/testing/test_session.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/py/test/testing/test_session.py b/py/test/testing/test_session.py index f0db62c49..9fdbfaaa3 100644 --- a/py/test/testing/test_session.py +++ b/py/test/testing/test_session.py @@ -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