summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-05-05 23:10:37 (GMT)
committerGitHub <noreply@github.com>2022-05-05 23:10:37 (GMT)
commit49fda0cc51c09e26d68431d5f86e11d923cf7b8e (patch)
tree4231816c5ebb45fc73acd4a9f3f9373e5931f6c6 /Lib/test/test_tempfile.py
parent9a0a7b4868c1e40a1863394bc475132b47d8926f (diff)
downloadcpython-49fda0cc51c09e26d68431d5f86e11d923cf7b8e.zip
cpython-49fda0cc51c09e26d68431d5f86e11d923cf7b8e.tar.gz
cpython-49fda0cc51c09e26d68431d5f86e11d923cf7b8e.tar.bz2
gh-70363: Emscripten cannot fstat renamed spool file (GH-92354)
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r--Lib/test/test_tempfile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 07a5402..a05f3c8 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