test_skip_verbose fails on python3.12

Bug #2052724 reported by Ravi Kant Sharma
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
django-rich (Debian)
Fix Released
Unknown
django-rich (Ubuntu)
Fix Released
Medium
Ravi Kant Sharma

Bug Description

error log:
https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/d/django-rich/20240207_144558_29826@/log.gz

290s =================================== FAILURES ===================================
290s ______________________ TestRunnerTests.test_skip_verbose _______________________
290s
290s self = <tests.test_test.TestRunnerTests testMethod=test_skip_verbose>
290s
290s def test_skip_verbose(self):
290s result = self.run_test("-v", "2", f"{__name__}.ExampleTests.test_skip")
290s assert result.returncode == 0
290s lines = result.stderr.splitlines()
290s if sys.version_info >= (3, 11):
290s > assert lines[1:4] == [
290s (
290s "test_skip (tests.test_test.ExampleTests.test_skip) ... "
290s + "skipped 'some reason'"
290s ),
290s "",
290s "-" * 70,
290s ]
290s E assert ["skipped 'so...------------'] == ["test_skip (...------------']
290s E At index 0 diff: "skipped 'some reason'" != "test_skip (tests.test_test.ExampleTests.test_skip) ... skipped 'some reason'"
290s E Full diff:
290s E [
290s E - "test_skip (tests.test_test.ExampleTests.test_skip) ... skipped 'some reason'",
290s E + "skipped 'some reason'",
290s E '',
290s E '----------------------------------------------------------------------',
290s E ]
290s
290s tests/test_test.py:224: AssertionError

Changed in django-rich (Ubuntu):
assignee: nobody → Ravi Kant Sharma (ravi-sharma)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Ravi Kant Sharma (ravi-sharma) wrote :
Changed in django-rich (Debian):
status: Unknown → New
tags: added: update-excuse
Revision history for this message
Ravi Kant Sharma (ravi-sharma) wrote :

Uploaded. Thanks enr0n!

Changed in django-rich (Ubuntu):
status: Confirmed → Fix Committed
status: Fix Committed → Fix Released
Changed in django-rich (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.