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
047b7ae5
Kaydet (Commit)
047b7ae5
authored
Eki 05, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22390: Remove files created by tests
üst
8f437aac
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
3 deletions
+10
-3
test_imp.py
Lib/test/test_imp.py
+1
-0
test_import.py
Lib/test/test_import.py
+1
-0
test_pdb.py
Lib/test/test_pdb.py
+1
-0
test_posix.py
Lib/test/test_posix.py
+1
-1
test_source_encoding.py
Lib/test/test_source_encoding.py
+2
-1
test_support.py
Lib/test/test_support.py
+1
-0
test_threaded_import.py
Lib/test/test_threaded_import.py
+3
-1
No files found.
Lib/test/test_imp.py
Dosyayı görüntüle @
047b7ae5
...
...
@@ -198,6 +198,7 @@ class ImportTests(unittest.TestCase):
support
.
unlink
(
temp_mod_name
+
ext
)
support
.
unlink
(
init_file_name
+
ext
)
support
.
rmtree
(
test_package_name
)
support
.
rmtree
(
'__pycache__'
)
def
test_issue9319
(
self
):
path
=
os
.
path
.
dirname
(
__file__
)
...
...
Lib/test/test_import.py
Dosyayı görüntüle @
047b7ae5
...
...
@@ -1062,6 +1062,7 @@ class ImportTracebackTests(unittest.TestCase):
# Issue #11619: The Python parser and the import machinery must not
# encode filenames, especially on Windows
pyname
=
script_helper
.
make_script
(
''
,
TESTFN_UNENCODABLE
,
'pass'
)
self
.
addCleanup
(
unlink
,
pyname
)
name
=
pyname
[:
-
3
]
script_helper
.
assert_python_ok
(
"-c"
,
"mod = __import__(
%
a)"
%
name
,
__isolated
=
False
)
...
...
Lib/test/test_pdb.py
Dosyayı görüntüle @
047b7ae5
...
...
@@ -916,6 +916,7 @@ class PdbTestCase(unittest.TestCase):
with
open
(
filename
,
'w'
)
as
f
:
f
.
write
(
textwrap
.
dedent
(
script
))
self
.
addCleanup
(
support
.
unlink
,
filename
)
self
.
addCleanup
(
support
.
rmtree
,
'__pycache__'
)
cmd
=
[
sys
.
executable
,
'-m'
,
'pdb'
,
filename
]
stdout
=
stderr
=
None
with
subprocess
.
Popen
(
cmd
,
stdout
=
subprocess
.
PIPE
,
...
...
Lib/test/test_posix.py
Dosyayı görüntüle @
047b7ae5
...
...
@@ -1125,7 +1125,7 @@ class PosixTester(unittest.TestCase):
"""
Test functions that call path_error2(), providing two filenames in their exceptions.
"""
for
name
in
(
"rename"
,
"replace"
,
"link"
,
"symlink"
):
for
name
in
(
"rename"
,
"replace"
,
"link"
):
function
=
getattr
(
os
,
name
,
None
)
if
function
:
...
...
Lib/test/test_source_encoding.py
Dosyayı görüntüle @
047b7ae5
# -*- coding: koi8-r -*-
import
unittest
from
test.support
import
TESTFN
,
unlink
,
unload
from
test.support
import
TESTFN
,
unlink
,
unload
,
rmtree
import
importlib
import
os
import
sys
...
...
@@ -129,6 +129,7 @@ class SourceEncodingTest(unittest.TestCase):
unlink
(
filename
+
"c"
)
unlink
(
filename
+
"o"
)
unload
(
TESTFN
)
rmtree
(
'__pycache__'
)
def
test_error_from_string
(
self
):
# See http://bugs.python.org/issue6289
...
...
Lib/test/test_support.py
Dosyayı görüntüle @
047b7ae5
...
...
@@ -69,6 +69,7 @@ class TestSupport(unittest.TestCase):
finally
:
del
sys
.
path
[
0
]
support
.
unlink
(
mod_filename
)
support
.
rmtree
(
'__pycache__'
)
def
test_HOST
(
self
):
s
=
socket
.
socket
()
...
...
Lib/test/test_threaded_import.py
Dosyayı görüntüle @
047b7ae5
...
...
@@ -13,7 +13,8 @@ import time
import
shutil
import
unittest
from
test.support
import
(
verbose
,
import_module
,
run_unittest
,
TESTFN
,
reap_threads
,
forget
,
unlink
)
verbose
,
import_module
,
run_unittest
,
TESTFN
,
reap_threads
,
forget
,
unlink
,
rmtree
)
threading
=
import_module
(
'threading'
)
def
task
(
N
,
done
,
done_tasks
,
errors
):
...
...
@@ -222,6 +223,7 @@ class ThreadedImportTests(unittest.TestCase):
f
.
write
(
code
.
encode
(
'utf-8'
))
self
.
addCleanup
(
unlink
,
filename
)
self
.
addCleanup
(
forget
,
TESTFN
)
self
.
addCleanup
(
rmtree
,
'__pycache__'
)
importlib
.
invalidate_caches
()
__import__
(
TESTFN
)
...
...
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