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 tests on Python 3.13 #291

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Fix tests on Python 3.13 #291

merged 1 commit into from
Oct 18, 2023

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Oct 18, 2023

This is a followup for d95cc22

@hroncok
Copy link
Contributor Author

hroncok commented Oct 18, 2023

Alternatively, this can be split into a skipped test. Let me know if you prefer that.

@JelleZijlstra
Copy link
Member

Thanks! Can you make it so that on 3.13 it asserts we get a TypeError?

@hroncok
Copy link
Contributor Author

hroncok commented Oct 18, 2023

The if-ed block seems to be already tested in test_typeddict_special_keyword_names so I am not sure what was the purpose 😕

@hroncok
Copy link
Contributor Author

hroncok commented Oct 18, 2023

The test_keywords_syntax_raises_on_3_13 test already asserts that type error.

@JelleZijlstra
Copy link
Member

You're right. Let's just remove this block of tests, it duplicates test_basics_keywords_syntax exactly.

This is a followup for d95cc22

The removed block raises TypeError on Python 3.13+.

The TypeError is already asserted in test_keywords_syntax_raises_on_3_13.

For older Pythons, the DeprecationWarning and __name__ + __annotations__ value
are already asserted in test_typeddict_special_keyword_names.
@hroncok
Copy link
Contributor Author

hroncok commented Oct 18, 2023

Done. Explained the reasons for removal in the commit message.

@JelleZijlstra JelleZijlstra merged commit 04f9895 into python:main Oct 18, 2023
@hroncok hroncok deleted the py3.13 branch October 18, 2023 18:26
@hroncok
Copy link
Contributor Author

hroncok commented Oct 18, 2023

Thanks for the quick feedback loop :)

@hugovk hugovk mentioned this pull request Oct 19, 2023
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.

None yet

2 participants