Skip to content

Commit

Permalink
Add regression test for pylint-dev#6372
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Apr 30, 2022
1 parent 1c2bb5b commit 4360b9b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ Release date: TBA

Closes #4683

* Fixed a crash in the ``not-an-iterable`` checker involving multiple starred expressions
inside a call.

Closes #6372

* Fixed failure to enable ``deprecated-module`` after a ``disable=all``
by making ``ImportsChecker`` solely responsible for emitting ``deprecated-module`` instead
of sharing responsibility with ``StdlibChecker``. (This could have led to double messages.)
Expand Down
5 changes: 5 additions & 0 deletions doc/whatsnew/2.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ Other Changes

Closes #6101

* Fixed a crash in the ``not-an-iterable`` checker involving multiple starred expressions
inside a call.

Closes #6372

* Fix a failure to respect inline disables for ``fixme`` occurring on the last line
of a module when pylint is launched with ``--enable=fixme``.

Expand Down
4 changes: 4 additions & 0 deletions tests/functional/i/iterable_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,7 @@ def __getattr__(self, attr):

for elem in HasDynamicGetattr():
pass


# Regression test for https://github.com/PyCQA/pylint/issues/6372
string_twos = "".join(str(*y) for _, *y in [[1, 2], [1, 2]])

0 comments on commit 4360b9b

Please sign in to comment.