Bug 2458661 - python-django5 fails to build with Python 3.15: AssertionError: "Error: argument --database: invalid choice: 'deflaut' \(choose from '?default'?, '?other'?\)" does not match "Error: argument --database: invalid choice: 'deflaut', maybe you meant 'default'
Summary: python-django5 fails to build with Python 3.15: AssertionError: "Error: argum...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-django5
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-04-15 11:53 UTC by Karolina Surma
Modified: 2026-06-29 14:07 UTC (History)
4 users (show)

Fixed In Version: python-django5-5.2.14-2.fc45
Clone Of:
Environment:
Last Closed: 2026-06-29 14:07:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-04-15 11:53:09 UTC
python-django5 fails to build with Python 3.15.0a8.

FAIL: test_invalid_choice_db_option (admin_scripts.tests.CommandDBOptionChoiceTests.test_invalid_choice_db_option)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.15/argparse.py", line 2124, in _parse_known_args2
    namespace, args = self._parse_known_args(args, namespace, intermixed)
                      ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.15/argparse.py", line 2375, in _parse_known_args
    start_index = consume_optional(start_index)
  File "/usr/lib64/python3.15/argparse.py", line 2299, in consume_optional
    take_action(action, args, option_string)
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.15/argparse.py", line 2185, in take_action
    argument_values = self._get_values(action, argument_strings)
  File "/usr/lib64/python3.15/argparse.py", line 2702, in _get_values
    self._check_value(action, value)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.15/argparse.py", line 2773, in _check_value
    raise ArgumentError(action, msg % args)
argparse.ArgumentError: argument --database: invalid choice: 'deflaut', maybe you meant 'default'? (choose from default, other)

During handling of the above exception, another exception occurred:

django.core.management.base.CommandError: Error: argument --database: invalid choice: 'deflaut', maybe you meant 'default'? (choose from default, other)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/python-django5-5.2.11-build/django-5.2.11/tests/admin_scripts/tests.py", line 2431, in test_invalid_choice_db_option
    with self.assertRaisesRegex(CommandError, expected_error):
         ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Error: argument --database: invalid choice: 'deflaut' \(choose from '?default'?, '?other'?\)" does not match "Error: argument --database: invalid choice: 'deflaut', maybe you meant 'default'? (choose from default, other)"


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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10318665-python-django5/

For all our attempts to build python-django5 with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-django5/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

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.