[Python-modules-team] Bug#912184: python-testfixtures FTBFS with python 3.7 as supported version
Adrian Bunk
bunk at debian.org
Sun Oct 28 21:38:43 GMT 2018
Source: python-testfixtures
Version: 4.14.3-1
Severity: serious
Tags: ftbfs
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-testfixtures.html
...
I: pybuild base:217: python3.7 /usr/bin/zope-testrunner --path=/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build testfixtures
Running zope.testrunner.layer.UnitTests tests:
Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
Failure in test test_exception_diff (testfixtures.tests.test_compare.TestCompare)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_compare.py", line 170, in test_exception_diff
"ValueError('some message',) != ValueError('some other message',)"
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_compare.py", line 51, in check_raises
compare(actual, expected=message, show_whitespace=True)
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/comparison.py", line 485, in compare
raise AssertionError(message)
AssertionError:
"ValueError('some message',) != ValueError('some other message',)" (expected)
!=
"ValueError('some message') != ValueError('some other message')" (actual)
Failure in test test_exception_diff_c_wrapper (testfixtures.tests.test_compare.TestCompare)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_compare.py", line 184, in test_exception_diff_c_wrapper
).format(exception_module))
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_compare.py", line 51, in check_raises
compare(actual, expected=message, show_whitespace=True)
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/comparison.py", line 485, in compare
raise AssertionError(message)
AssertionError:
--- expected
+++ actual
@@ -1,4 +1,4 @@
'\n'
' <C(failed):builtins.ValueError>\n'
" args:('some message',) != ('some other message',)\n"
-" </C> != ValueError('some other message',)"
+" </C> != ValueError('some other message')"
Failure in test test_exception_different_object (testfixtures.tests.test_compare.TestCompare)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_compare.py", line 157, in test_exception_different_object
"ValueError('some message',) != ValueError('some message',)"
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_compare.py", line 51, in check_raises
compare(actual, expected=message, show_whitespace=True)
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/comparison.py", line 485, in compare
raise AssertionError(message)
AssertionError:
"ValueError('some message',) != ValueError('some message',)" (expected)
!=
"ValueError('some message') != ValueError('some message')" (actual)
Failure in test /build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/docs/warnings.txt
----------------------------------------------------------------------
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/docs/warnings.txt", line 26, in warnings.txt
Failed example:
with ShouldWarn(UserWarning('you should fix that')):
warn("sorry dave, I can't let you do that")
Differences (ndiff with -expected +actual):
Traceback (most recent call last):
- ...
+ File "/usr/lib/python3.7/doctest.py", line 1329, in __run
+ compileflags, 1), test.globs)
+ File "<doctest warnings.txt[0]>", line 2, in <module>
+ warn("sorry dave, I can't let you do that")
+ File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/shouldwarn.py", line 43, in __exit__
+ compare(self.expected, actual=[wm.message for wm in self.recorded])
+ File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/comparison.py", line 485, in compare
+ raise AssertionError(message)
AssertionError: sequence not as expected:
<BLANKLINE>
same:
[]
<BLANKLINE>
expected:
[
- <C(failed):....UserWarning>
? ^^^
+ <C(failed):builtins.UserWarning>
? ^^^^^^^^
args:('you should fix that',) != ("sorry dave, I can't let you do that",)
</C>]
<BLANKLINE>
actual:
- [UserWarning("sorry dave, I can't let you do that",)]
? -
+ [UserWarning("sorry dave, I can't let you do that")]
----------------------------------------------------------------------
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/docs/warnings.txt", line 63, in warnings.txt
Failed example:
captured[0].message
Differences (ndiff with -expected +actual):
- DeprecationWarning('foo',)
? -
+ DeprecationWarning('foo')
----------------------------------------------------------------------
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/docs/warnings.txt", line 77, in warnings.txt
Failed example:
with ShouldNotWarn():
warn("woah dude")
Differences (ndiff with -expected +actual):
Traceback (most recent call last):
- ...
+ File "/usr/lib/python3.7/doctest.py", line 1329, in __run
+ compileflags, 1), test.globs)
+ File "<doctest warnings.txt[0]>", line 2, in <module>
+ warn("woah dude")
+ File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/shouldwarn.py", line 43, in __exit__
+ compare(self.expected, actual=[wm.message for wm in self.recorded])
+ File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/comparison.py", line 485, in compare
+ raise AssertionError(message)
AssertionError: sequence not as expected:
<BLANKLINE>
same:
[]
<BLANKLINE>
expected:
[]
<BLANKLINE>
actual:
- [UserWarning('woah dude',)]
? -
+ [UserWarning('woah dude')]
Failure in test /build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/docs/logging.txt
----------------------------------------------------------------------
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/docs/logging.txt", line 229, in logging.txt
Failed example:
print(l.records[-1].exc_info)
Differences (ndiff with -expected +actual):
- (<... '...RuntimeError'>, RuntimeError('No code to run!',), <traceback object at ...>)
? ^^^ --- - ^^^
+ (<class 'RuntimeError'>, RuntimeError('No code to run!'), <traceback object at 0x7f071ed2ea88>)
? ^^^^^ ^^^^^^^^^^^^^^
Failure in test /build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/docs/exceptions.txt
----------------------------------------------------------------------
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/docs/exceptions.txt", line 37, in exceptions.txt
Failed example:
with ShouldRaise(ValueError('Is good!')):
the_thrower()
Differences (ndiff with -expected +actual):
Traceback (most recent call last):
- ...
+ File "/usr/lib/python3.7/doctest.py", line 1329, in __run
+ compileflags, 1), test.globs)
+ File "<doctest exceptions.txt[0]>", line 2, in <module>
+ the_thrower()
+ File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/shouldraise.py", line 70, in __exit__
+ raise AssertionError(message)
- AssertionError: ValueError('Not good!',) raised, ValueError('Is good!',) expected
? - -
+ AssertionError: ValueError('Not good!') raised, ValueError('Is good!') expected
Failure in test test_assert_keyerror_raised (testfixtures.tests.test_should_raise.TestShouldRaise)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_should_raise.py", line 227, in test_assert_keyerror_raised
e
File "/usr/lib/python3.7/unittest/case.py", line 839, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.7/unittest/case.py", line 832, in _baseAssertEqual
raise self.failureException(msg)
AssertionError:
<C(failed):builtins.AssertionError>
[131 chars] </C> != AssertionError("KeyError('foo') raised, A[26 chars]ted")
Failure in test test_unless_true_not_okay (testfixtures.tests.test_should_raise.TestShouldRaise)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_should_raise.py", line 263, in test_unless_true_not_okay
"AttributeError('foo',) raised, no exception expected"
File "/usr/lib/python3.7/unittest/case.py", line 839, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.7/unittest/case.py", line 832, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: AssertionError("AttributeError('foo') rai[23 chars]ted") !=
<C(failed):builtins.AssertionError>
[124 chars] </C>
Failure in test test_with_exception_supplied_wrong_args (testfixtures.tests.test_should_raise.TestShouldRaise)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_should_raise.py", line 152, in test_with_exception_supplied_wrong_args
"ValueError('bar',) raised, ValueError('foo',) expected"
File "/usr/lib/python3.7/unittest/case.py", line 839, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.7/unittest/case.py", line 832, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: AssertionError("ValueError('bar') raised,[24 chars]ted") !=
<C(failed):builtins.AssertionError>
[127 chars] </C>
Failure in test test_with_no_exception_when_expected (testfixtures.tests.test_should_raise.TestShouldRaise)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_should_raise.py", line 168, in test_with_no_exception_when_expected
C(AssertionError("None raised, ValueError('foo',) expected"))
File "/usr/lib/python3.7/unittest/case.py", line 839, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.7/unittest/case.py", line 832, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: AssertionError("None raised, ValueError('foo') expected") !=
<C(failed):builtins.AssertionError>
[100 chars] </C>
Failure in test test_wrong_exception (testfixtures.tests.test_should_raise.TestShouldRaise)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_should_raise.py", line 40, in test_wrong_exception
"ValueError('bar',) raised, ValueError('foo',) expected"
File "/usr/lib/python3.7/unittest/case.py", line 839, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.7/unittest/case.py", line 832, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: AssertionError("ValueError('bar') raised,[24 chars]ted") !=
<C(failed):builtins.AssertionError>
[127 chars] </C>
Failure in test test_maximal_bad (testfixtures.tests.test_shouldwarn.ShouldWarnTests)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_shouldwarn.py", line 102, in test_maximal_bad
'foo', DeprecationWarning, 'bar.py', 42, 'bar_module'
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/shouldraise.py", line 70, in __exit__
raise AssertionError(message)
AssertionError: AssertionError("sequence not as expected:\n\nsame:\n[]\n\nexpected:\n[\n <C(failed):builtins.DeprecationWarning>\n args:('bar',) != ('foo',)\n </C>]\n\nactual:\n[DeprecationWarning('foo')]") raised, AssertionError("sequence not as expected:\n\nsame:\n[]\n\nexpected:\n[\n <C(failed):builtins.DeprecationWarning>\n args:('bar',) != ('foo',)\n </C>]\n\nactual:\n[DeprecationWarning('foo',)]") expected
Failure in test test_minimal_bad (testfixtures.tests.test_shouldwarn.ShouldWarnTests)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_shouldwarn.py", line 82, in test_minimal_bad
warnings.warn('foo')
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/shouldraise.py", line 70, in __exit__
raise AssertionError(message)
AssertionError: AssertionError("sequence not as expected:\n\nsame:\n[]\n\nexpected:\n[<C(failed):builtins.DeprecationWarning>wrong type</C>]\n\nactual:\n[UserWarning('foo')]") raised, AssertionError("sequence not as expected:\n\nsame:\n[]\n\nexpected:\n[<C(failed):builtins.DeprecationWarning>wrong type</C>]\n\nactual:\n[UserWarning('foo',)]") expected
Failure in test test_warn_not_expected (testfixtures.tests.test_shouldwarn.ShouldWarnTests)
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
yield
File "/usr/lib/python3.7/unittest/case.py", line 615, in run
testMethod()
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/tests/test_shouldwarn.py", line 36, in test_warn_not_expected
warnings.warn('foo')
File "/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build/testfixtures/shouldraise.py", line 70, in __exit__
raise AssertionError(message)
AssertionError: AssertionError("sequence not as expected:\n\nsame:\n[]\n\nexpected:\n[]\n\nactual:\n[UserWarning('foo')]") raised, AssertionError("sequence not as expected:\n\nsame:\n[]\n\nexpected:\n[]\n\nactual:\n[UserWarning('foo',)]") expected
Ran 967 tests with 14 failures, 0 errors and 0 skipped in 0.355 seconds.
Tearing down left over layers:
Tear down zope.testrunner.layer.UnitTests in 0.000 seconds.
E: pybuild pybuild:338: test: plugin custom failed with: exit code=1: python3.7 /usr/bin/zope-testrunner --path=/build/1st/python-testfixtures-4.14.3/.pybuild/cpython3_3.7_testfixtures/build testfixtures
dh_auto_test: pybuild --test --test-nose -i python{version} -p "3.7 3.6" --system=custom "--test-args={interpreter} /usr/bin/zope-testrunner --path={build_dir} testfixtures" returned exit code 13
make[1]: *** [debian/rules:18: override_dh_auto_test] Error 25
More information about the Python-modules-team
mailing list