summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/framework.py b/test/framework.py
index 6ff03d8b073..fc22ad6483c 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -71,6 +71,9 @@ class _PacketInfo(object):
#: Store the copy of the former packet.
data = None
+ def __repr__(self):
+ return f"_PacketInfo index:{self.index} src:{self.src} dst:{self.dst} ip:{self.ip} proto:{self.proto} data:{self.data}"
+
def __eq__(self, other):
index = self.index == other.index
src = self.src == other.src