summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2010-07-09 22:51:51 +0200
committerMichael Vogt <mvo@debian.org>2010-07-09 22:51:51 +0200
commite965c1321637d50986c243468d8095077f3e80ca (patch)
tree3be778baba62a714e8419f3c982344958b0f3236
parentdd58eafe47bb69797966f70f1181e4046856cfe4 (diff)
downloadpython-apt-e965c1321637d50986c243468d8095077f3e80ca.tar.gz
tests/test_aptsources.py: fix test by forcing id=Ubuntu
-rw-r--r--tests/test_aptsources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index 767f5244..3ef20f64 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -98,7 +98,7 @@ class TestAptSources(unittest.TestCase):
apt_pkg.config.set("Dir::Etc::sourcelist", "data/aptsources/"
"sources.list.testDistribution")
sources = aptsources.sourceslist.SourcesList(True, self.templates)
- distro = aptsources.distro.get_distro()
+ distro = aptsources.distro.get_distro(id="Ubuntu")
distro.get_sources(sources)
# test if all suits of the current distro were detected correctly
dist_templates = set()
@@ -111,7 +111,7 @@ class TestAptSources(unittest.TestCase):
apt_pkg.config.set("Dir::Etc::sourcelist", "data/aptsources/"
"sources.list.testDistribution")
sources = aptsources.sourceslist.SourcesList(True, self.templates)
- distro = aptsources.distro.get_distro()
+ distro = aptsources.distro.get_distro(id="Ubuntu")
distro.get_sources(sources)
# test if all suits of the current distro were detected correctly
dist_templates = set()