summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strptime.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_strptime.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_strptime.py')
-rw-r--r--Lib/test/test_strptime.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index e5f75b7..e3fcabe 100644
--- a/Lib/test/test_strptime.py
+++ b/Lib/test/test_strptime.py
@@ -70,6 +70,9 @@ class LocaleTime_Tests(unittest.TestCase):
self.assertEqual(self.LT_ins.am_pm[position], strftime_output,
"AM/PM representation in the wrong position within the tuple")
+ @unittest.skipIf(
+ support.is_emscripten, "musl libc issue on Emscripten, bpo-46390"
+ )
def test_timezone(self):
# Make sure timezone is correct
timezone = time.strftime("%Z", self.time_tuple).lower()
@@ -368,6 +371,9 @@ class StrptimeTests(unittest.TestCase):
self.assertEqual("Inconsistent use of : in -01:3030", str(err.exception))
@skip_if_buggy_ucrt_strfptime
+ @unittest.skipIf(
+ support.is_emscripten, "musl libc issue on Emscripten, bpo-46390"
+ )
def test_timezone(self):
# Test timezone directives.
# When gmtime() is used with %Z, entire result of strftime() is empty.