clear argv before running commands in the test suite

Fixes #2123
This commit is contained in:
Johnny Robeson 2016-07-14 03:33:29 -04:00
parent 41fb0d9287
commit 18b57ea022

View file

@ -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: