Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890829 - dev-python/django-4.1.4 fails tests test_pass_connection_between_threads and test_thread_sharing_count
Summary: dev-python/django-4.1.4 fails tests test_pass_connection_between_threads and ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-14 19:15 UTC by Jonathan Lovelace
Modified: 2023-02-15 11:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:django-4.1.4:20230114-170449.log.gz (dev-python:django-4.1.4:20230114-170449.log.gz,361.27 KB, application/gzip)
2023-01-14 19:22 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.61 KB, text/plain)
2023-01-14 19:22 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2023-01-14 19:15:26 UTC
=dev-python/django-4.1.4 fails its test phase, specifically two tests under backends.tests.ThreadTests, namely test_pass_connection_between_threads and test_thread_sharing_count:

======================================================================
ERROR: test_pass_connection_between_threads (backends.tests.ThreadTests)
A connection can be passed from one thread to the other (#17258).
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.10/unittest/case.py", line 591, in run
    self._callTestMethod(testMethod)
  File "/usr/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
  File "/var/tmp/portage/dev-python/django-4.1.4/work/Django-4.1.4/tests/backends/tests.py", line 830, in test_pass_connection_between_threads
    self.assertIsInstance(exceptions[0], DatabaseError)
IndexError: list index out of range

======================================================================
FAIL: test_thread_sharing_count (backends.tests.ThreadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.10/unittest/case.py", line 591, in run
    self._callTestMethod(testMethod)
  File "/usr/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
  File "/var/tmp/portage/dev-python/django-4.1.4/work/Django-4.1.4/tests/backends/tests.py", line 894, in test_thread_sharing_count
    self.assertIs(connection.allow_thread_sharing, False)
  File "/usr/lib/python3.10/unittest/case.py", line 1126, in assertIs
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib/python3.10/unittest/case.py", line 675, in fail
    raise self.failureException(msg)
AssertionError: True is not False
Comment 1 Jonathan Lovelace 2023-01-14 19:22:11 UTC
Created attachment 848459 [details]
dev-python:django-4.1.4:20230114-170449.log.gz
Comment 2 Jonathan Lovelace 2023-01-14 19:22:24 UTC
Created attachment 848461 [details]
emerge-info.txt
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-15 11:00:49 UTC
Can you reproduce it with the newest version?  I'm afraid Django's one of the, errr, harder packages to figure out why things are failing.