From d6df3acf5cf31b603241574cadbf9863e27b2d60 Mon Sep 17 00:00:00 2001 From: snaramre Date: Thu, 29 Aug 2019 18:00:26 +0000 Subject: tests: python3 version check for enum module Type: fix Change-Id: Ie210500fba741d3f047e8499957b5b233a78fa36 Signed-off-by: snaramre --- test/remote_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/remote_test.py b/test/remote_test.py index 1b42f8a0189..d084133d475 100644 --- a/test/remote_test.py +++ b/test/remote_test.py @@ -9,7 +9,11 @@ from pickle import dumps import six from six import moves import sys -from aenum import IntEnum, IntFlag + +if sys.version_info < (3,): + from aenum import IntEnum, IntFlag +else: + from enum import IntEnum, IntFlag class SerializableClassCopy(object): -- cgit 1.2.3-korg