Fix failing of consecutive tests

This commit is contained in:
Ritiek Malhotra
2017-07-06 19:05:05 +05:30
committed by GitHub
parent 87217adef1
commit 484d81ef2e

View File

@@ -26,7 +26,7 @@ def test_tracks():
playlist['owner']['id'], playlist['id'], fields='tracks,next')
tracks = result['tracks']
with open('list.txt', 'a') as fout:
with open('list.txt', 'w') as fout:
while True:
for item in tracks['items']:
track = item['track']