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
5cad060e
Kaydet (Commit)
5cad060e
authored
Nis 16, 2016
tarafından
Martin Panter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge subprocess test from 3.5
üst
8b04a945
23172bd4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
test_subprocess.py
Lib/test/test_subprocess.py
+14
-15
No files found.
Lib/test/test_subprocess.py
Dosyayı görüntüle @
5cad060e
...
...
@@ -2518,7 +2518,7 @@ class Win32ProcessTestCase(BaseTestCase):
def
test_terminate_dead
(
self
):
self
.
_kill_dead_process
(
'terminate'
)
class
Command
Tests
(
unittest
.
TestCase
):
class
Misc
Tests
(
unittest
.
TestCase
):
def
test_getoutput
(
self
):
self
.
assertEqual
(
subprocess
.
getoutput
(
'echo xyzzy'
),
'xyzzy'
)
self
.
assertEqual
(
subprocess
.
getstatusoutput
(
'echo xyzzy'
),
...
...
@@ -2538,19 +2538,6 @@ class CommandTests(unittest.TestCase):
if
dir
is
not
None
:
os
.
rmdir
(
dir
)
@unittest.skipUnless
(
hasattr
(
selectors
,
'PollSelector'
),
"Test needs selectors.PollSelector"
)
class
ProcessTestCaseNoPoll
(
ProcessTestCase
):
def
setUp
(
self
):
self
.
orig_selector
=
subprocess
.
_PopenSelector
subprocess
.
_PopenSelector
=
selectors
.
SelectSelector
ProcessTestCase
.
setUp
(
self
)
def
tearDown
(
self
):
subprocess
.
_PopenSelector
=
self
.
orig_selector
ProcessTestCase
.
tearDown
(
self
)
def
test__all__
(
self
):
"""Ensure that __all__ is populated properly."""
intentionally_excluded
=
set
((
"list2cmdline"
,))
...
...
@@ -2566,6 +2553,18 @@ class ProcessTestCaseNoPoll(ProcessTestCase):
self
.
assertEqual
(
exported
,
possible_exports
-
intentionally_excluded
)
@unittest.skipUnless
(
hasattr
(
selectors
,
'PollSelector'
),
"Test needs selectors.PollSelector"
)
class
ProcessTestCaseNoPoll
(
ProcessTestCase
):
def
setUp
(
self
):
self
.
orig_selector
=
subprocess
.
_PopenSelector
subprocess
.
_PopenSelector
=
selectors
.
SelectSelector
ProcessTestCase
.
setUp
(
self
)
def
tearDown
(
self
):
subprocess
.
_PopenSelector
=
self
.
orig_selector
ProcessTestCase
.
tearDown
(
self
)
@unittest.skipUnless
(
mswindows
,
"Windows-specific tests"
)
class
CommandsWithSpaces
(
BaseTestCase
):
...
...
@@ -2669,7 +2668,7 @@ def test_main():
unit_tests
=
(
ProcessTestCase
,
POSIXProcessTestCase
,
Win32ProcessTestCase
,
Command
Tests
,
Misc
Tests
,
ProcessTestCaseNoPoll
,
CommandsWithSpaces
,
ContextManagerTests
,
...
...
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