Fix Python 3.8 test regression

This commit is contained in:
Wenzel Jakob 2019-09-20 09:38:30 +02:00
parent e825205ac6
commit 21d0eb460f

View File

@ -192,6 +192,9 @@ def test_binary_operators():
def test_enum_to_int(): def test_enum_to_int():
import sys
# Implicit conversion to integers is deprecated in Python >= 3.8
if sys.version_info < (3, 8):
m.test_enum_to_int(m.Flags.Read) m.test_enum_to_int(m.Flags.Read)
m.test_enum_to_int(m.ClassWithUnscopedEnum.EMode.EFirstMode) m.test_enum_to_int(m.ClassWithUnscopedEnum.EMode.EFirstMode)
m.test_enum_to_uint(m.Flags.Read) m.test_enum_to_uint(m.Flags.Read)