mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Check Python version in test_rebind.py
This commit is contained in:
@@ -35,6 +35,12 @@ def pick_random_port():
|
||||
|
||||
return port
|
||||
|
||||
if sys.hexversion < 0x02070000:
|
||||
sys.exit("ERROR: unsupported Python version (should be >= 2.7)")
|
||||
|
||||
if sys.hexversion > 0x03000000 and sys.hexversion < 0x03010000:
|
||||
sys.exit("ERROR: unsupported Python3 version (should be >= 3.1)")
|
||||
|
||||
control_port = pick_random_port()
|
||||
socks_port = pick_random_port()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user