diff --git a/tests/unit/test_file.py b/tests/unit/test_file.py index de1d06178..15ac4b0a4 100644 --- a/tests/unit/test_file.py +++ b/tests/unit/test_file.py @@ -563,9 +563,8 @@ def test_simple(self): 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') as reader: - nwbfile = reader.read() + with NWBHDF5IO(self.path, 'r') as reader: + nwbfile = reader.read() class TestTimestampsRefDefault(TestCase):