]> granicus.if.org Git - python/commitdiff
Closes #24244: Removes invalid test from test_time
authorSteve Dower <steve.dower@microsoft.com>
Wed, 24 Jun 2015 03:48:32 +0000 (20:48 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Wed, 24 Jun 2015 03:48:32 +0000 (20:48 -0700)
Lib/test/test_time.py

index 0891834c154e29d0894124472d69daf8b12f7e91..6334e022e007c90d22689cee49672db34273c6a2 100644 (file)
@@ -114,13 +114,6 @@ class TimeTestCase(unittest.TestCase):
             except ValueError:
                 self.fail('conversion specifier: %r failed.' % format)
 
-        # Issue #10762: Guard against invalid/non-supported format string
-        # so that Python don't crash (Windows crashes when the format string
-        # input to [w]strftime is not kosher.
-        if sys.platform.startswith('win'):
-            with self.assertRaises(ValueError):
-                time.strftime('%f')
-
     def _bounds_checking(self, func):
         # Make sure that strftime() checks the bounds of the various parts
         # of the time tuple (0 is valid for *all* values).