Bug 2488362 - python-django6 fails to build with Python 3.15: AssertionError: 796 != 0 : Stream should be empty
Summary: python-django6 fails to build with Python 3.15: AssertionError: 796 != 0 : St...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-django6
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2026-06-12 14:25 UTC by Karolina Surma
Modified: 2026-06-12 14:25 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.