summaryrefslogtreecommitdiff
path: root/tests/test_aptsources.py
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-31 23:18:43 +0100
committerMichael Vogt <mvo@debian.org>2014-01-05 20:04:26 +0100
commite3c26754af1891d2c50993730467fc9335ec5f09 (patch)
treea4caaa2974ef7108807a790885c7b560f900a783 /tests/test_aptsources.py
parenteac4d047d8774def55b03cb82d505d237d93ea55 (diff)
downloadpython-apt-e3c26754af1891d2c50993730467fc9335ec5f09.tar.gz
make pyflakes clean
Diffstat (limited to 'tests/test_aptsources.py')
-rw-r--r--tests/test_aptsources.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index 5a174f3b..0b74cb79 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -140,7 +140,6 @@ class TestAptSources(unittest.TestCase):
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()
for s in sources:
if not s.template:
self.fail("source entry '%s' has no matcher" % s)
@@ -178,7 +177,6 @@ class TestAptSources(unittest.TestCase):
assert sources.list[9].line.strip() == str(sources.list[9])
def test_enable_component(self):
- from subprocess import Popen, PIPE
target = "./data/aptsources/sources.list.enable_comps"
line = "deb http://archive.ubuntu.com/ubuntu lucid main\n"
with open(target, "w") as target_file: