File: 0007-numexpr-2.13-compat.patch

package info (click to toggle)
pytables 3.10.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,228 kB
  • sloc: ansic: 82,212; python: 65,296; cpp: 753; sh: 394; makefile: 100
file content (24 lines) | stat: -rw-r--r-- 1,006 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
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 27 Sep 2025 08:33:53 +0000
Subject: numexpr-2.13-compat

Forwarded: https://github.com/PyTables/PyTables/pull/1256
---
 tables/tests/test_queries.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tables/tests/test_queries.py b/tables/tests/test_queries.py
index 7044390..d0ae85e 100644
--- a/tables/tests/test_queries.py
+++ b/tables/tests/test_queries.py
@@ -485,9 +485,7 @@ def create_test_method(type_, op, extracond, func=None):
                     for _ in range(2)
                 ]
             except TypeError as te:
-                if self.condNotBoolean_re.search(str(te)):
-                    raise SilentlySkipTest("The condition is not boolean.")
-                raise
+                raise SilentlySkipTest("The condition is not boolean.")
             except NotImplementedError:
                 raise SilentlySkipTest(
                     "The PyTables type does not support the operation."