Skip to content

Commit

Permalink
gh-70363: Emscripten cannot fstat renamed spool file (GH-92354)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored May 5, 2022
1 parent 9a0a7b4 commit 49fda0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/test_tempfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49fda0c

Please sign in to comment.