mirror of https://github.com/python/cpython.git
bpo-46327: [Enum] remove skipped tests (GH-30512)
This commit is contained in:
parent
582286d71c
commit
13e4659276
|
@ -4523,17 +4523,6 @@ def test_convert_complex(self):
|
|||
[uncomp.COMPLEX_A, uncomp.COMPLEX_B, uncomp.COMPLEX_C],
|
||||
)
|
||||
|
||||
@unittest.skipUnless(python_version == (3, 8),
|
||||
'_convert was deprecated in 3.8')
|
||||
def test_convert_warn(self):
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
enum.IntEnum._convert(
|
||||
'UnittestConvert',
|
||||
MODULE,
|
||||
filter=lambda x: x.startswith('CONVERT_TEST_'))
|
||||
|
||||
@unittest.skipUnless(python_version >= (3, 9),
|
||||
'_convert was removed in 3.9')
|
||||
def test_convert_raise(self):
|
||||
with self.assertRaises(AttributeError):
|
||||
enum.IntEnum._convert(
|
||||
|
|
Loading…
Reference in New Issue