From 18b57ea02260039e76493b2baa4b1a3cefb17f15 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Thu, 14 Jul 2016 03:33:29 -0400 Subject: [PATCH] clear argv before running commands in the test suite Fixes #2123 --- test/helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/helper.py b/test/helper.py index ae6dc4fbd..93813004b 100644 --- a/test/helper.py +++ b/test/helper.py @@ -422,6 +422,7 @@ class TestHelper(object): # Running beets commands def run_command(self, *args): + sys.argv = ['beet'] # avoid leakage from test suite args if hasattr(self, 'lib'): lib = self.lib else: