summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-03-17 11:09:57 (GMT)
committerGitHub <noreply@github.com>2022-03-17 11:09:57 (GMT)
commitef1327e3b622e0cafdf8bfc1f480fed0dd386be6 (patch)
tree30a0e34b5a38b7dd997e5223880618a9b3e5acbd /Lib/test/test_ntpath.py
parentc2e3c06139e9468efb32629d147d99a1672d9e19 (diff)
downloadcpython-ef1327e3b622e0cafdf8bfc1f480fed0dd386be6.zip
cpython-ef1327e3b622e0cafdf8bfc1f480fed0dd386be6.tar.gz
cpython-ef1327e3b622e0cafdf8bfc1f480fed0dd386be6.tar.bz2
bpo-40280: Skip more tests on Emscripten (GH-31947)
- lchmod, lchown are not fully implemented - skip umask tests - cannot fstat unlinked or renamed files yet - ignore musl libc issues that affect Emscripten
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 99a77e3..7211ed8 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -4,7 +4,7 @@ import sys
import unittest
import warnings
from test.support import os_helper
-from test.support import TestFailed
+from test.support import TestFailed, is_emscripten
from test.support.os_helper import FakePath
from test import test_genericpath
from tempfile import TemporaryFile
@@ -747,6 +747,7 @@ class TestNtpath(NtpathTestCase):
self.assertRaises(TypeError, ntpath.commonpath,
['Program Files', b'C:\\Program Files\\Foo'])
+ @unittest.skipIf(is_emscripten, "Emscripten cannot fstat unnamed files.")
def test_sameopenfile(self):
with TemporaryFile() as tf1, TemporaryFile() as tf2:
# Make sure the same file is really the same