~ruther/guix-local

ref: 98bb983ca7ea2b393021bfee155a72b1c6183f72 guix-local/gnu/packages/patches/python-cython-fix-tests-32bit.patch -rw-r--r-- 827 bytes
98bb983c — Ben Woodcroft gnu: ruby: Update to 2.4.0. 8 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
This fixes a test failure on 32-bit platforms.

Upstream bug URL: https://github.com/cython/cython/issues/1548

Patch copied from upstream source repository:

https://github.com/cython/cython/commit/d92a718a26c9354fbf35f31a17de5c069865a447

From d92a718a26c9354fbf35f31a17de5c069865a447 Mon Sep 17 00:00:00 2001
From: Robert Bradshaw <robertwb@gmail.com>
Date: Tue, 24 Jan 2017 16:57:00 -0800
Subject: [PATCH] Normalize possible L suffix.

---
 tests/run/cpdef_enums.pyx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/run/cpdef_enums.pyx b/tests/run/cpdef_enums.pyx
index 167c762..c264ec5 100644
--- a/tests/run/cpdef_enums.pyx
+++ b/tests/run/cpdef_enums.pyx
@@ -93,4 +93,4 @@ def verify_resolution_GH1533():
     3
     """
     THREE = 100
-    return PyxEnum.THREE
+    return int(PyxEnum.THREE)