Skip to content

Commit

Permalink
Add regression test for #6539
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and Pierre-Sassoulas committed May 9, 2022
1 parent c09730b commit b42b1f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -311,6 +311,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
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__)

0 comments on commit b42b1f6

Please sign in to comment.