Skip to content

Commit ae7cee1

Browse files
committed
AssertWarns instead of AssertRaises in test
1 parent c66da63 commit ae7cee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/test/rawiotest/test_openephysrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_raise_error_if_discontinuous_files(self):
2020
# It must raise an error
2121
reader = OpenEphysRawIO(dirname=self.get_local_path(
2222
'openephys/OpenEphys_SampleData_2_(multiple_starts)'))
23-
with self.assertRaises(Exception):
23+
with self.assertWarns(UserWarning):
2424
reader.parse_header()
2525

2626
def test_raise_error_if_strange_timestamps(self):

0 commit comments

Comments
 (0)