Skip to content

Commit

Permalink
Add a regression test for issue pylint-dev#4631
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Jun 30, 2021
1 parent f95a232 commit ccd01ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/functional/r/regression/regression_issue_4631.py
@@ -0,0 +1,10 @@
# pylint: disable=missing-function-docstring

"""
Regression tests for StopIteration raised when using limit-inference-results=0
"""


def get_youtube_link(song_name: str, song_artists):
with open("possible errors.txt", "ab") as file:
file.write(f"{', '.join(song_artists)} - {song_name}".encode())
2 changes: 2 additions & 0 deletions tests/functional/r/regression/regression_issue_4631.rc
@@ -0,0 +1,2 @@
[testoptions]
limit-inference-results=0
2 changes: 2 additions & 0 deletions tests/functional/r/regression/regression_issue_4631.txt
@@ -0,0 +1,2 @@
unused-import:9:0::Unused YTMusic imported from ytmusicapi:HIGH
undefined-variable:16:18:get_youtube_link:Undefined variable '__query_ytmusic':HIGH

0 comments on commit ccd01ea

Please sign in to comment.