Bug 2424595 - jc fails to build with Python 3.15: AssertionError: 'format': 1760, != 'format': 7250,
Summary: jc fails to build with Python 3.15: AssertionError: 'format': 1760, != 'forma...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: jc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Artur Frenszek-Iwicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2025-12-23 13:54 UTC by Karolina Surma
Modified: 2026-01-02 13:23 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description Karolina Surma 2025-12-23 13:54:53 UTC
jc fails to build with Python 3.15.0a3.

FAIL: test_utils_timestamp (tests.test_jc_utils.MyTests.test_utils_timestamp)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/jc-1.25.6-build/jc-1.25.6/tests/test_jc_utils.py", line 98, in test_utils_timestamp
    self.assertEqual(ts_dict, expected_output)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'str[19 chars]0:32:28 PDT', 'format': 1760, 'naive': 1631849548, 'utc': None} != {'str[19 chars]0:32:28 PDT', 'format': 7250, 'naive': 1631849548, 'utc': None}
- {'format': 1760,
?            - ^

+ {'format': 7250,
?             ^^

   'naive': 1631849548,
   'string': '2021-09-16 20:32:28 PDT',
   'utc': None}

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/09935213-jc/

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

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.

Comment 1 Artur Frenszek-Iwicki 2026-01-02 13:23:11 UTC
This seems to boil down to a change in datetime.strptime(), where if you use `%z` in the format string,
Python 3.14 requires offset information to be present and will produce a `ValueError` if it's missing,
whereas Python 3.15-alpha3 treats it as optional and will create a native datetime object, instead.


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