Commit 21d0eb46 by Wenzel Jakob

Fix Python 3.8 test regression

parent e825205a
...@@ -192,6 +192,9 @@ def test_binary_operators(): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment