summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/apt-test.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/apt-test.py b/tests/apt-test.py
index f1bc5593..6205cf60 100644
--- a/tests/apt-test.py
+++ b/tests/apt-test.py
@@ -7,8 +7,7 @@ if __name__ == "__main__":
progress = apt.progress.OpTextProgress()
cache = apt.Cache(progress)
print cache
- for name in cache.keys():
- pkg = cache[name]
+ for pkg in cache:
if pkg.isUpgradable:
pkg.markInstall()
for pkg in cache.getChanges():