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
7e3cde59
Kaydet (Commit)
7e3cde59
authored
Eki 06, 2012
tarafından
Andrew Svetlov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
revert accidental inclusion of subprocess tests
üst
ac0f965f
a2028733
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
test_subprocess.py
Lib/test/test_subprocess.py
+0
-22
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
7e3cde59
...
...
@@ -192,28 +192,6 @@ class ProcessTestCase(BaseTestCase):
p
.
wait
()
self
.
assertEqual
(
p
.
stderr
,
None
)
@unittest.skipIf
(
mswindows
,
"path not included in Windows message"
)
def
test_path_in_arg_not_found_message
(
self
):
# Check that the error message displays the path not found when
# args[0] is not found.
self
.
assertRaisesRegex
(
FileNotFoundError
,
"notfound_blahblah"
,
subprocess
.
Popen
,
[
"notfound_blahblah"
])
@unittest.skipIf
(
mswindows
,
"path not displayed in Windows message"
)
def
test_path_in_executable_not_found_message
(
self
):
# Check that the error message displays the executable argument (and
# not args[0]) when the executable argument is not found
# (issue #16114).
# We call sys.exit() inside the code to prevent the test runner
# from hanging if the test fails and finds python.
self
.
assertRaisesRegex
(
FileNotFoundError
,
"notfound_blahblah"
,
subprocess
.
Popen
,
[
sys
.
executable
,
"-c"
,
"import sys; sys.exit(47)"
],
executable
=
"notfound_blahblah"
)
self
.
assertRaisesRegex
(
FileNotFoundError
,
"exenotfound_blahblah"
,
subprocess
.
Popen
,
[
"argnotfound_blahblah"
],
executable
=
"exenotfound_blahblah"
)
# For use in the test_cwd* tests below.
def
_normalize_cwd
(
self
,
cwd
):
# Normalize an expected cwd (for Tru64 support).
...
...
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