From: Christian Heimes Date: Thu, 5 May 2022 23:10:37 +0000 (+0200) Subject: gh-70363: Emscripten cannot fstat renamed spool file (GH-92354) X-Git-Tag: v3.11.0b1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49fda0cc51c09e26d68431d5f86e11d923cf7b8e;p=thirdparty%2FPython%2Fcpython.git gh-70363: Emscripten cannot fstat renamed spool file (GH-92354) --- diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py index 07a54028ec69..a05f3c84ccfc 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