summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-01-09 21:47:44 +0100
committerJulian Andres Klode <jak@debian.org>2009-01-09 21:47:44 +0100
commit9358b351e8f1637ff87c9f9195a4b5e546ca2a79 (patch)
tree33b46c806cad33de37aecd7b4750aca5bfa1944d /tests
parent12cf58d12b969010f3d98b2974d72bbb950b775f (diff)
downloadpython-apt-9358b351e8f1637ff87c9f9195a4b5e546ca2a79.tar.gz
Cleanup: Remove whitespace at the end of line in all python codes.
Diffstat (limited to 'tests')
-rw-r--r--tests/cache.py4
-rw-r--r--tests/depcache.py2
-rw-r--r--tests/lock.py6
-rw-r--r--tests/pkgproblemresolver.py4
-rw-r--r--tests/pkgrecords.py2
-rw-r--r--tests/pkgsrcrecords.py2
-rw-r--r--tests/test_aptsources.py4
-rwxr-xr-xtests/test_debextract.py2
8 files changed, 13 insertions, 13 deletions
diff --git a/tests/cache.py b/tests/cache.py
index 47d9a3b4..afcad00d 100644
--- a/tests/cache.py
+++ b/tests/cache.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python2.4
#
# Test for the pkgCache code
-#
+#
import apt_pkg
import sys
@@ -26,7 +26,7 @@ def main():
c = ver.Arch
d = ver.DependsListStr
dl = ver.DependsList
- # get all dependencies (a dict of string->list,
+ # get all dependencies (a dict of string->list,
# e.g. "depends:" -> [ver1,ver2,..]
for dep in dl.keys():
# get the list of each dependency object
diff --git a/tests/depcache.py b/tests/depcache.py
index f4821b4f..5c78c3a1 100644
--- a/tests/depcache.py
+++ b/tests/depcache.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python2.4
#
# Test for the DepCache code
-#
+#
import apt_pkg
import sys
diff --git a/tests/lock.py b/tests/lock.py
index 5d2697f1..86d704ea 100644
--- a/tests/lock.py
+++ b/tests/lock.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python2.4
#
# Test for the pkgCache code
-#
+#
import apt_pkg
import sys, os
@@ -9,7 +9,7 @@ import sys, os
if __name__ == "__main__":
lock = "/tmp/test.lck"
-
+
apt_pkg.init()
# system-lock
@@ -44,4 +44,4 @@ if __name__ == "__main__":
fd = apt_pkg.GetLock(lock,True)
print "Lockfile fd (child): %s" % fd
sys.exit(0)
-
+
diff --git a/tests/pkgproblemresolver.py b/tests/pkgproblemresolver.py
index 27747e43..0ed32ea6 100644
--- a/tests/pkgproblemresolver.py
+++ b/tests/pkgproblemresolver.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python2.4
#
# Test for the DepCache code
-#
+#
import apt_pkg
import sys
@@ -29,7 +29,7 @@ def main():
fixer.Protect(pkg)
# we first try to resolve the problem
# with the package that should be installed
- # protected
+ # protected
try:
fixer.Resolve(True)
except SystemError:
diff --git a/tests/pkgrecords.py b/tests/pkgrecords.py
index d0616d29..43723569 100644
--- a/tests/pkgrecords.py
+++ b/tests/pkgrecords.py
@@ -2,7 +2,7 @@
#
# Test for the PkgSrcRecords code
# it segfaults for python-apt < 0.5.37
-#
+#
import apt_pkg
import sys
diff --git a/tests/pkgsrcrecords.py b/tests/pkgsrcrecords.py
index 28df3f7c..06c4a1ef 100644
--- a/tests/pkgsrcrecords.py
+++ b/tests/pkgsrcrecords.py
@@ -2,7 +2,7 @@
#
# Test for the PkgSrcRecords code
# it segfaults for python-apt < 0.5.37
-#
+#
import apt_pkg
import sys
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index 49fe6afa..c8d84395 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -60,7 +60,7 @@ class TestAptSources(unittest.TestCase):
"multiverse" in entry.comps):
found = True
self.assertTrue(found)
- # test to add something new: multiverse *and*
+ # test to add something new: multiverse *and*
# something that is already there
before = copy.deepcopy(sources)
sources.add("deb","http://de.archive.ubuntu.com/ubuntu/",
@@ -105,7 +105,7 @@ class TestAptSources(unittest.TestCase):
#print dist_templates
for d in ["hardy","hardy-security","hardy-updates","intrepid","hardy-backports"]:
self.assertTrue(d in dist_templates)
- # test enable
+ # test enable
comp = "restricted"
distro.enable_component(comp)
found = {}
diff --git a/tests/test_debextract.py b/tests/test_debextract.py
index 53241e92..c080b26e 100755
--- a/tests/test_debextract.py
+++ b/tests/test_debextract.py
@@ -7,7 +7,7 @@ def Callback(What,Name,Link,Mode,UID,GID,Size,MTime,Major,Minor):
print "%s '%s','%s',%u,%u,%u,%u,%u,%u,%u" % (
What,Name,Link,Mode,UID,GID,Size, MTime, Major, Minor)
-member = "data.tar.lzma"
+member = "data.tar.lzma"
if len(sys.argv) > 2:
member = sys.argv[2]
apt_inst.debExtract(open(sys.argv[1]), Callback, member)