mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/py3-incoming: fix tests with python 3.12
This commit is contained in:
parent
1ce3eb7ff7
commit
e1cc680af1
@ -3,7 +3,7 @@
|
||||
pkgname=py3-incoming
|
||||
_pkgname=incoming
|
||||
pkgver=0.3.1
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="A Python JSON validation framework"
|
||||
url="https://github.com/vaidik/incoming"
|
||||
arch="noarch"
|
||||
@ -12,7 +12,9 @@ depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
||||
assertEquals.patch
|
||||
"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
replaces="py-incoming" # Backwards compatibility
|
||||
@ -30,4 +32,7 @@ package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
}
|
||||
|
||||
sha512sums="5018e919485450fd8e361d8d505ead8c5fd0c99e0349feecf372697e866eb53f6dca6186a49244b20b61ddb65f754d58b6c0e11aa0ae95e8c98f35983a691cb8 incoming-0.3.1.tar.gz"
|
||||
sha512sums="
|
||||
5018e919485450fd8e361d8d505ead8c5fd0c99e0349feecf372697e866eb53f6dca6186a49244b20b61ddb65f754d58b6c0e11aa0ae95e8c98f35983a691cb8 incoming-0.3.1.tar.gz
|
||||
7adbe0a1830818ad4bf5d3a424595b8dedeb33be80c40e8e957760fa293054ed6f655780d1cec418d1d393633a088a5fc2afab51e59775e63d0319d2e8106170 assertEquals.patch
|
||||
"
|
||||
|
||||
31
testing/py3-incoming/assertEquals.patch
Normal file
31
testing/py3-incoming/assertEquals.patch
Normal file
@ -0,0 +1,31 @@
|
||||
diff --git a/incoming/tests/test_datatypes.py b/incoming/tests/test_datatypes.py
|
||||
index c1e7586..6d8a6dc 100644
|
||||
--- a/incoming/tests/test_datatypes.py
|
||||
+++ b/incoming/tests/test_datatypes.py
|
||||
@@ -136,3 +136,3 @@ class TestJSON(TestCase):
|
||||
validator = datatypes.JSON(CustomJSONValidator)
|
||||
- self.assertEquals(
|
||||
+ self.assertEqual(
|
||||
validator.cls.inner.cls.__name__,
|
||||
diff --git a/incoming/tests/test_incoming.py b/incoming/tests/test_incoming.py
|
||||
index 7f0321b..1ac82e7 100644
|
||||
--- a/incoming/tests/test_incoming.py
|
||||
+++ b/incoming/tests/test_incoming.py
|
||||
@@ -70,3 +70,3 @@ class TestPayloadValidator(TestCase):
|
||||
self.assertTrue(result[0])
|
||||
- self.assertEquals(result[1], None)
|
||||
+ self.assertEqual(result[1], None)
|
||||
|
||||
@@ -205,5 +205,5 @@ class TestPayloadValidator(TestCase):
|
||||
self.assertItemsEqual(errors.keys(), ['missing1', 'missing2'])
|
||||
- self.assertEquals(errors['missing1'][0],
|
||||
+ self.assertEqual(errors['missing1'][0],
|
||||
AnotherDummyValidator.strict_error)
|
||||
- self.assertEquals(errors['missing2'][0],
|
||||
+ self.assertEqual(errors['missing2'][0],
|
||||
AnotherDummyValidator.strict_error)
|
||||
@@ -222,3 +222,3 @@ class TestPayloadValidator(TestCase):
|
||||
self.assertTrue(result)
|
||||
- self.assertEquals(errors, None)
|
||||
+ self.assertEqual(errors, None)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user