aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorsnaramre <snaramre@cisco.com>2019-08-29 18:00:26 +0000
committerOle Trøan <otroan@employees.org>2019-10-15 14:43:43 +0000
commitd6df3acf5cf31b603241574cadbf9863e27b2d60 (patch)
tree1d411f09fed0a4b6d143be7338e3df3b43e8f517 /test
parent3d93ad9f33c8743ba3a6d3babdd1d25fdfbf0c6e (diff)
tests: python3 version check for enum module
Type: fix Change-Id: Ie210500fba741d3f047e8499957b5b233a78fa36 Signed-off-by: snaramre <snaramre@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/remote_test.py6
1 files changed, 5 insertions, 1 deletions
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):