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
392f4139
Kaydet (Commit)
392f4139
authored
Eki 03, 2014
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make test_datetime a better citizen (issue #22540)
üst
72b8a80e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
datetimetester.py
Lib/test/datetimetester.py
+1
-1
test_datetime.py
Lib/test/test_datetime.py
+5
-5
No files found.
Lib/test/datetimetester.py
Dosyayı görüntüle @
392f4139
...
...
@@ -3,6 +3,7 @@
See http://www.zope.org/Members/fdrake/DateTimeWiki/TestCases
"""
import
decimal
import
sys
import
pickle
import
random
...
...
@@ -3808,7 +3809,6 @@ class Oddballs(unittest.TestCase):
x
.
abc
=
1
def
test_check_arg_types
(
self
):
import
decimal
class
Number
:
def
__init__
(
self
,
value
):
self
.
value
=
value
...
...
Lib/test/test_datetime.py
Dosyayı görüntüle @
392f4139
import
unittest
import
sys
from
test.support
import
import_fresh_module
,
run_unittest
TESTS
=
'test.datetimetester'
# XXX: import_fresh_module() is supposed to leave sys.module cache untouched,
# XXX: but it does not, so we have to save and restore it ourselves.
save_sys_modules
=
sys
.
modules
.
copy
()
try
:
pure_tests
=
import_fresh_module
(
TESTS
,
fresh
=
[
'datetime'
,
'_strptime'
],
blocked
=
[
'_datetime'
])
fast_tests
=
import_fresh_module
(
TESTS
,
fresh
=
[
'datetime'
,
'_datetime'
,
'_strptime'
])
finally
:
sys
.
modules
.
clear
()
sys
.
modules
.
update
(
save_sys_modules
)
# XXX: import_fresh_module() is supposed to leave sys.module cache untouched,
# XXX: but it does not, so we have to cleanup ourselves.
for
modname
in
[
'datetime'
,
'_datetime'
,
'_strptime'
]:
sys
.
modules
.
pop
(
modname
,
None
)
test_modules
=
[
pure_tests
,
fast_tests
]
test_suffixes
=
[
"_Pure"
,
"_Fast"
]
# XXX(gb) First run all the _Pure tests, then all the _Fast tests. You might
...
...
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