tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit d40b0e73c278cd54c6c4765f35b4d031a5882562
parent 81199eaf0e7e78144617c277798bf0c944f7b2c7
Author: rl1987 <rl1987@sdf.lonestar.org>
Date:   Fri, 14 Sep 2018 20:13:23 +0300

Check Python version in test_rebind.py

Diffstat:
Msrc/test/test_rebind.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/test/test_rebind.py b/src/test/test_rebind.py @@ -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()