Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mark erroring/failing tests
  • Loading branch information
fanninpm committed Sep 6, 2021
commit 98a91abb8911f7dfbc2e7765f167b245d8a71bda
6 changes: 6 additions & 0 deletions Lib/unittest/test/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ class Module(object):
self.assertEqual(str(e.exception), 'CleanUpExc')
self.assertEqual(unittest.case._module_cleanups, [])

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_addModuleCleanup_arg_errors(self):
cleanups = []
def cleanup(*args, **kwargs):
Expand Down Expand Up @@ -562,6 +564,8 @@ def tearDownClass(cls):
'tearDownModule', 'cleanup_good'])
self.assertEqual(unittest.case._module_cleanups, [])

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_addClassCleanup_arg_errors(self):
cleanups = []
def cleanup(*args, **kwargs):
Expand All @@ -584,6 +588,8 @@ def testNothing(self):
self.assertEqual(cleanups,
[((1, 2), {'function': 3, 'cls': 4})])

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_addCleanup_arg_errors(self):
cleanups = []
def cleanup(*args, **kwargs):
Expand Down