]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fixed doctests
authorbenselme <benselme@gmail.com>
Sun, 11 Jan 2015 20:58:53 +0000 (15:58 -0500)
committerbenselme <benselme@gmail.com>
Sun, 11 Jan 2015 20:58:53 +0000 (15:58 -0500)
babel/core.py
babel/dates.py

index df385729564fd819e4a4d3162efecb9b18366b7d..712585856028bd22fd752a0fb3edda8672748b50 100644 (file)
@@ -722,7 +722,7 @@ class Locale(object):
         >>> Locale('en').datetime_formats['full']
         u"{1} 'at' {0}"
         >>> Locale('th').datetime_formats['medium']
-        u'{1}, {0}'
+        u'{1} {0}'
         """
         return self._data['datetime_formats']
 
index bb215d1e89ee55f7d0db04b17a61b876759b5880..4d326d20e9d9c0c6f284850546e6f827341e00c4 100644 (file)
@@ -167,7 +167,7 @@ def get_day_names(width='wide', context='format', locale=LC_TIME):
     >>> get_day_names('wide', locale='en_US')[1]
     u'Tuesday'
     >>> get_day_names('abbreviated', locale='es')[1]
-    u'mar'
+    u'mar.'
     >>> get_day_names('narrow', context='stand-alone', locale='de_DE')[1]
     u'D'
 
@@ -184,7 +184,7 @@ def get_month_names(width='wide', context='format', locale=LC_TIME):
     >>> get_month_names('wide', locale='en_US')[1]
     u'January'
     >>> get_month_names('abbreviated', locale='es')[1]
-    u'ene'
+    u'ene.'
     >>> get_month_names('narrow', context='stand-alone', locale='de_DE')[1]
     u'J'
 
@@ -661,7 +661,7 @@ def format_time(time=None, format='medium', tzinfo=None, locale=LC_TIME):
     >>> t = time(15, 30)
     >>> format_time(t, format='full', tzinfo=get_timezone('Europe/Paris'),
     ...             locale='fr_FR')
-    u'15:30:00 heure normale de l\u2019Europe centrale'
+    u'15:30:00 heure normale d\u2019Europe centrale'
     >>> format_time(t, format='full', tzinfo=get_timezone('US/Eastern'),
     ...             locale='en_US')
     u'3:30:00 PM Eastern Standard Time'
@@ -735,7 +735,7 @@ def format_timedelta(delta, granularity='second', threshold=.85,
     the user if the date is in the past or in the future:
 
     >>> format_timedelta(timedelta(hours=1), add_direction=True, locale='en')
-    u'In 1 hour'
+    u'in 1 hour'
     >>> format_timedelta(timedelta(hours=-1), add_direction=True, locale='en')
     u'1 hour ago'