python (3.12.0)
Αe d Z ddlZddlZddlZddlmZ ddlZddlZd Zd Z G d dej Z G d d ej Ze
d
k( r ej yy)z
Unittest for time.strftime
N)supportc 2 | d dk( r| d d dz | dd z } | S )N 0 )ss F/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_strftime.py
fixasctimer s, ts{
bqECK!AB%H c t j | }|j t j | | }|j dd }|j dd }|j dd }|S )z
Escape text to deal with possible locale values that have regex
syntax while allowing regex syntax used for comparison.
z\%%z\::z\??)reescapereplace)textampmnew_texts r escapestrr sf
yyH $6Hs+Hs+Hs+HOr
c * e Zd Zd Zd Zd Zd Zd Zy)StrftimeTestc
& t j | | _ t j | }|d dk rd| _ nd| _ t j t j
|d ddddddddf | _ |d rt j d | _ nt j d | _ |d dkD r|d dz
| _
|| _ y |d dkD r|d | _
|| _ y d| _
|| _ y # t $ r
d| _ Y Xw xY w) N z(AM|am)z(PM|pm)r r )timegmtimegmt localtimer mktimejan1tznametzAttributeErrorclock12now)selfr* s r _update_variableszStrftimeTest._update_variables"