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
c0a2f2b0
Kaydet (Commit)
c0a2f2b0
authored
Mar 29, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22390: test.regrtest now emits a warning if temporary files or
directories are left after running a test.
üst
53ea1620
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
regrtest.py
Lib/test/regrtest.py
+12
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/regrtest.py
Dosyayı görüntüle @
c0a2f2b0
...
...
@@ -773,7 +773,7 @@ class saved_test_environment:
resources
=
(
'sys.argv'
,
'cwd'
,
'sys.stdin'
,
'sys.stdout'
,
'sys.stderr'
,
'os.environ'
,
'sys.path'
,
'asyncore.socket_map'
,
'
test_support.TESTFN
'
,
'
files
'
,
)
def
get_sys_argv
(
self
):
...
...
@@ -840,6 +840,17 @@ class saved_test_environment:
elif
os
.
path
.
isdir
(
test_support
.
TESTFN
):
shutil
.
rmtree
(
test_support
.
TESTFN
)
def
get_files
(
self
):
return
sorted
(
fn
+
(
'/'
if
os
.
path
.
isdir
(
fn
)
else
''
)
for
fn
in
os
.
listdir
(
os
.
curdir
))
def
restore_files
(
self
,
saved_value
):
fn
=
support
.
TESTFN
if
fn
not
in
saved_value
and
(
fn
+
'/'
)
not
in
saved_value
:
if
os
.
path
.
isfile
(
fn
):
support
.
unlink
(
fn
)
elif
os
.
path
.
isdir
(
fn
):
support
.
rmtree
(
fn
)
def
resource_info
(
self
):
for
name
in
self
.
resources
:
method_suffix
=
name
.
replace
(
'.'
,
'_'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
c0a2f2b0
...
...
@@ -182,6 +182,9 @@ Tools/Demos
Tests
-----
- Issue #22390: test.regrtest now emits a warning if temporary files or
directories are left after running a test.
- Issue #23583: Added tests for standard IO streams in IDLE.
- Issue #23392: Added tests for marshal C API that works with FILE*.
...
...
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