gh-70363: Emscripten cannot fstat renamed spool file (GH-92354)

This commit is contained in:
Christian Heimes 2022-05-06 01:10:37 +02:00 • committed by GitHub
parent 9a0a7b4868
commit 49fda0cc51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1109,6 +1109,9 @@ class TestSpooledTemporaryFile(BaseTestCase):
with self.assertWarns(ResourceWarning):
f.__del__()
@unittest.skipIf(
support.is_emscripten, "Emscripten cannot fstat renamed files."
)
def test_del_rolled_file(self):
# The rolled file should be deleted when the SpooledTemporaryFile
# object is deleted. This should raise a ResourceWarning since the file