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

Add regression test for #6539 #6554

Merged
merged 2 commits into from May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -321,6 +321,10 @@ Release date: TBA

Relates to #6531

* Fix a crash when accessing ``__code__`` and assigning it to a variable.

Closes #6539


What's New in Pylint 2.13.8?
============================
Expand Down
4 changes: 4 additions & 0 deletions doc/whatsnew/2.13.rst
Expand Up @@ -635,6 +635,10 @@ Other Changes

Closes #3979

* Fix a crash when accessing ``__code__`` and assigning it to a variable.

Closes #6539

* Fix a crash when linting a file that passes an integer ``mode=`` to
``open``

Expand Down
2 changes: 1 addition & 1 deletion requirements_test_min.txt
@@ -1,6 +1,6 @@
-e .[testutils,spelling]
# astroid dependency is also defined in setup.cfg
astroid==2.11.4 # Pinned to a specific version for tests
astroid==2.11.5 # Pinned to a specific version for tests
typing-extensions~=4.2
pytest~=7.1
pytest-benchmark~=3.4
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -47,7 +47,7 @@ install_requires =
# Also upgrade requirements_test_min.txt if you are bumping astroid.
# Pinned to dev of next minor update to allow editable installs,
# see https://github.com/PyCQA/astroid/issues/1341
astroid>=2.11.4,<=2.12.0-dev0
astroid>=2.11.5,<=2.12.0-dev0
isort>=4.2.5,<6
mccabe>=0.6,<0.8
tomli>=1.1.0;python_version<"3.11"
Expand Down
Expand Up @@ -21,3 +21,6 @@ def A(): # [invalid-name]
CONSTD = A()

CONST = "12 34 ".rstrip().split()


assignment_that_crashed_pylint = type(float.__new__.__code__)