File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ def test_parse_header_missing_channels(self):
56
56
def test_opening_gibberish_file (self ):
57
57
"""Test that parsing a file without </Configuration> raises ValueError instead of infinite loop."""
58
58
# Create a temporary file with gibberish content that doesn't have the required tag
59
- with tempfile .NamedTemporaryFile (mode = 'wb' , suffix = ' .rec' ) as temp_file :
59
+ with tempfile .NamedTemporaryFile (mode = "wb" , suffix = " .rec" ) as temp_file :
60
60
# Write simple gibberish content without the required </Configuration> tag
61
61
temp_file .write (b"gibberish\n " )
62
62
temp_file .flush ()
63
-
63
+
64
64
reader = SpikeGadgetsRawIO (filename = temp_file .name )
65
65
with self .assertRaises (ValueError ) as cm :
66
66
reader .parse_header ()
67
-
67
+
68
68
self .assertIn ("xml header does not contain '</Configuration>'" , str (cm .exception ))
You can’t perform that action at this time.
0 commit comments