From 49fda0cc51c09e26d68431d5f86e11d923cf7b8e Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 6 May 2022 01:10:37 +0200 Subject: gh-70363: Emscripten cannot fstat renamed spool file (GH-92354) --- Lib/test/test_tempfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 07a54028ec..a05f3c84cc 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -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 -- cgit v1.2.1