Skip to content

Commit

Permalink
skip test when expected failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dnozay committed Feb 17, 2016
1 parent bbce059 commit c0d4452
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testsuite.py
Expand Up @@ -447,6 +447,11 @@ def test_xmlrunner_error_in_call(self):
testsuite_output = self.stream.getvalue()
self.assertIn('Exception: Massive fail', testsuite_output)

@unittest.skipIf(not hasattr(sys, 'getrefcount'),
'skip - PyPy does not have sys.getrefcount')
@unittest.skipIf((3, 0) <= sys.version_info < (3, 4),
'skip - test not garbage collected. '
'https://bugs.python.org/issue11798.')
def test_xmlrunner_hold_traceback(self):
suite = unittest.TestSuite()
suite.addTest(self.DummyRefCountTest('test_fail'))
Expand Down

0 comments on commit c0d4452

Please sign in to comment.