Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/test/test_strftime.py

    r2 r391  
    55import calendar
    66import sys
    7 import os
    87import re
    98from test import test_support
     
    120119                result = time.strftime(e[0], now)
    121120            except ValueError, error:
    122                 print "Standard '%s' format gaver error:" % (e[0], error)
    123                 continue
     121                self.fail("strftime '%s' format gave error: %s" % (e[0], error))
    124122            if re.match(escapestr(e[1], self.ampm), result):
    125123                continue
    126124            if not result or result[0] == '%':
    127                 print "Does not support standard '%s' format (%s)" % \
    128                        (e[0], e[2])
     125                self.fail("strftime does not support standard '%s' format (%s)"
     126                          % (e[0], e[2]))
    129127            else:
    130                 print "Conflict for %s (%s):" % (e[0], e[2])
    131                 print "  Expected %s, but got %s" % (e[1], result)
     128                self.fail("Conflict for %s (%s): expected %s, but got %s"
     129                          % (e[0], e[2], e[1], result))
    132130
    133131    def strftest2(self, now):
Note: See TracChangeset for help on using the changeset viewer.