@@ -237,42 +237,6 @@ def test_writing_to_buffer_broken_with_close(self) -> None:
237237 with pytest .raises (OSError ):
238238 container .close ()
239239
240- @run_in_sandbox
241- def test_writing_to_custom_io_dash (self ) -> None :
242- # Custom I/O that opens file and logs calls
243- wrapped_custom_io = CustomIOLogger ()
244-
245- output_filename = "custom_io_output.mpd"
246-
247- # Write a DASH package using the custom IO. Prefix the name with CUSTOM_IO_PROTOCOL to
248- # avoid temporary file and renaming.
249- with av .open (
250- CUSTOM_IO_PROTOCOL + output_filename , "w" , io_open = wrapped_custom_io
251- ) as container :
252- write_rgb_rotate (container )
253-
254- # Check that at least 3 files were opened using the custom IO:
255- # "output_filename", init-stream0.m4s and chunk-stream-0x.m4s
256- assert len (wrapped_custom_io ._log ) >= 3
257- assert len (wrapped_custom_io ._method_log ) >= 3
258-
259- # Check that all files were written to
260- all_write = all (
261- method_log ._filter ("write" ) for method_log in wrapped_custom_io ._method_log
262- )
263- assert all_write
264-
265- # Check that all files were closed
266- all_closed = all (
267- method_log ._filter ("close" ) for method_log in wrapped_custom_io ._method_log
268- )
269- assert all_closed
270-
271- # Check contents.
272- # Note that the dash demuxer doesn't support custom I/O.
273- with av .open (output_filename , "r" ) as container :
274- assert_rgb_rotate (self , container , is_dash = True )
275-
276240 def test_writing_to_custom_io_image2 (self ) -> None :
277241 if not has_pillow :
278242 pytest .skip ()
0 commit comments