diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-03-06 18:43:50 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-03-06 18:42:19 -0500 |
commit | fa3528a85b05ea9507077f3eb340c9fb189251a6 (patch) | |
tree | 93eec5fb44970f4778a5feb270f4b9ae901a2841 /test/functional/test_framework/netutil.py | |
parent | 8a98dfeebf58b8fc9b7c966ae0f99ad0760d7800 (diff) |
qa: Fix some tests to work on native windows
Diffstat (limited to 'test/functional/test_framework/netutil.py')
-rw-r--r-- | test/functional/test_framework/netutil.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/test_framework/netutil.py b/test/functional/test_framework/netutil.py index 96fe283347..36d1a2f856 100644 --- a/test/functional/test_framework/netutil.py +++ b/test/functional/test_framework/netutil.py @@ -9,7 +9,6 @@ Roughly based on http://voorloopnul.com/blog/a-python-netstat-in-less-than-100-l import sys import socket -import fcntl import struct import array import os @@ -90,6 +89,8 @@ def all_interfaces(): ''' Return all interfaces that are up ''' + import fcntl # Linux only, so only import when required + is_64bits = sys.maxsize > 2**32 struct_size = 40 if is_64bits else 32 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |