diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2013-12-08 06:20:35 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2013-12-08 06:20:35 (GMT) |
commit | 9fe6d86709b0e769602ff55a6e5a202c440b9d8a (patch) | |
tree | ec3d7b1b0cbbd15658459e397c6905964c192331 /Lib/test/test_strptime.py | |
parent | 774f909489ca1395ba1e3f3a1f3d43495df6cdfe (diff) | |
download | cpython-9fe6d86709b0e769602ff55a6e5a202c440b9d8a.zip cpython-9fe6d86709b0e769602ff55a6e5a202c440b9d8a.tar.gz cpython-9fe6d86709b0e769602ff55a6e5a202c440b9d8a.tar.bz2 |
Issue 19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r-- | Lib/test/test_strptime.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index d5bc39d..13a72d4 100644 --- a/Lib/test/test_strptime.py +++ b/Lib/test/test_strptime.py @@ -323,7 +323,7 @@ class StrptimeTests(unittest.TestCase): # when time.tzname[0] == time.tzname[1] and time.daylight tz_name = time.tzname[0] if tz_name.upper() in ("UTC", "GMT"): - return + self.skipTest('need non-UTC/GMT timezone') try: original_tzname = time.tzname original_daylight = time.daylight @@ -536,7 +536,7 @@ class CacheTests(unittest.TestCase): try: locale.setlocale(locale.LC_TIME, ('en_US', 'UTF8')) except locale.Error: - return + self.skipTest('test needs en_US.UTF8 locale') try: _strptime._strptime_time('10', '%d') # Get id of current cache object. @@ -553,7 +553,7 @@ class CacheTests(unittest.TestCase): # If this is the case just suppress the exception and fall-through # to the resetting to the original locale. except locale.Error: - pass + self.skipTest('test needs de_DE.UTF8 locale') # Make sure we don't trample on the locale setting once we leave the # test. finally: |