From 954a6d1927d13f09af8748503aaef392fee563fc Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 6 May 2022 00:43:14 +0200 Subject: [PATCH] gh-70363: Emscripten cannot fstat renamed spool file --- 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 07a54028ec69790..a05f3c84ccfc934 100644 --- a/Lib/test/test_tempfile.py +++ b/Lib/test/test_tempfile.py @@ -1109,6 +1109,9 @@ def test_del_unrolled_file(self): 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