Re: [PATCH v2] iotest: Unbreak 302 with python 3.13

2025-03-04 Thread Eric Blake
On Mon, Mar 03, 2025 at 04:41:56PM +0800, Stefan Hajnoczi wrote: > On Fri, Feb 28, 2025 at 09:57:08PM +0200, Nir Soffer wrote: > > This test depends on TarFile.addfile() to add tar member header without > > writing the member data, which we write ourself using qemu-nbd. Python > > 3.13 changed the

Re: [PATCH v2] iotest: Unbreak 302 with python 3.13

2025-03-03 Thread Stefan Hajnoczi
On Fri, Feb 28, 2025 at 09:57:08PM +0200, Nir Soffer wrote: > This test depends on TarFile.addfile() to add tar member header without > writing the member data, which we write ourself using qemu-nbd. Python > 3.13 changed the function in a backward incompatible way[1] to require a > file object for

Re: [PATCH v2] iotest: Unbreak 302 with python 3.13

2025-02-28 Thread Eric Blake
On Fri, Feb 28, 2025 at 09:57:08PM +0200, Nir Soffer wrote: > This test depends on TarFile.addfile() to add tar member header without > writing the member data, which we write ourself using qemu-nbd. Python > 3.13 changed the function in a backward incompatible way[1] to require a > file object for

[PATCH v2] iotest: Unbreak 302 with python 3.13

2025-02-28 Thread Nir Soffer
This test depends on TarFile.addfile() to add tar member header without writing the member data, which we write ourself using qemu-nbd. Python 3.13 changed the function in a backward incompatible way[1] to require a file object for tarinfo with non-zero size, breaking the test: -[{"name": "vm