Skip to content

Commit 2d07d47

Browse files
jacobtylerwallsPierre-Sassoulas
authored andcommitted
Add regression test for #6539
1 parent 96c3198 commit 2d07d47

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Release date: TBA
2424

2525
Relates to #6531
2626

27+
* Fix a crash when accessing ``__code__`` and assigning it to a variable.
28+
29+
Closes #6539
30+
2731

2832
What's New in Pylint 2.13.8?
2933
============================

doc/whatsnew/2.13.rst

+4
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,10 @@ Other Changes
635635

636636
Closes #3979
637637

638+
* Fix a crash when accessing ``__code__`` and assigning it to a variable.
639+
640+
Closes #6539
641+
638642
* Fix a crash when linting a file that passes an integer ``mode=`` to
639643
``open``
640644

tests/functional/i/invalid/invalid_name/invalid_name_module_level.py

+3
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ def A(): # [invalid-name]
2121
CONSTD = A()
2222

2323
CONST = "12 34 ".rstrip().split()
24+
25+
26+
assignment_that_crashed_pylint = type(float.__new__.__code__)

0 commit comments

Comments
 (0)