summaryrefslogtreecommitdiffhomepage
path: root/ryu/tests/unit/packet/test_lldp.py
diff options
context:
space:
mode:
Diffstat (limited to 'ryu/tests/unit/packet/test_lldp.py')
-rw-r--r--ryu/tests/unit/packet/test_lldp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/tests/unit/packet/test_lldp.py b/ryu/tests/unit/packet/test_lldp.py
index fb1f4dc6..12f78d1e 100644
--- a/ryu/tests/unit/packet/test_lldp.py
+++ b/ryu/tests/unit/packet/test_lldp.py
@@ -17,6 +17,7 @@
import unittest
import logging
+import six
import struct
import inspect
from nose.tools import ok_, eq_, nottest
@@ -334,7 +335,7 @@ class TestLLDPOptionalTLV(unittest.TestCase):
pkt.serialize()
# self.data has many organizationally specific TLVs
- data = str(pkt.data[:-2])
+ data = six.binary_type(pkt.data[:-2])
eq_(data, self.data[:len(data)])
def test_to_string(self):