File: 0002-use-sorted-set-for-32-bit-systems.patch

package info (click to toggle)
python-eth-utils 5.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,192 kB
  • sloc: python: 5,984; makefile: 238
file content (22 lines) | stat: -rwxr-xr-x 948 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Use sorted set for 32 bit systems
 32 bit systems represent sets differently than 64 bit systems. Since Python
 sets aren't ordered, one test was failing on 32 bit systems and passing on 64
 bit systems.
 
 TODO: remove this patch in the next upstream release.
Author: Manuel Guerra <ar.manuelguerra@gmail.com>
Forwarded: https://github.com/ethereum/eth-utils/pull/313
Last-Update: 2025-08-27

--- python-eth-utils-5.3.0.orig/tests/core/abi-utils/test_abi_utils.py
+++ python-eth-utils-5.3.0/tests/core/abi-utils/test_abi_utils.py
@@ -1506,8 +1506,7 @@ def test_get_aligned_abi_inputs(
                 "b": [[(14, 15), (16, 17)], [(18, 19)]],
             },
             TypeError,
-            'Expected non-string sequence for "tuple[]" component type: got '
-            "{(9, 10), (5, 6), (7, 8)}",
+            'Expected non-string sequence for "tuple[]" component type: got ',
         ),
         (
             ABI_FALLBACK,