Bug 2019428 - python-ply fails to build with Python 3.11: AttributeError: 'LexBuildOptionTests' object has no attribute 'assert_'
Summary: python-ply fails to build with Python 3.11: AttributeError: 'LexBuildOptionTe...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ply
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F36FTBFS PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2021-11-02 14:26 UTC by Tomáš Hrnčiar
Modified: 2021-12-30 18:28 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-12-30 18:28:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7652 0 None Closed Jenkins Kubernetes plugins issues 2022-05-26 22:59:52 UTC

Description Tomáš Hrnčiar 2021-11-02 14:26:12 UTC
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.

Comment 1 Hugo van Kemenade 2021-12-30 10:23:01 UTC
Upstream PR: https://github.com/dabeaz/ply/pull/262

Comment 2 Hugo van Kemenade 2021-12-30 15:49:41 UTC
Fix merged upstream: https://github.com/dabeaz/ply/pull/262

Comment 3 Tom "spot" Callaway 2021-12-30 18:28:21 UTC
Thank you! Patch applied in rawhide (python-ply-3.11-14.fc36).


Note You need to log in before you can comment on or make changes to this bug.