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
ad6a99c0
Kaydet (Commit)
ad6a99c0
authored
Eyl 10, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correct print() calls to print a blank line in various test cases
üst
7f8ce859
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
test_curses.py
Lib/test/test_curses.py
+1
-1
test_httpservers.py
Lib/test/test_httpservers.py
+1
-1
test_subprocess.py
Lib/test/test_subprocess.py
+1
-1
No files found.
Lib/test/test_curses.py
Dosyayı görüntüle @
ad6a99c0
...
@@ -63,7 +63,7 @@ class TestCurses(unittest.TestCase):
...
@@ -63,7 +63,7 @@ class TestCurses(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
if
verbose
:
if
verbose
:
# just to make the test output a little more readable
# just to make the test output a little more readable
print
()
print
(
''
)
self
.
stdscr
=
curses
.
initscr
()
self
.
stdscr
=
curses
.
initscr
()
curses
.
savetty
()
curses
.
savetty
()
...
...
Lib/test/test_httpservers.py
Dosyayı görüntüle @
ad6a99c0
...
@@ -442,7 +442,7 @@ cgi_file4 = """\
...
@@ -442,7 +442,7 @@ cgi_file4 = """\
import os
import os
print("Content-type: text/html")
print("Content-type: text/html")
print()
print(
""
)
print(os.environ["
%
s"])
print(os.environ["
%
s"])
"""
"""
...
...
Lib/test/test_subprocess.py
Dosyayı görüntüle @
ad6a99c0
...
@@ -426,7 +426,7 @@ class ProcessTestCase(BaseTestCase):
...
@@ -426,7 +426,7 @@ class ProcessTestCase(BaseTestCase):
def
test_communicate_pipe_fd_leak
(
self
):
def
test_communicate_pipe_fd_leak
(
self
):
fd_directory
=
'/proc/
%
d/fd'
%
os
.
getpid
()
fd_directory
=
'/proc/
%
d/fd'
%
os
.
getpid
()
num_fds_before_popen
=
len
(
os
.
listdir
(
fd_directory
))
num_fds_before_popen
=
len
(
os
.
listdir
(
fd_directory
))
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
"print()"
],
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
"print(
''
)"
],
stdout
=
subprocess
.
PIPE
)
stdout
=
subprocess
.
PIPE
)
p
.
communicate
()
p
.
communicate
()
num_fds_after_communicate
=
len
(
os
.
listdir
(
fd_directory
))
num_fds_after_communicate
=
len
(
os
.
listdir
(
fd_directory
))
...
...
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