[Python-checkins] bpo-46327: [Enum] remove skipped tests (GH-30512)

ethanfurman webhook-mailer at python.org
Mon Jan 10 14:12:42 EST 2022


https://github.com/python/cpython/commit/13e4659276c2af2fa5b0f2b3a31dcd69064868ef
commit: 13e4659276c2af2fa5b0f2b3a31dcd69064868ef
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2022-01-10T11:12:34-08:00
summary:

bpo-46327: [Enum] remove skipped tests (GH-30512)

files:
M Lib/test/test_enum.py

diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py
index dfa81a52a93a4..04a68cc9ea204 100644
--- a/Lib/test/test_enum.py
+++ b/Lib/test/test_enum.py
@@ -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(



More information about the Python-checkins mailing list