ayaports/backports/py3-cbor2/fix-32bit-tests.patch

29 lines
976 B
Diff

Patch-Source: https://github.com/agronholm/cbor2/commit/75279162a019d20db3bff8d64d41c7e97b555b53
From 75279162a019d20db3bff8d64d41c7e97b555b53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= <alex.gronholm@nextday.fi>
Date: Tue, 6 Feb 2024 15:43:23 +0200
Subject: [PATCH] Fixed test_oversized_read failing on 32-bit platforms
Fixes #215.
---
tests/test_decoder.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_decoder.py b/tests/test_decoder.py
index cd0b45a..d11be6e 100644
--- a/tests/test_decoder.py
+++ b/tests/test_decoder.py
@@ -939,11 +939,11 @@ def test_decimal_payload_unpacking(impl, data, expected):
"payload",
[
pytest.param(
- unhexlify("5b7fffffffffffff00"),
+ unhexlify("41"),
id="bytestring",
),
pytest.param(
- unhexlify("7b7fffffffffffff00"),
+ unhexlify("61"),
id="unicode",
),
],