Skip to content

Add regression test for #5832 #7105

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 4 commits into from
Jul 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/whatsnew/2/2.15/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ False positives fixed

Closes #4951

* Prevent false positives when accessing ``PurePath.parents`` by index (not slice) on Python 3.10+.

Closes #5832


False negatives fixed
=====================

Expand Down
6 changes: 5 additions & 1 deletion tests/functional/n/no/no_member.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=missing-docstring, unused-argument, wrong-import-position, invalid-name

from pathlib import Path

# Regression test for https://github.com/PyCQA/pylint/issues/400
class TestListener:
Expand Down Expand Up @@ -42,3 +42,7 @@ class Derived(Base):


print(Derived.label)


# Regression test for https://github.com/PyCQA/pylint/issues/5832
starter_path = Path(__file__).parents[3].resolve()