diff --git a/tests/utils/test_bzr_tags.py b/tests/utils/test_bzr_tags.py index 7bb38f4ab..95017e94f 100644 --- a/tests/utils/test_bzr_tags.py +++ b/tests/utils/test_bzr_tags.py @@ -29,6 +29,7 @@ """ Package to test for proper bzr tags. """ +import os from unittest import TestCase @@ -63,9 +64,10 @@ class TestBzrTags(TestCase): Test for proper bzr tags """ # GIVEN: A bzr branch + path = os.path.dirname(__file__) # WHEN getting the branches tags - bzr = Popen(('bzr', 'tags'), stdout=PIPE) + bzr = Popen(('bzr', 'tags', '--directory=' + path), stdout=PIPE) stdout = bzr.communicate()[0] tags = [line.decode('utf-8').split() for line in stdout.splitlines()]