summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_popen.py
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-12-15 21:20:07 (GMT)
committerGitHub <noreply@github.com>2020-12-15 21:20:07 (GMT)
commite1e3c2dac3da8a179f57bd3e3309ab65385bcc8a (patch)
tree9de79c0397a8b66a53310564fc4aa84786e44311 /Lib/test/test_popen.py
parent9cc8fa6ac89e9ea3ee483675b3c373650fc1bb3a (diff)
downloadcpython-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_popen.py')
-rw-r--r--Lib/test/test_popen.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py
index ab1bc77..cac2f61 100644
--- a/Lib/test/test_popen.py
+++ b/Lib/test/test_popen.py
@@ -7,6 +7,9 @@ import unittest
from test import support
import os, sys
+if not hasattr(os, 'popen'):
+ raise unittest.SkipTest("need os.popen()")
+
# Test that command-lines get down as we expect.
# To do this we execute:
# python -c "import sys;print(sys.argv)" {rest_of_commandline}