Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e7038425
Kaydet (Commit)
e7038425
authored
Agu 18, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Tweaks to cope with strftime returning 0 without error for %Z
üst
f07eaea1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
test_strftime.py
Lib/test/test_strftime.py
+1
-1
test_time.py
Lib/test/test_time.py
+5
-2
No files found.
Lib/test/test_strftime.py
Dosyayı görüntüle @
e7038425
...
...
@@ -69,7 +69,7 @@ def strftest(now):
nonstandard_expectations
=
(
# These are standard but don't have predictable output
(
'
%
c'
,
fixasctime
(
time
.
asctime
(
now
)),
'near-asctime() format'
),
(
'
%
Z'
,
tz
,
'time zone name'
),
(
'
(
%
Z)'
,
'(
%
s)'
%
tz
,
'time zone name'
),
# These are some platform specific extensions
(
'
%
D'
,
'
%02
d/
%02
d/
%02
d'
%
(
now
[
1
],
now
[
2
],
(
now
[
0
]
%
100
)),
'mm/dd/yy'
),
...
...
Lib/test/test_time.py
Dosyayı görüntüle @
e7038425
...
...
@@ -16,8 +16,11 @@ tt = time.gmtime(t)
for
directive
in
(
'a'
,
'A'
,
'b'
,
'B'
,
'c'
,
'd'
,
'H'
,
'I'
,
'j'
,
'm'
,
'M'
,
'p'
,
'S'
,
'U'
,
'w'
,
'W'
,
'x'
,
'X'
,
'y'
,
'Y'
,
'Z'
,
'
%
'
):
format
=
'
%
'
+
directive
time
.
strftime
(
format
,
tt
)
format
=
'
%
'
+
directive
try
:
time
.
strftime
(
format
,
tt
)
except
ValueError
:
print
'conversion specifier:'
,
format
,
' failed.'
time
.
timezone
time
.
tzname
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment