diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-16 14:02:50 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-03-16 14:02:50 +0200 |
commit | 284c6cd80086c00a7312f2ccffa686a679620cd3 (patch) | |
tree | 109649412ae751bb34ed9b0add4e37c62d89b96e /scripts | |
parent | 45652ff438c0e8b741f38c884dc9bb21aa05b1e1 (diff) |
minor
Change-Id: I646012bbc2fec508f7ceffdf7af28888ca5341d2
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/automation/regression/functional_tests/scapy_isolated_test.py | 3 |
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() |