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
4a8d8519
Kaydet (Commit)
4a8d8519
authored
Kas 01, 2004
tarafından
Hye-Shik Chang
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1057993: Use sleep() always instead of os.utime() possibly broken
in some platforms.
üst
87d6fc51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
test_traceback.py
Lib/test/test_traceback.py
+5
-9
No files found.
Lib/test/test_traceback.py
Dosyayı görüntüle @
4a8d8519
...
@@ -52,15 +52,6 @@ class TracebackCases(unittest.TestCase):
...
@@ -52,15 +52,6 @@ class TracebackCases(unittest.TestCase):
def test():
def test():
raise ValueError"""
raise ValueError"""
# if this test runs fast, test_bug737473.py will have same mtime
# even if it's rewrited and it'll not reloaded. so adjust mtime
# of original to past.
if
hasattr
(
os
,
'utime'
):
past
=
time
.
time
()
-
3
os
.
utime
(
testfile
,
(
past
,
past
))
else
:
time
.
sleep
(
3
)
if
'test_bug737473'
in
sys
.
modules
:
if
'test_bug737473'
in
sys
.
modules
:
del
sys
.
modules
[
'test_bug737473'
]
del
sys
.
modules
[
'test_bug737473'
]
import
test_bug737473
import
test_bug737473
...
@@ -71,6 +62,11 @@ def test():
...
@@ -71,6 +62,11 @@ def test():
# this loads source code to linecache
# this loads source code to linecache
traceback
.
extract_tb
(
sys
.
exc_traceback
)
traceback
.
extract_tb
(
sys
.
exc_traceback
)
# If this test runs fast, test_bug737473.py will stay in a mtime
# even if it's rewrited and it'll not reloaded in result. So wait
# until new timestamp comes.
time
.
sleep
(
2
)
print
>>
open
(
testfile
,
'w'
),
"""
\
print
>>
open
(
testfile
,
'w'
),
"""
\
def test():
def test():
raise NotImplementedError"""
raise NotImplementedError"""
...
...
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