mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
community/py3-commentjson: fix test
This commit is contained in:
parent
248e774d11
commit
99cf55bd7b
2 changed files with 28 additions and 0 deletions
|
@ -22,6 +22,7 @@ checkdepends="
|
|||
subpackages="$pkgname-pyc"
|
||||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://github.com/vaidik/commentjson/archive/refs/tags/v$pkgver.tar.gz
|
||||
update-test-skips-for-python-3.12.patch
|
||||
"
|
||||
builddir="$srcdir/commentjson-$pkgver"
|
||||
|
||||
|
@ -46,4 +47,5 @@ package() {
|
|||
|
||||
sha512sums="
|
||||
cd3d28adecbc445ed3faed7847c65a23829f408cf8aa3fa85544a0f0cf9fa5544b8aff560725cf51921f249123daf9ce9953069e99ca64a312bb4bff652512fe py3-commentjson-0.9.0.tar.gz
|
||||
04c87f6cb556a0d59da728c9098b4e40a7878628ab85fb159928a4d7951b9eace22da63997825989368fafd7250decfd234b6a2f45496d86db091c5c0963cbdc update-test-skips-for-python-3.12.patch
|
||||
"
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
Source: https://github.com/vaidik/commentjson/pull/54
|
||||
---
|
||||
From 04ad293f800039c0221ff010236e589a4ba7079d Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Sun, 23 Jun 2024 14:54:42 +0200
|
||||
Subject: [PATCH] Update test skips for Python 3.12+
|
||||
|
||||
Python 3.12 moves testing for `Infinity` and other constants
|
||||
into `test_json/test_decode.py::test_parse_constant`.
|
||||
---
|
||||
commentjson/tests/test_json/test_decode.py | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/commentjson/tests/test_json/test_decode.py b/commentjson/tests/test_json/test_decode.py
|
||||
index 6971c44..8f5e904 100644
|
||||
--- a/commentjson/tests/test_json/test_decode.py
|
||||
+++ b/commentjson/tests/test_json/test_decode.py
|
||||
@@ -69,3 +69,8 @@ def test_string_with_utf8_bom(self):
|
||||
'test case is not supported by commentjson.'))
|
||||
def test_negative_index(self):
|
||||
pass
|
||||
+
|
||||
+ @unittest.skipIf(version >= (3, 12),
|
||||
+ 'Infinity as a value is not supported yet')
|
||||
+ def test_parse_constant(self):
|
||||
+ pass
|
Loading…
Reference in a new issue