Skip to content

Commit 5fcc6f5

Browse files
Add a regression test for issue #4631
1 parent f95a232 commit 5fcc6f5

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# pylint: disable=missing-function-docstring
2+
3+
"""
4+
Regression tests for StopIteration raised when using limit-inference-results=0
5+
"""
6+
7+
8+
def get_youtube_link(song_name: str, song_artists):
9+
with open("possible errors.txt", "ab") as file:
10+
file.write(f"{', '.join(song_artists)} - {song_name}".encode())
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[testoptions]
2+
limit-inference-results=0
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
unused-import:9:0::Unused YTMusic imported from ytmusicapi:HIGH
2+
undefined-variable:16:18:get_youtube_link:Undefined variable '__query_ytmusic':HIGH

0 commit comments

Comments
 (0)