Skip to content

Commit f99c015

Browse files
bpo-44564 Move formatted assertion under deprecation warning context (GH-27090)
1 parent 977d99d commit f99c015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2321,7 +2321,7 @@ class OkayEnum(CustomStrEnum):
23212321
self.assertEqual(str(OkayEnum.one), 'one')
23222322
with self.assertWarns(DeprecationWarning):
23232323
self.assertEqual('{}'.format(OkayEnum.one), '1')
2324-
self.assertEqual(OkayEnum.one, '{}'.format(OkayEnum.one))
2324+
self.assertEqual(OkayEnum.one, '{}'.format(OkayEnum.one))
23252325
self.assertEqual(repr(OkayEnum.one), 'OkayEnum.one')
23262326
#
23272327
class DumbMixin:

0 commit comments

Comments
 (0)