Some TCA doctests are broken
At least in gitlab-runner
I see this:
$ cd config/chroot_local-includes/usr/lib/python3/dist-packages ; find tca -name "*.py" -print0 | xargs -0 -L1 env PYTHONPATH=. python3 -m doctest
**********************************************************************
File "tca/torutils.py", line 228, in torutils.TorConnectionConfig.parse_bridge_line
Failed example:
TorConnectionConfig.parse_bridge_line("1.2.3.4")
Expected:
Traceback (most recent call last):
...
ValueError: Bridge address is malformed: '1.2.3.4'
Got:
Traceback (most recent call last):
File "/usr/lib/python3.7/doctest.py", line 1329, in __run
compileflags, 1), test.globs)
File "<doctest torutils.TorConnectionConfig.parse_bridge_line[6]>", line 1, in <module>
TorConnectionConfig.parse_bridge_line("1.2.3.4")
File "tca/torutils.py", line 254, in parse_bridge_line
"Bridge address is malformed: '%s'" % bridge_ip_port
torutils.MalformedBridgeException: Bridge address is malformed: '1.2.3.4'
**********************************************************************
1 items had failures:
1 of 9 in torutils.TorConnectionConfig.parse_bridge_line
***Test Failed*** 1 failures.
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
**********************************************************************
File "tca/ui/main_window.py", line 1093, in main_window.ConnectionProgress._get_value_after_tick
Failed example:
f(0.1, False)
Expected:
'0.1133'
Got:
'0.1400'
**********************************************************************
File "tca/ui/main_window.py", line 1095, in main_window.ConnectionProgress._get_value_after_tick
Failed example:
f(0.5, True)
Expected:
'0.5033'
Got:
'0.5007'
**********************************************************************
File "tca/ui/main_window.py", line 1105, in main_window.ConnectionProgress._get_value_after_tick
Failed example:
'%.4f' % ftn(0.5, 1)
Expected:
'0.5033'
Got:
'0.5007'
**********************************************************************
File "tca/ui/main_window.py", line 1107, in main_window.ConnectionProgress._get_value_after_tick
Failed example:
'%.4f' % ftn(0.5, 2)
Expected:
'0.5067'
Got:
'0.5013'
**********************************************************************
File "tca/ui/main_window.py", line 1115, in main_window.ConnectionProgress._get_value_after_tick
Failed example:
'%.4f' % ffn(0.1, 1)
Expected:
'0.1133'
Got:
'0.1400'
**********************************************************************
File "tca/ui/main_window.py", line 1117, in main_window.ConnectionProgress._get_value_after_tick
Failed example:
'%.4f' % ffn(0.1, 2)
Expected:
'0.1267'
Got:
'0.1800'
**********************************************************************
File "tca/ui/main_window.py", line 1119, in main_window.ConnectionProgress._get_value_after_tick
Failed example:
'%.4f' % ffn(0.1, 3)
Expected:
'0.1400'
Got:
'0.2200'
**********************************************************************
File "tca/ui/main_window.py", line 1121, in main_window.ConnectionProgress._get_value_after_tick
Failed example:
'%.4f' % ffn(0.1, 30)
Expected:
'0.5000'
Got:
'1.3000'
**********************************************************************
1 items had failures:
8 of 14 in main_window.ConnectionProgress._get_value_after_tick
***Test Failed*** 8 failures.
cc @boyska