Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pjson tests on newer Python versions #564

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

alchzh
Copy link
Collaborator

@alchzh alchzh commented Jan 7, 2025

One sentence summary of this PR (This should go in the CHANGELOG!)
Fix pjson tests on newer python versions (>3.8)

Link to Related Issue(s)
#543

Please describe the changes in your request.

  • Fix draw strategy for os.stat_result so it returns an actual stat_result instead of a bare tuple. Fixes test failure on Python 3.9+
  • Second minor bug: fix the ambiguous type hint test input to use the correct list-of-tuples serialization for Dict, so that the error is actually from the type hint being ambiguous and not from the improper serialization.

Anyone you think should look at this, specifically?

@alchzh alchzh requested a review from rbs-jacob January 7, 2025 21:14
@rbs-jacob rbs-jacob added this to the 3.3.0 Release milestone Jan 8, 2025
@rbs-jacob rbs-jacob requested review from whyitfor and removed request for rbs-jacob January 8, 2025 21:32
Copy link
Contributor

@whyitfor whyitfor left a comment

Choose a reason for hiding this comment

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

LGTM! Feel free to merge when ready.

@alchzh alchzh merged commit c819f3b into master Jan 9, 2025
4 checks passed
@whyitfor whyitfor deleted the fix/pjson-tests-newer-python branch January 10, 2025 22:52
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.

4 participants