mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
bpo-44564 Move formatted assertion under deprecation warning context (GH-27090)
This commit is contained in:
parent
977d99d1cc
commit
f99c015638
1 changed files with 1 additions and 1 deletions
|
@ -2321,7 +2321,7 @@ class TestEnum(unittest.TestCase):
|
||||||
self.assertEqual(str(OkayEnum.one), 'one')
|
self.assertEqual(str(OkayEnum.one), 'one')
|
||||||
with self.assertWarns(DeprecationWarning):
|
with self.assertWarns(DeprecationWarning):
|
||||||
self.assertEqual('{}'.format(OkayEnum.one), '1')
|
self.assertEqual('{}'.format(OkayEnum.one), '1')
|
||||||
self.assertEqual(OkayEnum.one, '{}'.format(OkayEnum.one))
|
self.assertEqual(OkayEnum.one, '{}'.format(OkayEnum.one))
|
||||||
self.assertEqual(repr(OkayEnum.one), 'OkayEnum.one')
|
self.assertEqual(repr(OkayEnum.one), 'OkayEnum.one')
|
||||||
#
|
#
|
||||||
class DumbMixin:
|
class DumbMixin:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue