1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Edward Betts <edward@4angle.com>
Date: Sun, 8 Feb 2026 10:21:43 +0000
Subject: Fix Python 3.14 test failures
---
tests/test_exceptions.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py
index d8e41e2..6819628 100644
--- a/tests/test_exceptions.py
+++ b/tests/test_exceptions.py
@@ -44,7 +44,7 @@ class TestExceptionSerialization(unittest.TestCase):
__test_serialize_one_exc_cls, __obj
)
__test_name = "test_serialize_{}".format(__obj.__name__)
- locals()[__test_name] = __test_method
+ locals()[__test_name] = staticmethod(__test_method)
# We want to confirm what the stringification and representation of
# `UsbReadFailedError` look like since it's a non-trivial subclass of
|