summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services/scapy_server/unit_tests/test_utils.py
diff options
context:
space:
mode:
authorAnton Kiselev <anton.kisel@gmail.com>2016-11-01 19:19:48 +0700
committerAnton Kiselev <anton.kisel@gmail.com>2016-11-04 19:55:01 +0700
commit3e48c0b5d1b21554eea8d12bc66175a9157a6951 (patch)
tree130d2b97e0e78a1e2f769ad2be467da2b45dab23 /scripts/automation/trex_control_plane/stl/services/scapy_server/unit_tests/test_utils.py
parent7fc45ee2375e9e5a346595e29dfd526e6a5bec87 (diff)
scapy server python 3 compatibility fixes(file and pseudo-random generator)
Signed-off-by: Anton Kiselev <anton.kisel@gmail.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/services/scapy_server/unit_tests/test_utils.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/services/scapy_server/unit_tests/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/services/scapy_server/unit_tests/test_utils.py b/scripts/automation/trex_control_plane/stl/services/scapy_server/unit_tests/test_utils.py
index 82261859..c1fb0478 100644
--- a/scripts/automation/trex_control_plane/stl/services/scapy_server/unit_tests/test_utils.py
+++ b/scripts/automation/trex_control_plane/stl/services/scapy_server/unit_tests/test_utils.py
@@ -7,7 +7,7 @@ def test_generate_random_bytes():
res = generate_random_bytes(10, 333, ord('0'), ord('9'))
print(res)
assert(len(res) == 10)
- assert(res == '5390532937') # random value with this seed
+ assert(res == b'5390532937') # random value with this seed
def test_generate_bytes_from_template_empty():
res = generate_bytes_from_template(5, b"")