Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3d93ad9
)
tests: python3 version check for enum module
09/21609/4
author
snaramre
<snaramre@cisco.com>
Thu, 29 Aug 2019 18:00:26 +0000
(18:00 +0000)
committer
Ole Trøan
<otroan@employees.org>
Tue, 15 Oct 2019 14:43:43 +0000
(14:43 +0000)
Type: fix
Change-Id: Ie210500fba741d3f047e8499957b5b233a78fa36
Signed-off-by: snaramre <snaramre@cisco.com>
test/remote_test.py
patch
|
blob
|
history
diff --git
a/test/remote_test.py
b/test/remote_test.py
index
1b42f8a
..
d084133
100644
(file)
--- 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):