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
bdc21fba
Kaydet (Commit)
bdc21fba
authored
Haz 01, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge heads
üst
35a9b1ca
e9b185f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
test_subprocess.py
Lib/test/test_subprocess.py
+1
-1
test_support.py
Lib/test/test_support.py
+3
-0
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
bdc21fba
...
@@ -116,7 +116,7 @@ class ProcessTestCase(BaseTestCase):
...
@@ -116,7 +116,7 @@ class ProcessTestCase(BaseTestCase):
def
test_invalid_args
(
self
):
def
test_invalid_args
(
self
):
# Popen() called with invalid arguments should raise TypeError
# Popen() called with invalid arguments should raise TypeError
# but Popen.__del__ should not complain (issue #12085)
# but Popen.__del__ should not complain (issue #12085)
with
support
.
captured_stderr
()
as
s
:
with
test_
support
.
captured_stderr
()
as
s
:
self
.
assertRaises
(
TypeError
,
subprocess
.
Popen
,
invalid_arg_name
=
1
)
self
.
assertRaises
(
TypeError
,
subprocess
.
Popen
,
invalid_arg_name
=
1
)
argcount
=
subprocess
.
Popen
.
__init__
.
__code__
.
co_argcount
argcount
=
subprocess
.
Popen
.
__init__
.
__code__
.
co_argcount
too_many_args
=
[
0
]
*
(
argcount
+
1
)
too_many_args
=
[
0
]
*
(
argcount
+
1
)
...
...
Lib/test/test_support.py
Dosyayı görüntüle @
bdc21fba
...
@@ -833,6 +833,9 @@ def captured_stdout():
...
@@ -833,6 +833,9 @@ def captured_stdout():
"""
"""
return
captured_output
(
"stdout"
)
return
captured_output
(
"stdout"
)
def
captured_stderr
():
return
captured_output
(
"stderr"
)
def
captured_stdin
():
def
captured_stdin
():
return
captured_output
(
"stdin"
)
return
captured_output
(
"stdin"
)
...
...
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