[Python-checkins] bpo-44564 Move formatted assertion under deprecation warning context (GH-27090)

ambv webhook-mailer at python.org
Wed Aug 4 15:01:42 EDT 2021


https://github.com/python/cpython/commit/f99c015638b46e46ae3ee3f27b96a514007cdaef
commit: f99c015638b46e46ae3ee3f27b96a514007cdaef
branch: main
author: Brandon Schabell <brandonschabell at gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-08-04T21:01:30+02:00
summary:

bpo-44564 Move formatted assertion under deprecation warning context (GH-27090)

files:
M Lib/test/test_enum.py

diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py
index 0267ff5684c0d..116f61e5cf092 100644
--- a/Lib/test/test_enum.py
+++ b/Lib/test/test_enum.py
@@ -2321,7 +2321,7 @@ class OkayEnum(CustomStrEnum):
         self.assertEqual(str(OkayEnum.one), 'one')
         with self.assertWarns(DeprecationWarning):
             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')
         #
         class DumbMixin:



More information about the Python-checkins mailing list