Source: python-parsley Version: 1.3-2 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20231212 ftbfs-trixie
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules binary > dh binary --with python3 --buildsystem=pybuild > dh_update_autotools_config -O--buildsystem=pybuild > dh_autoreconf -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > I: pybuild base:310: python3.12 setup.py config > I: pybuild base:310: python3.11 setup.py config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:310: /usr/bin/python3.12 setup.py build > I: pybuild base:310: /usr/bin/python3 setup.py build > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:310: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_parsley/build; python3.12 -m pytest > ============================= test session starts > ============================== > platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0 > rootdir: /<<PKGBUILDDIR>> > collected 309 items > > ometa/test/test_builder.py ............F........ [ > 6%] > ometa/test/test_protocol.py .F.FFF....... [ > 11%] > ometa/test/test_pymeta.py .............................................. [ > 25%] > ...................................................................F.... [ > 49%] > ................................................s...s...sss.......s..s.. [ > 72%] > ......s................... [ > 80%] > ometa/test/test_runtime.py ....F................ [ > 87%] > ometa/test/test_tube.py .... [ > 88%] > ometa/test/test_vm_builder.py ..................... [ > 95%] > terml/test/test_quasiterm.py ... [ > 96%] > terml/test/test_terml.py .......... > [100%] > > =================================== FAILURES > =================================== > ______________________ PythonWriterTests.test_markAsTree > _______________________ > > self = <ometa.test.test_builder.PythonWriterTests testMethod=test_markAsTree> > > def test_markAsTree(self): > """ > Grammars containing list patterns are marked as taking > tree-shaped input rather than character streams. > """ > x = t.Rule("foo", t.List( > t.Exactly("x"))) > g = t.Grammar("TestGrammar", True, [x]) > > self.assert_("\n tree = True\n" in writePython(g, "")) > E AttributeError: 'PythonWriterTests' object has no attribute > 'assert_'. Did you mean: 'assertIn'? > > ometa/test/test_builder.py:328: AttributeError > ______________ ParserProtocolTestCase.test_connectionEstablishes > _______________ > > self = <ometa.test.test_protocol.ParserProtocolTestCase > testMethod=test_connectionEstablishes> > > def test_connectionEstablishes(self): > """prepareParsing is called on the receiver after connection > establishment.""" > self.protocol.makeConnection(None) > > self.assert_(self.protocol.receiver.connected) > E AttributeError: 'ParserProtocolTestCase' object has no attribute > 'assert_'. Did you mean: 'assertIn'? > > ometa/test/test_protocol.py:93: AttributeError > __________ ParserProtocolTestCase.test_dataIgnoredAfterDisconnection > ___________ > > self = <ometa.test.test_protocol.ParserProtocolTestCase > testMethod=test_dataIgnoredAfterDisconnection> > > def test_dataIgnoredAfterDisconnection(self): > """After connectionLost is called, all incoming data is ignored.""" > transport = FakeTransport() > self.protocol.makeConnection(transport) > reason = object() > self.protocol.connectionLost(reason) > self.protocol.dataReceived('d') > self.assertEqual(self.protocol.receiver.lossReason, reason) > > self.assert_(not transport.aborted) > E AttributeError: 'ParserProtocolTestCase' object has no attribute > 'assert_'. Did you mean: 'assertIn'? > > ometa/test/test_protocol.py:190: AttributeError > ___________ ParserProtocolTestCase.test_exceptionsRaisedFromReceiver > ___________ > > self = <ometa.test.test_protocol.ParserProtocolTestCase > testMethod=test_exceptionsRaisedFromReceiver> > > def test_exceptionsRaisedFromReceiver(self): > """ > Raising an exception from receiver methods called from the grammar > propagate to finishParsing. > """ > transport = FakeTransport() > self.protocol.makeConnection(transport) > self.protocol.dataReceived('e') > > self.failIfEqual(self.protocol.receiver.lossReason, None) > E AttributeError: 'ParserProtocolTestCase' object has no attribute > 'failIfEqual' > > ometa/test/test_protocol.py:177: AttributeError > ___________________ ParserProtocolTestCase.test_parseFailure > ___________________ > > self = <ometa.test.test_protocol.ParserProtocolTestCase > testMethod=test_parseFailure> > > def test_parseFailure(self): > """ > Parse failures cause connection abortion with the parse error as the > reason. > """ > transport = FakeTransport() > self.protocol.makeConnection(transport) > self.protocol.dataReceived('b') > > self.failIfEqual(self.protocol.receiver.lossReason, None) > E AttributeError: 'ParserProtocolTestCase' object has no attribute > 'failIfEqual' > > ometa/test/test_protocol.py:164: AttributeError > ______________________ MakeGrammarTest.test_brokenGrammar > ______________________ > > self = <ometa.test.test_pymeta.MakeGrammarTest testMethod=test_brokenGrammar> > > def test_brokenGrammar(self): > grammar = """ > andHandler = handler:h1 'and handler:h2 -> And(h1, h2) > """ > e = self.assertRaises(ParseError, OMeta.makeGrammar, grammar, > "Foo") > > self.assertEquals(e.position, 57) > E AttributeError: 'MakeGrammarTest' object has no attribute > 'assertEquals'. Did you mean: 'assertEqual'? > > ometa/test/test_pymeta.py:1142: AttributeError > ________________________ RuntimeTests.test_exactlyFail > _________________________ > > self = <ometa.test.test_runtime.RuntimeTests testMethod=test_exactlyFail> > > def test_exactlyFail(self): > """ > L{OMetaBase.rule_exactly} raises L{ParseError} when the requested item > doesn't match the input. The error contains info on what was expected > and the position. > """ > > data = "foo" > o = OMetaBase(data) > exc = self.assertRaises(ParseError, o.rule_exactly, "g") > > self.assertEquals(exc.args[1], expected(None, "g")) > E AttributeError: 'RuntimeTests' object has no attribute > 'assertEquals'. Did you mean: 'assertEqual'? > > ometa/test/test_runtime.py:57: AttributeError > =========================== short test summary info > ============================ > FAILED ometa/test/test_builder.py::PythonWriterTests::test_markAsTree - > Attri... > FAILED > ometa/test/test_protocol.py::ParserProtocolTestCase::test_connectionEstablishes > FAILED > ometa/test/test_protocol.py::ParserProtocolTestCase::test_dataIgnoredAfterDisconnection > FAILED > ometa/test/test_protocol.py::ParserProtocolTestCase::test_exceptionsRaisedFromReceiver > FAILED ometa/test/test_protocol.py::ParserProtocolTestCase::test_parseFailure > FAILED ometa/test/test_pymeta.py::MakeGrammarTest::test_brokenGrammar - > Attri... > FAILED ometa/test/test_runtime.py::RuntimeTests::test_exactlyFail - > Attribute... > =================== 7 failed, 294 passed, 8 skipped in 7.48s > =================== > E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_parsley/build; python3.12 -m pytest > I: pybuild base:310: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build; python3.11 -m pytest > ============================= test session starts > ============================== > platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0 > rootdir: /<<PKGBUILDDIR>> > collected 309 items > > ometa/test/test_builder.py ..................... [ > 6%] > ometa/test/test_protocol.py ............. [ > 11%] > ometa/test/test_pymeta.py .............................................. [ > 25%] > ........................................................................ [ > 49%] > ................................................s...s...sss.......s..s.. [ > 72%] > ......s................... [ > 80%] > ometa/test/test_runtime.py ..................... [ > 87%] > ometa/test/test_tube.py .... [ > 88%] > ometa/test/test_vm_builder.py ..................... [ > 95%] > terml/test/test_quasiterm.py ... [ > 96%] > terml/test/test_terml.py .......... > [100%] > > =============================== warnings summary > =============================== > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_builder.py::PythonWriterTests::test_markAsTree > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_builder.py:328: > DeprecationWarning: Please use assertTrue instead. > self.assert_("\n tree = True\n" in writePython(g, "")) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py::ParserProtocolTestCase::test_connectionEstablishes > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py:93: > DeprecationWarning: Please use assertTrue instead. > self.assert_(self.protocol.receiver.connected) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py::ParserProtocolTestCase::test_dataIgnoredAfterDisconnection > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py:190: > DeprecationWarning: Please use assertTrue instead. > self.assert_(not transport.aborted) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py::ParserProtocolTestCase::test_exceptionsRaisedFromReceiver > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py:177: > DeprecationWarning: Please use assertNotEqual instead. > self.failIfEqual(self.protocol.receiver.lossReason, None) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py::ParserProtocolTestCase::test_exceptionsRaisedFromReceiver > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py:180: > DeprecationWarning: Please use assertTrue instead. > self.assert_(transport.aborted) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py::ParserProtocolTestCase::test_parseFailure > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py:164: > DeprecationWarning: Please use assertNotEqual instead. > self.failIfEqual(self.protocol.receiver.lossReason, None) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py::ParserProtocolTestCase::test_parseFailure > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_protocol.py:167: > DeprecationWarning: Please use assertTrue instead. > self.assert_(transport.aborted) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_pymeta.py::MakeGrammarTest::test_brokenGrammar > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_pymeta.py:1142: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(e.position, 57) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_pymeta.py::MakeGrammarTest::test_brokenGrammar > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_pymeta.py:1143: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(e.error, [("message", "end of input")]) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_runtime.py::RuntimeTests::test_exactlyFail > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_runtime.py:57: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(exc.args[1], expected(None, "g")) > > .pybuild/cpython3_3.11_parsley/build/ometa/test/test_runtime.py::RuntimeTests::test_exactlyFail > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_parsley/build/ometa/test/test_runtime.py:58: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(exc.args[0], 0) > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > ================= 301 passed, 8 skipped, 11 warnings in 7.50s > ================== > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 > 3.11" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2023/12/12/python-parsley_1.3-2_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.