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
2d9c2d5e
Kaydet (Commit)
2d9c2d5e
authored
May 04, 2010
tarafından
Michael Foord
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix error handling removing files in test.support.unlink
üst
667ce06d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
support.py
Lib/test/support.py
+2
-1
No files found.
Lib/test/support.py
Dosyayı görüntüle @
2d9c2d5e
...
@@ -186,7 +186,7 @@ def unlink(filename):
...
@@ -186,7 +186,7 @@ def unlink(filename):
os
.
unlink
(
filename
)
os
.
unlink
(
filename
)
except
OSError
as
error
:
except
OSError
as
error
:
# The filename need not exist.
# The filename need not exist.
if
error
.
errno
!=
errno
.
ENOENT
:
if
error
.
errno
not
in
(
errno
.
ENOENT
,
errno
.
ENOTDIR
)
:
raise
raise
def
rmtree
(
path
):
def
rmtree
(
path
):
...
@@ -376,6 +376,7 @@ else:
...
@@ -376,6 +376,7 @@ else:
# module name.
# module name.
TESTFN
=
"{}_{}_tmp"
.
format
(
TESTFN
,
os
.
getpid
())
TESTFN
=
"{}_{}_tmp"
.
format
(
TESTFN
,
os
.
getpid
())
# Assuming sys.getfilesystemencoding()!=sys.getdefaultencoding()
# Assuming sys.getfilesystemencoding()!=sys.getdefaultencoding()
# TESTFN_UNICODE is a filename that can be encoded using the
# TESTFN_UNICODE is a filename that can be encoded using the
# file system encoding, but *not* with the default (ascii) encoding
# file system encoding, but *not* with the default (ascii) encoding
...
...
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