aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/04_test_submodules.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/04_test_submodules.py')
-rw-r--r--tests/04_test_submodules.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/04_test_submodules.py b/tests/04_test_submodules.py
index 52e15ddb..5e097694 100644
--- a/tests/04_test_submodules.py
+++ b/tests/04_test_submodules.py
@@ -46,6 +46,7 @@ def setup():
REPODIR = TMPDIR.join('test_repo')
REPO = DebianGitRepository.create(REPODIR)
+ os.environ['GIT_ALLOW_PROTOCOL'] = 'file'
for name in SUBMODULE_NAMES:
SUBMODULES.append(Submodule(name, str(TMPDIR)))
@@ -54,7 +55,9 @@ def setup():
def teardown():
"""Test module teardown"""
+
context.teardown()
+ del os.environ['GIT_ALLOW_PROTOCOL']
def test_empty_has_submodules():