#34958: Intermittent `messages_tests.tests.TestLevelTags.test_lazy` test failure
-----------------------------------------+------------------------
Reporter: bcail | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
I get following test failure sometimes (it's happened on py3.11, py3.12,
and py3.13a1). Seems to be some kind of race condition.
{{{
======================================================================
FAIL: test_lazy (messages_tests.tests.TestLevelTags.test_lazy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/python-3.12.0/lib/python3.12/unittest/case.py", line 58, in
testPartExecutor
yield
File "/opt/python-3.12.0/lib/python3.12/unittest/case.py", line 634, in
run
self._callTestMethod(testMethod)
^^^^^^^^^^^^^^^^^
File "/opt/python-3.12.0/lib/python3.12/unittest/case.py", line 589, in
_callTestMethod
if method() is not None:
^^^^^^^^^^^^^^^^^
File "/opt/local/src/django/tests/messages_tests/tests.py", line 73, in
test_lazy
self.assertEqual(base.LEVEL_TAGS[constants.ERROR], "bad")
^^^^^^^^^^^^^^^^^
File "/opt/python-3.12.0/lib/python3.12/unittest/case.py", line 885, in
assertEqual
assertion_func(first, second, msg=msg)
^^^^^^^^^^^^^^^^^
File "/opt/python-3.12.0/lib/python3.12/unittest/case.py", line 1251, in
assertMultiLineEqual
self.fail(self._formatMessage(msg, standardMsg))
^^^^^^^^^^^^^^^^^
File "/opt/python-3.12.0/lib/python3.12/unittest/case.py", line 715, in
fail
raise self.failureException(msg)
^^^^^^^^^^^^^^^^^
AssertionError: 'error' != 'bad'
- error
+ bad
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34958>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018bb06171ad-b2a92c1c-9e34-4a1e-b067-c3e1e13ffe7d-000000%40eu-central-1.amazonses.com.