Skip to content

Commit 851cb6f

Browse files
committed
update test warning assertion
1 parent 8535bfc commit 851cb6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/back_compat/test_read.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ def test_read_device_model_str_attribute(self):
175175
with self.get_io(f) as io:
176176
# assert warning is issued to inform user the attribute is being remapped
177177
with self.assertWarnsWith(UserWarning,
178-
'Device.model was detected as a string. ' \
179-
'Remapping "dichroic mirror model" to a DeviceModel'):
178+
'Device.model was detected as a string, ' \
179+
'but NWB 2.9 specifies Device.model as a link to a DeviceModel. '
180+
'Remapping "dichroic mirror model" to a new DeviceModel.'):
180181
read_nwbfile = io.read()
181182

182183
# assert data was remapped correctly

0 commit comments

Comments
 (0)