tftp.test.test_util
IterLast
test_works_with_infinite_iterators ... [OK]
test_works_with_unsized_iterators ... [OK]
test_yields_nothing_when_no_input ... [ERROR]
test_yields_once_for_each_input ... [OK]
test_yields_once_for_input_of_one ... [OK]
TimedCaller
test_calls_both_functions_with_multiple_timings ... [OK]
test_calls_last_with_one_timing ... [OK]
test_can_be_cancelled ... [OK]
test_pauses_between_calls ... [OK]
test_raises_ValueError_with_no_timings ... [FAIL]
tftp.test.test_wire_protocol
ConcreteDatagrams
test_ack ... [OK]
test_data ... [OK]
test_error ... [OK]
test_error_codes ... [OK]
test_oack ... [OK]
test_rq ... [OK]
test_rrq ... [OK]
test_wrq ... [OK]
OpcodeProcessing
test_empty_payload ... [OK]
test_incomplete_opcode ... [OK]
test_non_empty_payload ... [OK]
test_unknown_opcode ... [OK]
test_zero_length ... [OK]
===============================================================================
[SKIPPED]
Not done yet
tftp.test.test_protocol.DispatchErrors.test_malformed_datagram
===============================================================================
[FAIL]
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/tftp/test/test_util.py", line 26, in
test_raises_ValueError_with_no_timings
error = self.assertRaises(ValueError, self.makeTimedCaller, [])
File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 421,
in assertRaises
return context._handle(lambda: f(*args, **kwargs))
File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 315,
in _handle
self._returnValue = obj()
File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 350,
in __exit__
self._testCase.fail(
twisted.trial.unittest.FailTest: builtins.RuntimeError raised instead of
ValueError:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/twisted/internet/utils.py", line 197, in
runWithWarningsSuppressed
result = f(*a, **kw)
File "/<<PKGBUILDDIR>>/tftp/test/test_util.py", line 26, in
test_raises_ValueError_with_no_timings
error = self.assertRaises(ValueError, self.makeTimedCaller, [])
File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 421,
in assertRaises
return context._handle(lambda: f(*args, **kwargs))
File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 315,
in _handle
self._returnValue = obj()
--- <exception caught here> ---
File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 315,
in _handle
self._returnValue = obj()
File "/usr/lib/python3/dist-packages/twisted/trial/_synctest.py", line 421,
in <lambda>
return context._handle(lambda: f(*args, **kwargs))
File "/<<PKGBUILDDIR>>/tftp/test/test_util.py", line 20, in makeTimedCaller
caller = timedCaller(timings, call, last)
File "/<<PKGBUILDDIR>>/tftp/util.py", line 55, in timedCaller
return iterate().addErrback(squashCancelled)
File "/<<PKGBUILDDIR>>/tftp/util.py", line 40, in iterate
for is_last, delay in timings:
builtins.RuntimeError: generator raised StopIteration
tftp.test.test_util.TimedCaller.test_raises_ValueError_with_no_timings
===============================================================================
[ERROR]
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/tftp/test/test_util.py", line 71, in
test_yields_nothing_when_no_input
self.assertEqual([], list(iterlast([])))
builtins.RuntimeError: generator raised StopIteration
tftp.test.test_util.IterLast.test_yields_nothing_when_no_input
-------------------------------------------------------------------------------
Ran 112 tests in 1.587s
FAILED (skips=1, failures=1, errors=1, successes=109)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1869366
Title:
RM: python-tx-tftp package, not needed anymore?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-tx-tftp/+bug/1869366/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs