]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-70363: Emscripten cannot fstat renamed spool file (GH-92354)
authorChristian Heimes <christian@python.org>
Thu, 5 May 2022 23:10:37 +0000 (01:10 +0200)
committerGitHub <noreply@github.com>
Thu, 5 May 2022 23:10:37 +0000 (01:10 +0200)
Lib/test/test_tempfile.py

index 07a54028ec69790e15bd1e573c2f135c81b3598a..a05f3c84ccfc934e628c9901fa5bcd555cd39e82 100644 (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