aboutsummaryrefslogtreecommitdiff
path: root/tests/testutils
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-12-26 20:15:17 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-26 20:15:17 +0100
commitbad1f2370ba311bbe5981b204d4fa244b1d9a514 (patch)
tree9cb5d38aad2eb177d04a59e51a6c54aef07f69ab /tests/testutils
parentce644b02862726e0d75a98d60703227de75012a7 (diff)
import-orig: Handle download errors properly
This introduces tests that reach out to the network. These are disabled by default.
Diffstat (limited to 'tests/testutils')
-rw-r--r--tests/testutils/debiangittestrepo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testutils/debiangittestrepo.py b/tests/testutils/debiangittestrepo.py
index 9a9ee07d..c52c5f17 100644
--- a/tests/testutils/debiangittestrepo.py
+++ b/tests/testutils/debiangittestrepo.py
@@ -12,12 +12,14 @@ class DebianGitTestRepo(unittest.TestCase):
"""Scratch repo for a single unit test"""
def setUp(self, repo_cls=None):
+ name = 'test_repo'
self.tmpdir = context.new_tmpdir(__name__)
if repo_cls is None:
repo_cls = gbp.deb.git.DebianGitRepository
- repodir = self.tmpdir.join('test_repo')
+ repodir = self.tmpdir.join(name)
+ self.repodir = os.path.join(str(self.tmpdir), name)
self.repo = repo_cls.create(repodir)
def tearDown(self):