Skip to content

Commit c0d4452

Browse files
committed
skip test when expected failure
1 parent bbce059 commit c0d4452

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/testsuite.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ def test_xmlrunner_error_in_call(self):
447447
testsuite_output = self.stream.getvalue()
448448
self.assertIn('Exception: Massive fail', testsuite_output)
449449

450+
@unittest.skipIf(not hasattr(sys, 'getrefcount'),
451+
'skip - PyPy does not have sys.getrefcount')
452+
@unittest.skipIf((3, 0) <= sys.version_info < (3, 4),
453+
'skip - test not garbage collected. '
454+
'https://bugs.python.org/issue11798.')
450455
def test_xmlrunner_hold_traceback(self):
451456
suite = unittest.TestSuite()
452457
suite.addTest(self.DummyRefCountTest('test_fail'))

0 commit comments

Comments
 (0)