From: Michael R. Crusoe <crusoe@debian.org>
Subject: Fix for Pytest 8
--- hickle.orig/hickle/tests/test_hickle.py
+++ hickle/hickle/tests/test_hickle.py
@@ -16,6 +16,7 @@
 import re
 from pprint import pprint
 import pickle
+import warnings
 
 
 # Package imports
@@ -793,9 +794,9 @@
 
     # Check that having backslashes in dict keys will serialize the dict
     dct2 = {'a\\b': [1, '2'], 1.4: 3}
-    with pytest.warns(None) as not_expected:
+    with warnings.catch_warnings():
+        warnings.simplefilter("error")
         dump(dct2, test_file_name,**compression_kwargs)
-    assert not not_expected
 
 
 # %% MAIN SCRIPT
