Skip to content

bpo-46483: change PurePath.__class_getitem__ to return GenericAlias #30822

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

Merged
merged 1 commit into from
Jan 23, 2022

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 23, 2022

@@ -2429,13 +2429,19 @@ def test_complex_symlinks_relative(self):
def test_complex_symlinks_relative_dot_dot(self):
self._check_complex_symlinks(os.path.join('dirA', '..'))

def test_class_getitem(self):
Copy link
Member Author

Choose a reason for hiding this comment

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

This test now works for all _BasePathTest subclasses, previously it was only checking PurePath.

@sobolevn
Copy link
Member Author

@kumaraditya303 thanks for the review and for the idea 😉

@isidentical
Copy link
Member

Thanks @sobolevn!

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.

6 participants