Source: python-icecream Version: 2.1.3-1 Severity: serious Tags: sid bookworm User: debian...@lists.debian.org Usertags: needs-update User: debian-pyt...@lists.debian.org Usertags: python3.11 Control: affects -1 src:python3-defaults
Dear maintainer(s),We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of python-icecream fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:
pass fail python3-defaults from testing 3.10.6-3 python-icecream from testing 2.1.3-1 all others from testing from testing I copied some of the output at the bottom of this report.Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.
More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation Paul [0] https://bugs.debian.org/1021984 [1] https://qa.debian.org/excuses.php?package=python3-defaults https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-icecream/28750371/log.gz FFF.EE.EFEFFEEF.FFFFFFFFE.FF.FFFEFE ====================================================================== ERROR: testComments (tests.test_icecream.TestIceCream.testComments) ---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 291, in testComments
assert lineIsContextAndTime(err.getvalue()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 115, in lineIsContextAndTime
context, time = line.split(' at ') ^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1) ====================================================================== ERROR: testComplicated (tests.test_icecream.TestIceCream.testComplicated) ---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 308, in testComplicated
assert lineIsContextAndTime(err.getvalue().splitlines()[0]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 115, in lineIsContextAndTime
context, time = line.split(' at ') ^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1) ======================================================================ERROR: testContextAbsPathMultiLine (tests.test_icecream.TestIceCream.testContextAbsPathMultiLine)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 502, in testContextAbsPathMultiLine
assert lineIsAbsPathContext(firstLine) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 142, in lineIsAbsPathContext
int(lineNumber) > 0 and ^^^^^^^^^^^^^^^ValueError: invalid literal for int() with base 10: ' Failed to access the underlying source code for analysis. Was ic() invoked'
======================================================================ERROR: testDifferentName (tests.test_icecream.TestIceCream.testDifferentName)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 323, in testDifferentName
assert lineIsContextAndTime(err.getvalue()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 115, in lineIsContextAndTime
context, time = line.split(' at ') ^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1) ====================================================================== ERROR: testFormat (tests.test_icecream.TestIceCream.testFormat) ---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 511, in testFormat
"""comment"""; noop(); s = ic.format( # noqa ^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/icecream/icecream.py", line 225, in format
out = self._format(callFrame, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/icecream/icecream.py", line 233, in _format
raise NoSourceAvailableError() icecream.icecream.NoSourceAvailableError ======================================================================ERROR: testIncludeContextMultiLine (tests.test_icecream.TestIceCream.testIncludeContextMultiLine)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 490, in testIncludeContextMultiLine
assert lineIsContext(firstLine) ^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 130, in lineIsContext
int(lineNumber) > 0 and ^^^^^^^^^^^^^^^ValueError: invalid literal for int() with base 10: ' Failed to access the underlying source code for analysis. Was ic() invoked'
======================================================================ERROR: testNestedMultiline (tests.test_icecream.TestIceCream.testNestedMultiline)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 248, in testNestedMultiline
assert lineIsContextAndTime(err.getvalue()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 115, in lineIsContextAndTime
context, time = line.split(' at ') ^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1) ======================================================================ERROR: testSingledispatchArgumentToString (tests.test_icecream.TestIceCream.testSingledispatchArgumentToString)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 408, in testSingledispatchArgumentToString
default_output = ic.format(x) ^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/icecream/icecream.py", line 225, in format
out = self._format(callFrame, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/icecream/icecream.py", line 233, in _format
raise NoSourceAvailableError() icecream.icecream.NoSourceAvailableError ====================================================================== ERROR: testWithoutArgs (tests.test_icecream.TestIceCream.testWithoutArgs) ---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 217, in testWithoutArgs
assert lineIsContextAndTime(err.getvalue()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 115, in lineIsContextAndTime
context, time = line.split(' at ') ^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1) ======================================================================FAIL: testArgToStringFunction (tests.test_icecream.TestIceCream.testArgToStringFunction)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 391, in testArgToStringFunction
assert pair == ('eins', 'zwei') ^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ====================================================================== FAIL: testAsArgument (tests.test_icecream.TestIceCream.testAsArgument) ---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 223, in testAsArgument
assert pairs[0][0] == ('a', '1') and pairs[1][0] == ('b', '2') ^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testCallSurroundedByExpressions (tests.test_icecream.TestIceCream.testCallSurroundedByExpressions)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 286, in testCallSurroundedByExpressions
assert parseOutputIntoPairs(out, err, 1)[0][0] == ('a', '1') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testContextAbsPathSingleLine (tests.test_icecream.TestIceCream.testContextAbsPathSingleLine)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 472, in testContextAbsPathSingleLine
assert [('i', '3')] in pairs ^^^^^^^^^^^^^^^^^^^^^ AssertionError ====================================================================== FAIL: testEnableDisable (tests.test_icecream.TestIceCream.testEnableDisable) ---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 380, in testEnableDisable
assert pairs == [[('a', '1')], [('c', '3')]] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testExpressionArguments (tests.test_icecream.TestIceCream.testExpressionArguments)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 269, in testExpressionArguments
assert pair == ("d['d'][1]", "'one'") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testIncludeContextSingleLine (tests.test_icecream.TestIceCream.testIncludeContextSingleLine)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 463, in testIncludeContextSingleLine
assert pair == ('i', '3') ^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testMethodArguments (tests.test_icecream.TestIceCream.testMethodArguments)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 300, in testMethodArguments
assert parseOutputIntoPairs(out, err, 1)[0][0] == ('f.foo()', "'foo'") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testMultilineContainerArgs (tests.test_icecream.TestIceCream.testMultilineContainerArgs)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 553, in testMultilineContainerArgs
self.assertEqual(err.getvalue().strip(), """AssertionError: 'ic| Error: Failed to access the underlying so[672 chars]ion?' != 'ic| (a,\n b): (1, 2)\nic| [a,\n b]: [[204 chars]14]]'
Diff is 989 characters long. Set self.maxDiff to None to see it. ======================================================================FAIL: testMultilineInvocationWithComments (tests.test_icecream.TestIceCream.testMultilineInvocationWithComments)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 528, in testMultilineInvocationWithComments
assert pairs == [('a', '1'), ('b', '2')] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testMultilineValueWrapped (tests.test_icecream.TestIceCream.testMultilineValueWrapped)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 453, in testMultilineValueWrapped
pair = parseOutputIntoPairs(out, err, 2)[0][0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 170, in parseOutputIntoPairs
assert len(lines) == assertNumLines ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testMultipleArguments (tests.test_icecream.TestIceCream.testMultipleArguments)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 242, in testMultipleArguments
assert pairs == [('a', '1'), ('b', '2')] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testMultipleArgumentsLongLineWrapped (tests.test_icecream.TestIceCream.testMultipleArgumentsLongLineWrapped)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 438, in testMultipleArgumentsLongLineWrapped
pairs = parseOutputIntoPairs(out, err, 4) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 170, in parseOutputIntoPairs
assert len(lines) == assertNumLines ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testMultipleCallsOnSameLine (tests.test_icecream.TestIceCream.testMultipleCallsOnSameLine)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 280, in testMultipleCallsOnSameLine
assert pairs[0][0] == ('a', '1') ^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testMultipleTupleArguments (tests.test_icecream.TestIceCream.testMultipleTupleArguments)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 589, in testMultipleTupleArguments
self.assertEqual(pair, [AssertionError: Lists differ: [('REPL (e.g. from the command line), a froz[111 chars]one)] != [('(a, b)', '(1, 2)'), ('(b, a)', '(2, 1)'),[19 chars]'2')]
First differing element 0: ('REPL (e.g. from the command line), a froz[110 chars]None) ('(a, b)', '(1, 2)') Second list contains 3 additional elements. First extra element 1: ('(b, a)', '(2, 1)') + [('(a, b)', '(1, 2)'), ('(b, a)', '(2, 1)'), ('a', '1'), ('b', '2')]- [('REPL (e.g. from the command line), a frozen application (e.g. packaged with ' - 'PyInstaller), or did the underlying source code change during execution?',
- None)] ======================================================================FAIL: testOutputFunction (tests.test_icecream.TestIceCream.testOutputFunction)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 364, in testOutputFunction
assert pairs == [[('a', '1')], [('b', '2')]] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testPrefixConfiguration (tests.test_icecream.TestIceCream.testPrefixConfiguration)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 337, in testPrefixConfiguration
assert pair == ('a', '1') ^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testSingleArgument (tests.test_icecream.TestIceCream.testSingleArgument)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 236, in testSingleArgument
assert parseOutputIntoPairs(out, err, 1)[0][0] == ('a', '1') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testSingleArgumentLongLineNotWrapped (tests.test_icecream.TestIceCream.testSingleArgumentLongLineNotWrapped)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 427, in testSingleArgumentLongLineNotWrapped
assert pair == ('longStr', ic.argToStringFunction(longStr)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ======================================================================FAIL: testSingleTupleArgument (tests.test_icecream.TestIceCream.testSingleTupleArgument)
---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 540, in testSingleTupleArgument
self.assertEqual(pair, ('(a, b)', '(1, 2)'))AssertionError: Tuples differ: ('REPL (e.g. from the command line), a froz[110 chars]None) != ('(a, b)', '(1, 2)')
First differing element 0: 'REPL (e.g. from the command line), a froz[103 chars]ion?' '(a, b)' + ('(a, b)', '(1, 2)')- ('REPL (e.g. from the command line), a frozen application (e.g. packaged with ' - 'PyInstaller), or did the underlying source code change during execution?',
- None) ====================================================================== FAIL: testValues (tests.test_icecream.TestIceCream.testValues) ---------------------------------------------------------------------- Traceback (most recent call last):File "/tmp/autopkgtest-lxc.hwa09bp6/downtmp/build.H96/src/tests/test_icecream.py", line 481, in testValues
assert pairs == [[('3', None), ("'asdf'", None), ("'asdf'", None)]] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError ---------------------------------------------------------------------- Ran 35 tests in 0.045s FAILED (failures=21, errors=9) autopkgtest [23:14:38]: test unittest
OpenPGP_signature
Description: OpenPGP digital signature