diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-03-17 10:36:25 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-03-19 03:26:19 +0100 |
commit | 3c9066fce54b78cc8b46e82eba033aaa373cdef1 (patch) | |
tree | 25620b454e007eb89162bf9437cfaadb2bdf5db4 /tests/data | |
parent | 8d9802b0aed12932612847f4267a42d08b7bfa71 (diff) |
tests: make Python-based servers compatible with Python 2 and 3
Update smbserver.py and negtelnetserver.py to be compatible with
Python 3 while staying backwards-compatible to support Python 2.
Fix string encoding and handling of echoed and transferred data.
Tested with both Python 2.7.17 and Python 3.7.7
Reported-by: Daniel Stenberg
Assisted-by: Kamil Dudka
Reviewed-by: Marcel Raad
Fixes #5104
Closes #5110
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/test1451 | 2 | ||||
-rw-r--r-- | tests/data/test1452 | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/data/test1451 b/tests/data/test1451 index a45f41eed..9337b8b99 100644 --- a/tests/data/test1451 +++ b/tests/data/test1451 @@ -29,7 +29,7 @@ Basic SMB request -u 'curltest:curltest' smb://%HOSTIP:%SMBPORT/TESTS/1451 </command> <precheck> -python2 -c "__import__('pkgutil').find_loader('impacket') or (__import__('sys').stdout.write('Test only works if Python package impacket is installed\n'), __import__('sys').exit(1))" +python -c "__import__('pkgutil').find_loader('impacket') or (__import__('sys').stdout.write('Test only works if Python package impacket is installed\n'), __import__('sys').exit(1))" </precheck> </client> diff --git a/tests/data/test1452 b/tests/data/test1452 index 3b1727229..0a84cf8ce 100644 --- a/tests/data/test1452 +++ b/tests/data/test1452 @@ -3,7 +3,6 @@ <keywords> TELNET UPLOAD -flaky </keywords> </info> |