From: Yaroslav Halchenko <debian@onerussian.com>
Subject: picked up from upstream 97ea60309541360cd6a89eb821728a86ca4f6554 commit
    Should be dropped in next upstream version package
Origin: upstream
Applied-Upstream: 97ea60309541360cd6a89eb821728a86ca4f6554
Last-Update: 2023-12-21

diff --git a/tests/unit/test_file.py b/tests/unit/test_file.py
index bb5c9c1e..c9bd98ad 100644
--- a/tests/unit/test_file.py
+++ b/tests/unit/test_file.py
@@ -563,9 +563,8 @@ class TestNoCacheSpec(TestCase):
         with NWBHDF5IO(self.path, 'w') as io:
             io.write(nwbfile, cache_spec=False)

-        with self.assertWarnsWith(UserWarning, "No cached namespaces found in %s" % self.path):
-            with NWBHDF5IO(self.path, 'r', load_namespaces=True) as reader:
-                nwbfile = reader.read()
+        with NWBHDF5IO(self.path, 'r', load_namespaces=True) as reader:
+            nwbfile = reader.read()


 class TestTimestampsRefDefault(TestCase):
