File: Fix-int-dtype-test.patch

package info (click to toggle)
glueviz 1.22.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,948 kB
  • sloc: python: 30,896; makefile: 133; sh: 8
file content (27 lines) | stat: -rw-r--r-- 932 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
23
24
25
26
27
From: Ole Streicher <olebole@debian.org>
Date: Sun, 2 Mar 2025 21:01:40 +0100
Subject: Fix int dtype test

This one failed on 32 bit architectures
---
 glue/core/data_factories/tests/test_data_factories.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/glue/core/data_factories/tests/test_data_factories.py b/glue/core/data_factories/tests/test_data_factories.py
index 9d5ddbd..d26add6 100644
--- a/glue/core/data_factories/tests/test_data_factories.py
+++ b/glue/core/data_factories/tests/test_data_factories.py
@@ -118,11 +118,11 @@ def test_csv_pandas_factory():
     assert isinstance(d.get_component(cat_comp), CategoricalComponent)
 
 
-def test_dtype_int():
+def test_dtype_int64():
     data = b'# a, b\n1, 1 \n2, 2 \n3, 3'
     with make_file(data, '.csv') as fname:
         d = df.load_data(fname)
-    assert d['a'].dtype == int
+    assert d['a'].dtype == np.int64
 
 
 def test_dtype_float():