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*
17
17
Because the module uses :program: `/bin/sh ` command lines, a POSIX or compatible
18
18
shell for :func: `os.system ` and :func: `os.popen ` is required.
19
19
20
+ .. availability :: Unix. Not available on VxWorks.
21
+
20
22
The :mod: `pipes ` module defines the following class:
21
23
22
24
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ def requires_lzma(reason='requires lzma'):
421
421
422
422
is_android = hasattr (sys , 'getandroidapilevel' )
423
423
424
- if sys .platform != 'win32' :
424
+ if sys .platform not in ( 'win32' , 'vxworks' ) :
425
425
unix_shell = '/system/bin/sh' if is_android else '/bin/sh'
426
426
else :
427
427
unix_shell = None
Original file line number Diff line number Diff line change 3
3
import string
4
4
import unittest
5
5
import shutil
6
- from test .support import run_unittest , reap_children
6
+ from test .support import run_unittest , reap_children , unix_shell
7
7
from test .support .os_helper import TESTFN , unlink
8
8
9
9
10
10
if os .name != 'posix' :
11
11
raise unittest .SkipTest ('pipes module only works on posix' )
12
12
13
+ if not (unix_shell and os .path .exists (unix_shell )):
14
+ raise unittest .SkipTest ('pipes module requires a shell' )
15
+
13
16
TESTFN2 = TESTFN + "2"
14
17
15
18
# 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