Skip to content

Commit fe186e0

Browse files
committed
Mark tz-dependent doctests +SKIP
Refs #998
1 parent 503ed1a commit fe186e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

babel/dates.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,11 +538,11 @@ def get_timezone_name(
538538
539539
>>> from datetime import time
540540
>>> dt = time(15, 30, tzinfo=get_timezone('America/Los_Angeles'))
541-
>>> get_timezone_name(dt, locale='en_US')
541+
>>> get_timezone_name(dt, locale='en_US') # doctest: +SKIP
542542
u'Pacific Standard Time'
543543
>>> get_timezone_name(dt, locale='en_US', return_zone=True)
544544
'America/Los_Angeles'
545-
>>> get_timezone_name(dt, width='short', locale='en_US')
545+
>>> get_timezone_name(dt, width='short', locale='en_US') # doctest: +SKIP
546546
u'PST'
547547
548548
If this function gets passed only a `tzinfo` object and no concrete
@@ -774,10 +774,10 @@ def format_time(
774774
775775
>>> t = time(15, 30)
776776
>>> format_time(t, format='full', tzinfo=get_timezone('Europe/Paris'),
777-
... locale='fr_FR')
777+
... locale='fr_FR') # doctest: +SKIP
778778
u'15:30:00 heure normale d\u2019Europe centrale'
779779
>>> format_time(t, format='full', tzinfo=get_timezone('US/Eastern'),
780-
... locale='en_US')
780+
... locale='en_US') # doctest: +SKIP
781781
u'3:30:00\u202fPM Eastern Standard Time'
782782
783783
:param time: the ``time`` or ``datetime`` object; if `None`, the current

0 commit comments

Comments
 (0)