From fe89d597e3f73c82488d17a8be8a8b8c900127ed Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 3 Aug 2005 08:44:54 +0000 Subject: * API BREAK: follow PEP08 now --- tests/apt-test.py | 8 ++++---- tests/depcache.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/apt-test.py b/tests/apt-test.py index 45ecad98..c44d3117 100644 --- a/tests/apt-test.py +++ b/tests/apt-test.py @@ -6,9 +6,9 @@ if __name__ == "__main__": print cache for name in cache.keys(): pkg = cache[name] - if pkg.IsUpgradable(): - pkg.MarkInstall() - for pkg in cache.GetChanges(): + if pkg.isUpgradable(): + pkg.markInstall() + for pkg in cache.getChanges(): #print pkg.Name() pass print "Broken: %s " % cache._depcache.BrokenCount @@ -19,6 +19,6 @@ if __name__ == "__main__": for name in cache.keys(): import random if random.randint(0,1) == 1: - cache[name].MarkDelete() + cache[name].markDelete() print "Broken: %s " % cache._depcache.BrokenCount print "DelCount: %s " % cache._depcache.DelCount diff --git a/tests/depcache.py b/tests/depcache.py index f5deed33..f4821b4f 100644 --- a/tests/depcache.py +++ b/tests/depcache.py @@ -30,7 +30,7 @@ def main(): if depcache.MarkedInstall(p): depcache.MarkKeep(p) if depcache.InstCount != 0: - print "Error undoing the selection for %s" % x + print "Error undoing the selection for %s (InstCount: %s)" % (x,depcache.InstCount) print "\r%i/%i=%.3f%% " % (i,all,(float(i)/float(all)*100)), print -- cgit v1.2.3