summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-03-16 14:02:50 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-03-16 14:02:50 +0200
commit284c6cd80086c00a7312f2ccffa686a679620cd3 (patch)
tree109649412ae751bb34ed9b0add4e37c62d89b96e /scripts
parent45652ff438c0e8b741f38c884dc9bb21aa05b1e1 (diff)
minor
Change-Id: I646012bbc2fec508f7ceffdf7af28888ca5341d2 Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/automation/regression/functional_tests/scapy_isolated_test.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/automation/regression/functional_tests/scapy_isolated_test.py b/scripts/automation/regression/functional_tests/scapy_isolated_test.py
index 5114f656..cff3d4c8 100755
--- a/scripts/automation/regression/functional_tests/scapy_isolated_test.py
+++ b/scripts/automation/regression/functional_tests/scapy_isolated_test.py
@@ -14,7 +14,6 @@ def check_offsets(build, stdout, scapy_str = None, pcap = None):
del sys.modules[key]
globals().clear()
- import os
import outer_packages
from scapy.all import Ether, IP, UDP
@@ -59,7 +58,7 @@ def check_offsets(build, stdout, scapy_str = None, pcap = None):
def isolate_env(f, *a, **k):
with tempfile.TemporaryFile(mode = 'w+') as tmpfile:
- k.update({'stdout': tmpfile})
+ k['stdout'] = tmpfile
p = Process(target = f, args = a, kwargs = k)
p.start()
p.join()