File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ The :mod:`pipes` module defines a class to abstract the concept of a *pipeline*
1717Because the module uses :program: `/bin/sh ` command lines, a POSIX or compatible
1818shell for :func: `os.system ` and :func: `os.popen ` is required.
1919
20+ .. availability :: Unix. Not available on VxWorks.
21+
2022The :mod: `pipes ` module defines the following class:
2123
2224
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ def requires_lzma(reason='requires lzma'):
421421
422422is_android = hasattr (sys , 'getandroidapilevel' )
423423
424- if sys .platform != 'win32' :
424+ if sys .platform not in ( 'win32' , 'vxworks' ) :
425425 unix_shell = '/system/bin/sh' if is_android else '/bin/sh'
426426else :
427427 unix_shell = None
Original file line number Diff line number Diff line change 33import string
44import unittest
55import shutil
6- from test .support import run_unittest , reap_children
6+ from test .support import run_unittest , reap_children , unix_shell
77from test .support .os_helper import TESTFN , unlink
88
99
1010if os .name != 'posix' :
1111 raise unittest .SkipTest ('pipes module only works on posix' )
1212
13+ if not (unix_shell and os .path .exists (unix_shell )):
14+ raise unittest .SkipTest ('pipes module requires a shell' )
15+
1316TESTFN2 = TESTFN + "2"
1417
1518# tr a-z A-Z is not portable, so make the ranges explicit
You can’t perform that action at this time.
0 commit comments