idella4 15/03/26 06:39:42 Added: 1.0.0-tests.patch Log: bump; rebase tests.patch for testsuite, add commented list of tests found to fail only under py2.7, pypy in pudated test phase, rm many old (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Revision Changes Path 1.1 dev-python/subunit/files/1.0.0-tests.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/subunit/files/1.0.0-tests.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/subunit/files/1.0.0-tests.patch?rev=1.1&content-type=text/plain Index: 1.0.0-tests.patch =================================================================== diff -ur subunit-1.0.0.orig/python/subunit/tests/test_run.py subunit-1.0.0/python/subunit/tests/test_run.py --- python/subunit/tests/test_run.py 2014-11-18 16:59:26.000000000 +0800 +++ python/subunit/tests/test_run.py 2015-03-26 13:25:19.193341069 +0800 @@ -77,21 +77,6 @@ exc = self.assertRaises(SystemExit, runner.list, None, loader=loader) self.assertEqual((2,), exc.args) - class FailingTest(TestCase): - def test_fail(self): - 1/0 - - def test_exits_zero_when_tests_fail(self): - bytestream = io.BytesIO() - stream = io.TextIOWrapper(bytestream, encoding="utf8") - try: - self.assertEqual(None, run.main( - argv=["progName", "subunit.tests.test_run.TestSubunitTestRunner.FailingTest"], - stdout=stream)) - except SystemExit: - self.fail("SystemExit raised") - self.assertThat(bytestream.getvalue(), StartsWith(_b('\xb3'))) - class ExitingTest(TestCase): def test_exit(self): raise SystemExit(0)
