summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strptime.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-04-04 08:35:15 (GMT)
committerGitHub <noreply@github.com>2017-04-04 08:35:15 (GMT)
commit5de85a17029356084b96db63e04d9eb150efd9c0 (patch)
treec281163219b3a185279a7b95ff7c15e40b21a231 /Lib/test/test_strptime.py
parent02e12138000da834f23719521a011fa93763384d (diff)
downloadcpython-5de85a17029356084b96db63e04d9eb150efd9c0.zip
cpython-5de85a17029356084b96db63e04d9eb150efd9c0.tar.gz
cpython-5de85a17029356084b96db63e04d9eb150efd9c0.tar.bz2
bpo-29972: Skip tests known to fail on AIX (#979)
* bpo-29972: Fix test_eintr on AIX On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects 200 ms or longer. * bpo-29972: Skip some inet_pton() tests on AIX Skip some inet_pton() tests of test_socket on AIX. inet_pton() on AIX is less strict than on Linux and doesn't reject some invalid IP addresses. The unit tests test more the libc than Python itself. * bpo-29972: Skip tests known to fail on AIX * test_locale.test_strcoll_with_diacritic() * test_locale.test_strxfrm_with_diacritic() * test_strptime.test_week_of_year_and_day_of_week_calculation() * test_tools.test_POT_Creation_Date()
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r--Lib/test/test_strptime.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index 2cf0926..9343180 100644
--- a/Lib/test/test_strptime.py
+++ b/Lib/test/test_strptime.py
@@ -5,6 +5,7 @@ import time
import locale
import re
import os
+import sys
from test import support
from datetime import date as datetime_date
@@ -482,6 +483,8 @@ class CalculationTests(unittest.TestCase):
_ymd_excluded = ()
_formats_excluded = ()
+ @unittest.skipIf(sys.platform.startswith('aix'),
+ 'bpo-29972: broken test on AIX')
def test_week_of_year_and_day_of_week_calculation(self):
# Should be able to infer date if given year, week of year (%U or %W)
# and day of the week