Bug#1027946: AttributeError: 'AssertionError' object has no attribute 'message'
FC Stegerman
flx at obfusk.net
Wed Jan 4 22:30:46 GMT 2023
Package: python3-nose-random
Version: 1.0.0-4
Severity: normal
X-Debbugs-Cc: flx at obfusk.net
Running examples/tests.py from the package itself gives an expected
AssertionError, but an unexpected AttributeError:
======================================================================
ERROR: failing_test (test.RandomTestCase.failing_test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose_random/__init__.py", line 65, in randomized_test
test(self, scenario)
File "/tmp/fay/test.py", line 12, in failing_test
self.assertLess(x, y)
AssertionError: 0.7059478944679197 not less than 0.687797682192538
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose_random/__init__.py", line 69, in randomized_test
raise type(e).with_traceback(type(e)('%s with scenario %s (%i of %i)' % (e.message, rseed, i+1, nseeds)), sys.exc_info()[2])
^^^^^^^^^
AttributeError: 'AssertionError' object has no attribute 'message'
----------------------------------------------------------------------
- FC
More information about the debian-science-maintainers
mailing list