From 484d81ef2ea8f60e6d58fccbfe2172a30ddc441d Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Thu, 6 Jul 2017 19:05:05 +0530 Subject: [PATCH] Fix failing of consecutive tests --- test/test_username.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_username.py b/test/test_username.py index 537a596..8025cfc 100644 --- a/test/test_username.py +++ b/test/test_username.py @@ -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']