SIGN IN SIGN UP

bpo-38659: Properly re-intialize module variables in test_enum (GH-25516)

Previously TestIntEnumConvert and TestStrEnumConvert would end up
converting the module level variables from their regular int form
to a `test.test_enum.X` instance after _convert would run. This
meant that after a single test ran, the next set of _convert
functions would be operating on the enum instances rather than
ints. This would cause some tests such as the one involving format
to fail when running under a mode that repeatedly runs test such
as the refleak finder.
A
Ammar Askar committed
37b173c5231b7b202859af97c17bc3d04b1e4c75
Parent: dc516ef
Committed by GitHub <noreply@github.com> on 4/22/2021, 3:22:58 AM