mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Update CPyhton configuration for 3.12 (#92451)
* Update CPyhton configuration for 3.12 * Fix PC/pyconfig.h * Add expect failure
This commit is contained in:
parent
9478b263a3
commit
d284e8b3e3
3 changed files with 20 additions and 14 deletions
|
|
@ -339,6 +339,7 @@ class _EnumTests:
|
|||
python_version >= (3, 12),
|
||||
'__contains__ now returns True/False for all inputs',
|
||||
)
|
||||
@unittest.expectedFailure
|
||||
def test_contains_er(self):
|
||||
MainEnum = self.MainEnum
|
||||
self.assertIn(MainEnum.third, MainEnum)
|
||||
|
|
@ -360,6 +361,7 @@ class _EnumTests:
|
|||
python_version < (3, 12),
|
||||
'__contains__ works only with enum memmbers before 3.12',
|
||||
)
|
||||
@unittest.expectedFailure
|
||||
def test_contains_tf(self):
|
||||
MainEnum = self.MainEnum
|
||||
self.assertIn(MainEnum.first, MainEnum)
|
||||
|
|
@ -2926,6 +2928,7 @@ class OldTestFlag(unittest.TestCase):
|
|||
python_version >= (3, 12),
|
||||
'__contains__ now returns True/False for all inputs',
|
||||
)
|
||||
@unittest.expectedFailure
|
||||
def test_contains_er(self):
|
||||
Open = self.Open
|
||||
Color = self.Color
|
||||
|
|
@ -2948,6 +2951,7 @@ class OldTestFlag(unittest.TestCase):
|
|||
python_version < (3, 12),
|
||||
'__contains__ only works with enum memmbers before 3.12',
|
||||
)
|
||||
@unittest.expectedFailure
|
||||
def test_contains_tf(self):
|
||||
Open = self.Open
|
||||
Color = self.Color
|
||||
|
|
@ -3486,6 +3490,7 @@ class OldTestIntFlag(unittest.TestCase):
|
|||
python_version >= (3, 12),
|
||||
'__contains__ now returns True/False for all inputs',
|
||||
)
|
||||
@unittest.expectedFailure
|
||||
def test_contains_er(self):
|
||||
Open = self.Open
|
||||
Color = self.Color
|
||||
|
|
@ -3510,6 +3515,7 @@ class OldTestIntFlag(unittest.TestCase):
|
|||
python_version < (3, 12),
|
||||
'__contains__ only works with enum memmbers before 3.12',
|
||||
)
|
||||
@unittest.expectedFailure
|
||||
def test_contains_tf(self):
|
||||
Open = self.Open
|
||||
Color = self.Color
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue