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
9aba6d69
Kaydet (Commit)
9aba6d69
authored
Nis 12, 2007
tarafından
Žiga Seilnacht
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1695862: remove the cleanup code, now that Windows buildbots are green
again.
üst
e2d827d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
test_urllib.py
Lib/test/test_urllib.py
+0
-17
No files found.
Lib/test/test_urllib.py
Dosyayı görüntüle @
9aba6d69
...
@@ -27,7 +27,6 @@ class urlopen_FileTests(unittest.TestCase):
...
@@ -27,7 +27,6 @@ class urlopen_FileTests(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
"""Setup of a temp file to use for testing"""
"""Setup of a temp file to use for testing"""
self
.
text
=
"test_urllib:
%
s
\n
"
%
self
.
__class__
.
__name__
self
.
text
=
"test_urllib:
%
s
\n
"
%
self
.
__class__
.
__name__
test_support
.
unlink
(
test_support
.
TESTFN
)
FILE
=
file
(
test_support
.
TESTFN
,
'wb'
)
FILE
=
file
(
test_support
.
TESTFN
,
'wb'
)
try
:
try
:
FILE
.
write
(
self
.
text
)
FILE
.
write
(
self
.
text
)
...
@@ -196,7 +195,6 @@ class urlretrieve_FileTests(unittest.TestCase):
...
@@ -196,7 +195,6 @@ class urlretrieve_FileTests(unittest.TestCase):
def
test_copy
(
self
):
def
test_copy
(
self
):
# Test that setting the filename argument works.
# Test that setting the filename argument works.
second_temp
=
"
%
s.2"
%
test_support
.
TESTFN
second_temp
=
"
%
s.2"
%
test_support
.
TESTFN
test_support
.
unlink
(
second_temp
)
self
.
registerFileForCleanUp
(
second_temp
)
self
.
registerFileForCleanUp
(
second_temp
)
result
=
urllib
.
urlretrieve
(
self
.
constructLocalFileUrl
(
result
=
urllib
.
urlretrieve
(
self
.
constructLocalFileUrl
(
test_support
.
TESTFN
),
second_temp
)
test_support
.
TESTFN
),
second_temp
)
...
@@ -221,7 +219,6 @@ class urlretrieve_FileTests(unittest.TestCase):
...
@@ -221,7 +219,6 @@ class urlretrieve_FileTests(unittest.TestCase):
self
.
assertEqual
(
count
,
count_holder
[
0
])
self
.
assertEqual
(
count
,
count_holder
[
0
])
count_holder
[
0
]
=
count_holder
[
0
]
+
1
count_holder
[
0
]
=
count_holder
[
0
]
+
1
second_temp
=
"
%
s.2"
%
test_support
.
TESTFN
second_temp
=
"
%
s.2"
%
test_support
.
TESTFN
test_support
.
unlink
(
second_temp
)
self
.
registerFileForCleanUp
(
second_temp
)
self
.
registerFileForCleanUp
(
second_temp
)
urllib
.
urlretrieve
(
self
.
constructLocalFileUrl
(
test_support
.
TESTFN
),
urllib
.
urlretrieve
(
self
.
constructLocalFileUrl
(
test_support
.
TESTFN
),
second_temp
,
hooktester
)
second_temp
,
hooktester
)
...
@@ -547,20 +544,6 @@ class Pathname_Tests(unittest.TestCase):
...
@@ -547,20 +544,6 @@ class Pathname_Tests(unittest.TestCase):
def
test_main
():
def
test_main
():
# cleanup old test dir on Windows buildbots
old_test_path
=
test_support
.
TESTFN
+
".2"
if
os
.
path
.
isdir
(
old_test_path
):
for
root
,
dirs
,
files
in
os
.
walk
(
old_test_path
,
topdown
=
False
):
for
name
in
files
:
os
.
remove
(
os
.
path
.
join
(
root
,
name
))
for
name
in
dirs
:
dirname
=
os
.
path
.
join
(
root
,
name
)
if
not
os
.
path
.
islink
(
dirname
):
os
.
rmdir
(
dirname
)
else
:
os
.
remove
(
dirname
)
os
.
rmdir
(
old_test_path
)
test_support
.
run_unittest
(
test_support
.
run_unittest
(
urlopen_FileTests
,
urlopen_FileTests
,
urlopen_HttpTests
,
urlopen_HttpTests
,
...
...
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