Bug 2488362

Summary: python-django6 fails to build with Python 3.15: AssertionError: 796 != 0 : Stream should be empty
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-django6Assignee: Michel Lind <michel>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: infra-sig, michel, ngompa13, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2412434, 2433833    

Description Karolina Surma 2026-06-12 14:25:20 UTC
python-django6 fails to build with Python 3.15.0b2.

FAIL: test_version (admin_scripts.tests.CommandTypes.test_version)
version is handled as a special case
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.15/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/usr/lib64/python3.15/unittest/case.py", line 691, in run
    self._callTestMethod(testMethod)
    
  File "/usr/lib64/python3.15/unittest/case.py", line 637, in _callTestMethod
    result = method()
    ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-django6-6.0.5-build/django-6.0.5/tests/admin_scripts/tests.py", line 1945, in test_version
    self.assertNoOutput(err)
    ^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/python-django6-6.0.5-build/django-6.0.5/tests/admin_scripts/tests.py", line 184, in assertNoOutput
    self.assertEqual(
    ^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.15/unittest/case.py", line 949, in assertEqual
    assertion_func(first, second, msg=msg)
    ^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.15/unittest/case.py", line 942, in _baseAssertEqual
    raise self.failureException(msg)
    ^^^^^^^^^^^
AssertionError: 796 != 0 : Stream should be empty: actually contains 'Error in import line from /usr/lib/python3.15/site-packages/sphinxcontrib_spelling-7.3.3-py3.15-nspkg.pth: import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('sphinxcontrib',));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('sphinxcontrib', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('sphinxcontrib', [os.path.dirname(p)])));m = m or sys.modules.setdefault('sphinxcontrib', types.ModuleType('sphinxcontrib'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
  Traceback (most recent call last):
    File "<frozen site>", line 533, in _exec_imports
    File "<string>", line 1, in <module>
  KeyError: "local variable ''sitedir'' is not defined"

and probably more...

https://docs.python.org/3.15/whatsnew/3.15.html

For our attempts to build python-django6 with Python 3.15, see:
https://koji.fedoraproject.org/koji/search?terms=python-django6&type=package&match=exact

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.