diff options
| author | Michael Vogt <mvo@debian.org> | 2010-07-09 22:51:51 +0200 |
|---|---|---|
| committer | Michael Vogt <mvo@debian.org> | 2010-07-09 22:51:51 +0200 |
| commit | e965c1321637d50986c243468d8095077f3e80ca (patch) | |
| tree | 3be778baba62a714e8419f3c982344958b0f3236 | |
| parent | dd58eafe47bb69797966f70f1181e4046856cfe4 (diff) | |
| download | python-apt-e965c1321637d50986c243468d8095077f3e80ca.tar.gz | |
tests/test_aptsources.py: fix test by forcing id=Ubuntu
| -rw-r--r-- | tests/test_aptsources.py | 4 |
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() |
