summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_time.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_time.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_time.py')
-rw-r--r--Lib/test/test_time.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index faac639..dc0bbb0 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -313,6 +313,9 @@ class TimeTestCase(unittest.TestCase):
def test_asctime_bounding_check(self):
self._bounds_checking(time.asctime)
+ @unittest.skipIf(
+ support.is_emscripten, "musl libc issue on Emscripten, bpo-46390"
+ )
def test_ctime(self):
t = time.mktime((1973, 9, 16, 1, 3, 52, 0, 0, -1))
self.assertEqual(time.ctime(t), 'Sun Sep 16 01:03:52 1973')
@@ -699,6 +702,9 @@ class TestStrftime4dyear(_TestStrftimeYear, _Test4dYear, unittest.TestCase):
class TestPytime(unittest.TestCase):
@skip_if_buggy_ucrt_strfptime
@unittest.skipUnless(time._STRUCT_TM_ITEMS == 11, "needs tm_zone support")
+ @unittest.skipIf(
+ support.is_emscripten, "musl libc issue on Emscripten, bpo-46390"
+ )
def test_localtime_timezone(self):
# Get the localtime and examine it for the offset and zone.