Skip to content

Fixes for Python 3.12 datetime behaviour#24

Open
nathanjrobertson wants to merge 1 commit into
renalreg:masterfrom
nathanjrobertson:py312_test_fixes
Open

Fixes for Python 3.12 datetime behaviour#24
nathanjrobertson wants to merge 1 commit into
renalreg:masterfrom
nathanjrobertson:py312_test_fixes

Conversation

@nathanjrobertson

@nathanjrobertson nathanjrobertson commented Mar 25, 2026

Copy link
Copy Markdown

This PR includes fixes for the two pytest failures when running against Python 3.12, due to a change in Python 3.12 regarding how datetime.replace() behaves with subclasses.

I've tested the pytest tests with Python 3.10, 3.11, 3.12, 3.13 and 3.14 (being all of the currently supported versions). All tests now pass on all of those versions.

@nathanjrobertson

Copy link
Copy Markdown
Author

@GRysev-UKKA Would you be able to take a look at this PR? Without it PyXB-X doesn't pass tests on Python 3.12.

@GlebRysev-UKKA GlebRysev-UKKA left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally on 3.8 and 3.12, all works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants