Bug 2019428
| Summary: | python-ply fails to build with Python 3.11: AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
| Component: | python-ply | Assignee: | Tom "spot" Callaway <spotrh> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | hugovk+redhatbugzilla, mhroncok, sgallagh, spotrh, thrnciar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-12-30 18:28:21 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1992484, 2016048 | ||
Upstream PR: https://github.com/dabeaz/ply/pull/262 Fix merged upstream: https://github.com/dabeaz/ply/pull/262 Thank you! Patch applied in rawhide (python-ply-3.11-14.fc36). |
python-ply fails to build with Python 3.11.0a1. ====================================================================== ERROR: test_lex_closure (__main__.LexBuildOptionTests) ---------------------------------------------------------------------- AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_many_tokens (__main__.LexBuildOptionTests) ---------------------------------------------------------------------- AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_module (__main__.LexBuildOptionTests) ---------------------------------------------------------------------- AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_object (__main__.LexBuildOptionTests) ---------------------------------------------------------------------- AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_opt_alias (__main__.LexBuildOptionTests) ---------------------------------------------------------------------- AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_optimize (__main__.LexBuildOptionTests) ---------------------------------------------------------------------- AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_optimize2 (__main__.LexBuildOptionTests) ---------------------------------------------------------------------- AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_optimize3 (__main__.LexBuildOptionTests) ---------------------------------------------------------------------- AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_doc1 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_dup1 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_dup2 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_dup3 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_empty (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_error1 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_error2 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_error3 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_error4 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_ignore (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_ignore2 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_literal1 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_literal2 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_re1 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_re2 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_re3 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_rule1 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_rule2 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_rule3 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_state1 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_state2 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_state3 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_state4 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_state5 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_state_noerror (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_state_norule (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_token1 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_token2 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_token3 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_token4 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_token5 (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_token_dup (__main__.LexErrorWarningTests) ---------------------------------------------------------------------- AttributeError: 'LexErrorWarningTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_hedit (__main__.LexRunTests) ---------------------------------------------------------------------- AttributeError: 'LexRunTests' object has no attribute 'assert_' ====================================================================== ERROR: test_lex_state_try (__main__.LexRunTests) ---------------------------------------------------------------------- AttributeError: 'LexRunTests' object has no attribute 'assert_' RPM build errors: ---------------------------------------------------------------------- Ran 43 tests in 0.075s FAILED (errors=42) Removed many old deprecated unittest features: TestCase method aliases failUnlessEqual, failIfEqual, failUnless, failIf, failUnlessRaises, failUnlessAlmostEqual, failIfAlmostEqual (deprecated in Python 3.1), assertEquals, assertNotEquals, assert_, assertAlmostEquals, assertNotAlmostEquals, assertRegexpMatches, assertRaisesRegexp (deprecated in Python 3.2), and assertNotRegexpMatches (deprecated in Python 3.5). https://bugs.python.org/issue45162 https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02910388-python-ply/ For all our attempts to build python-ply with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-ply/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.