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):
5656 def test_opening_gibberish_file (self ):
5757 """Test that parsing a file without </Configuration> raises ValueError instead of infinite loop."""
5858 # 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 :
6060 # Write simple gibberish content without the required </Configuration> tag
6161 temp_file .write (b"gibberish\n " )
6262 temp_file .flush ()
63-
63+
6464 reader = SpikeGadgetsRawIO (filename = temp_file .name )
6565 with self .assertRaises (ValueError ) as cm :
6666 reader .parse_header ()
67-
67+
6868 self .assertIn ("xml header does not contain '</Configuration>'" , str (cm .exception ))
You can’t perform that action at this time.
0 commit comments