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."
