diff options
author | pxinwr <peixing.xin@windriver.com> | 2020-12-15 21:20:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 21:20:07 (GMT) |
commit | e1e3c2dac3da8a179f57bd3e3309ab65385bcc8a (patch) | |
tree | 9de79c0397a8b66a53310564fc4aa84786e44311 /Lib/test/test_os.py | |
parent | 9cc8fa6ac89e9ea3ee483675b3c373650fc1bb3a (diff) | |
download | cpython-e1e3c2dac3da8a179f57bd3e3309ab65385bcc8a.zip cpython-e1e3c2dac3da8a179f57bd3e3309ab65385bcc8a.tar.gz cpython-e1e3c2dac3da8a179f57bd3e3309ab65385bcc8a.tar.bz2 |
bpo-31904: Disable os.popen and popen test cases on VxWorks (GH-21687)
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index dbb2975..08d7ab8 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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: |