summaryrefslogtreecommitdiff
path: root/tests/pkgsrcrecords.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-17 19:40:47 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-17 19:40:47 +0200
commitcbd822c9dfe8cf18d828bd558290f15775b4d837 (patch)
treeb9ee1d702dd85a5dc2cbd9303e7f31ca6b8ffa52 /tests/pkgsrcrecords.py
parent9bd7c1dcf9942d6ce294aa5ac58d90d6c1aa9f51 (diff)
downloadpython-apt-cbd822c9dfe8cf18d828bd558290f15775b4d837.tar.gz
tests: First work on the new testsuite.
The module tests.test_all will run all available tests. Each test placed herein must be using unittest and provide at least 1 test case. It must be prefixed with test_.
Diffstat (limited to 'tests/pkgsrcrecords.py')
-rw-r--r--tests/pkgsrcrecords.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/pkgsrcrecords.py b/tests/pkgsrcrecords.py
deleted file mode 100644
index 2ea9dd3a..00000000
--- a/tests/pkgsrcrecords.py
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env python2.4
-#
-# Test for the PkgSrcRecords code
-# it segfaults for python-apt < 0.5.37
-#
-
-import apt_pkg
-import sys
-
-
-def main():
- apt_pkg.init()
- cache = apt_pkg.Cache()
- i=0
- print "Running PkgSrcRecords test on all packages:"
- for x in cache.Packages:
- i += 1
- src = apt_pkg.SourceRecords()
- if src.Lookup(x.Name):
- #print src.Package
- pass
- print "\r%i/%i=%.3f%% " % (
- i, cache.PackageCount,
- (float(i) / float(cache.PackageCount) * 100)),
-
-
-if __name__ == "__main__":
- main()
- sys.exit(0)