Bug 2019403
Summary: | python-nose2 fails to build with Python 3.11: AssertionError: Regex didn't match: 'self.assertTrue\\(x\\) AssertionError: False is not true' not found in 'test_old_assertion (unittest_assertion.test_prettyassert_unittestassertion.TestFoo) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-nose2 | Assignee: | Aurelien Bompard <aurelien> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 36 | CC: | aurelien, hugovk+redhatbugzilla, mhroncok, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 0.11.0-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-06-06 12:01:41 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, 2045102 |
Description
Tomáš Hrnčiar
2021-11-02 13:53:18 UTC
The assertEquals failures have been fixed in upstream on 12th Oct -- https://github.com/nose-devs/nose2/pull/500 -- but not yet released. The "Regex didn't match" is still there. Removal of unittest aliases was reverted in Python 3.11 and will be part of Python 3.12, so the above failure is not present anymore. Hugo's PR will be needed next year though. Regarding Python 3.11 test_run leads to Segmentation fault. test_run (nose2.tests.functional.test_coverage.TestCoverage) ... /var/tmp/rpm-tmp.VsRQe4: line 42: 1663 Segmentation fault (core dumped) PYTHONPATH=`pwd` /usr/bin/python3 -m nose2.__main__ -v error: Bad exit status from /var/tmp/rpm-tmp.VsRQe4 (%check) Seems like the segfault was caused by outdated build of python-coverage. Current error is: ====================================================================== FAIL: test_unittest_assertion (nose2.tests.functional.test_prettyassert.TestPrettyAsserts) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/nose2-0.9.1/nose2/tests/functional/test_prettyassert.py", line 209, in test_unittest_assertion stderr = self.assertProcOutputPattern(proc, expected) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nose2-0.9.1/nose2/tests/functional/test_prettyassert.py", line 15, in assertProcOutputPattern self.assertTestRunOutputMatches( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/nose2-0.9.1/nose2/tests/_common.py", line 91, in assertTestRunOutputMatches testf(util.safe_decode(cmd_stderr), stderr) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: Regex didn't match: 'self.assertTrue\\(x\\)\nAssertionError: False is not true' not found in 'test_old_assertion (unittest_assertion.test_prettyassert_unittestassertion.TestFoo) ... FAIL\n\n======================================================================\nFAIL: test_old_assertion (unittest_assertion.test_prettyassert_unittestassertion.TestFoo)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File "/builddir/build/BUILD/nose2-0.9.1/nose2/tests/functional/support/scenario/pretty_asserts/unittest_assertion/test_prettyassert_unittestassertion.py", line 7, in test_old_assertion\n self.assertTrue(x)\n ^^^^^^^^^^^^^^^^^^\nAssertionError: False is not true\n\n----------------------------------------------------------------------\nRan 1 test in 0.000s\n\nFAILED (failures=1)\n' This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36. Dear Maintainer, your package has an open Fails To Build From Source bug for Fedora 37. Action is required from you. If you can fix your package to build, perform a build in koji, and either create an update in bodhi, or close this bug without creating an update, if updating is not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to acknowledge this. If you have already fixed this issue, please close this Bugzilla report. Following the policy for such packages [2], your package will be orphaned if this bug remains in NEW state more than 8 weeks (not sooner than 2021-12-28). A week before the mass branching of Fedora 38 according to the schedule [3], any packages not successfully rebuilt at least on Fedora 36 will be retired regardless of the status of this bug. [1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/ [2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/ [3] https://fedorapeople.org/groups/schedule/f-38/f-38-key-tasks.html My upstream PR has been merged: https://github.com/nose-devs/nose2/pull/519 Dear Maintainer, your package has an open Fails To Build From Source bug for Fedora 37. Action is required from you. If you can fix your package to build, perform a build in koji, and either create an update in bodhi, or close this bug without creating an update, if updating is not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to acknowledge this. If you have already fixed this issue, please close this Bugzilla report. Following the policy for such packages [2], your package will be orphaned if this bug remains in NEW state more than 8 weeks (not sooner than 2021-12-28). A week before the mass branching of Fedora 38 according to the schedule [3], any packages not successfully rebuilt at least on Fedora 36 will be retired regardless of the status of this bug. [1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/ [2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/ [3] https://fedorapeople.org/groups/schedule/f-38/f-38-key-tasks.html |