From 053204ab039d34a990ff0e14c32ce3b294fcce0e Mon Sep 17 00:00:00 2001 From: Jakub Grajciar Date: Mon, 18 Mar 2019 13:17:53 +0100 Subject: api: Cleanup APIs interface.api Use of consistent API types for interface.api Type: fix Change-Id: I88206d7d0907cffd564031f73c9a996df2e5e21a Signed-off-by: Jakub Grajciar --- test/remote_test.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/remote_test.py') diff --git a/test/remote_test.py b/test/remote_test.py index cd2e46fe219..9c825ccf755 100644 --- a/test/remote_test.py +++ b/test/remote_test.py @@ -3,14 +3,13 @@ import inspect import os import unittest +from framework import VppTestCase from multiprocessing import Process, Pipe from pickle import dumps - import six from six import moves - -from framework import VppTestCase -from aenum import Enum +import sys +from aenum import IntEnum, IntFlag class SerializableClassCopy(object): @@ -270,7 +269,7 @@ class RemoteClass(Process): if type(obj) is tuple: rv = tuple(rv) return rv - elif (isinstance(obj, Enum)): + elif (isinstance(obj, IntEnum) or isinstance(obj, IntFlag)): return obj.value else: return self._make_obj_serializable(obj) -- cgit 1.2.3-korg