In Python 3.2 assertItemsEqual is replaced by assertCountEqual
This commit is contained in:
parent
93a95a3c83
commit
86f5b0ad27
@ -58,7 +58,7 @@ def test_read_packages(self):
|
|||||||
|
|
||||||
packages = Package.objects.all()
|
packages = Package.objects.all()
|
||||||
import_packages = ["{}-{}-{}".format(pkg.pkgname, pkg.pkgver, pkg.pkgrel) for pkg in packages]
|
import_packages = ["{}-{}-{}".format(pkg.pkgname, pkg.pkgver, pkg.pkgrel) for pkg in packages]
|
||||||
self.assertItemsEqual(files, import_packages)
|
self.assertCountEqual(files, import_packages)
|
||||||
|
|
||||||
def test_flagoutofdate(self):
|
def test_flagoutofdate(self):
|
||||||
pkg = self.create_pkg()
|
pkg = self.create_pkg()
|
||||||
|
Loading…
Reference in New Issue
Block a user