mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-31904: Disable os.popen and popen test cases on VxWorks (GH-21687)
This commit is contained in:
parent
9cc8fa6ac8
commit
e1e3c2dac3
7 changed files with 58 additions and 46 deletions
|
|
@ -991,6 +991,7 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
|
|||
# Bug 1110478
|
||||
@unittest.skipUnless(unix_shell and os.path.exists(unix_shell),
|
||||
'requires a shell')
|
||||
@unittest.skipUnless(hasattr(os, 'popen'), "needs os.popen()")
|
||||
def test_update2(self):
|
||||
os.environ.clear()
|
||||
os.environ.update(HELLO="World")
|
||||
|
|
@ -1000,6 +1001,7 @@ class EnvironTests(mapping_tests.BasicTestMappingProtocol):
|
|||
|
||||
@unittest.skipUnless(unix_shell and os.path.exists(unix_shell),
|
||||
'requires a shell')
|
||||
@unittest.skipUnless(hasattr(os, 'popen'), "needs os.popen()")
|
||||
def test_os_popen_iter(self):
|
||||
with os.popen("%s -c 'echo \"line1\nline2\nline3\"'"
|
||||
% unix_shell) as popen:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue