Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 890829

Summary: dev-python/django-4.1.4 fails tests test_pass_connection_between_threads and test_thread_sharing_count
Product: Gentoo Linux Reporter: Jonathan Lovelace <kingjon3377>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: UNCONFIRMED ---    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-python:django-4.1.4:20230114-170449.log.gz
emerge-info.txt

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.