mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #16997: unittest.TestCase now provides a subTest() context manager to procedurally generate, in an easy way, small test instances.
This commit is contained in:
parent
a612176c9c
commit
c9b3ef2df0
10 changed files with 540 additions and 106 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
import unittest
|
||||
from test import support
|
||||
from unittest.case import _ExpectedFailure
|
||||
|
||||
import errno
|
||||
import io
|
||||
|
@ -272,9 +271,6 @@ class ThreadableTest:
|
|||
raise TypeError("test_func must be a callable function")
|
||||
try:
|
||||
test_func()
|
||||
except _ExpectedFailure:
|
||||
# We deliberately ignore expected failures
|
||||
pass
|
||||
except BaseException as e:
|
||||
self.queue.put(e)
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue