Add python3 support

This commit is contained in:
Safa Ariman
2019-06-06 01:31:19 +03:00
parent 68344a2d87
commit c90351220c
146 changed files with 806 additions and 1082 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
# Please read the COPYING file.
#
import testcase
from . import testcase
import pisi
class ComponentDBTestCase(testcase.TestCase):
+1 -1
View File
@@ -10,7 +10,7 @@
# Please read the COPYING file.
#
import testcase
from . import testcase
import pisi
class FilesDBTestCase(testcase.TestCase):
+2 -2
View File
@@ -10,7 +10,7 @@
# Please read the COPYING file.
#
import testcase
from . import testcase
import pisi
class InstallDBTestCase(testcase.TestCase):
@@ -69,7 +69,7 @@ class InstallDBTestCase(testcase.TestCase):
pisi.api.install(["ctorrent"])
self.installdb = pisi.db.installdb.InstallDB()
revdeps = self.installdb.get_rev_deps("openssl")
assert set(["ctorrent", "curl"]) == set(map(lambda x:x[0], revdeps))
assert set(["ctorrent", "curl"]) == set([x[0] for x in revdeps])
def testAddRemovePackage(self):
pisi.api.install(["ctorrent"])
+1 -1
View File
@@ -10,7 +10,7 @@
# Please read the COPYING file.
#
import testcase
from . import testcase
import pisi.db.itembyrepo
class TestDB:
+2 -2
View File
@@ -26,12 +26,12 @@ class LazyDBTestCase(unittest.TestCase):
def testDatabaseMethodForcingInit(self):
db = TestDB()
assert db.getTestField()
assert db.__dict__.has_key("testfield")
assert "testfield" in db.__dict__
db._delete()
def testDatabaseWithoutInit(self):
db = TestDB()
assert not db.__dict__.has_key("testfield")
assert "testfield" not in db.__dict__
db._delete()
def testSingletonBehaviour(self):
+1 -1
View File
@@ -10,7 +10,7 @@
# Please read the COPYING file.
#
import testcase
from . import testcase
import pisi
class PackageDBTestCase(testcase.TestCase):
+1 -1
View File
@@ -10,7 +10,7 @@
# Please read the COPYING file.
#
import testcase
from . import testcase
import pisi
class RepoDBTestCase(testcase.TestCase):
+1 -1
View File
@@ -10,7 +10,7 @@
# Please read the COPYING file.
#
import testcase
from . import testcase
import pisi
class SourceDBTestCase(testcase.TestCase):