diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-30 08:26:01 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-30 12:57:57 +0200 |
commit | 5fcc6f57a78b49c0be13bb85a296a9f3878120fe (patch) | |
tree | a19f778c25a871b3b3ae61ac3e415ec11c4cefbd /tests/functional/r | |
parent | f95a2322a4035cc084670667160d967f8b05731a (diff) | |
download | pylint-git-5fcc6f57a78b49c0be13bb85a296a9f3878120fe.tar.gz |
Add a regression test for issue #4631
Diffstat (limited to 'tests/functional/r')
-rw-r--r-- | tests/functional/r/regression/regression_issue_4631.py | 10 | ||||
-rw-r--r-- | tests/functional/r/regression/regression_issue_4631.rc | 2 | ||||
-rw-r--r-- | tests/functional/r/regression/regression_issue_4631.txt | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/r/regression/regression_issue_4631.py b/tests/functional/r/regression/regression_issue_4631.py new file mode 100644 index 000000000..195c38611 --- /dev/null +++ b/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()) diff --git a/tests/functional/r/regression/regression_issue_4631.rc b/tests/functional/r/regression/regression_issue_4631.rc new file mode 100644 index 000000000..44c9b77ee --- /dev/null +++ b/tests/functional/r/regression/regression_issue_4631.rc @@ -0,0 +1,2 @@ +[testoptions] +limit-inference-results=0 diff --git a/tests/functional/r/regression/regression_issue_4631.txt b/tests/functional/r/regression/regression_issue_4631.txt new file mode 100644 index 000000000..e7960fc3b --- /dev/null +++ b/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 |