Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d7062de9
Commit
d7062de9
authored
May 05, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #26918: Skipped some tests in test_pipes on Android.
Patch by Xavier de Gaye.
parent
fb81d3cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Lib/test/test_pipes.py
Lib/test/test_pipes.py
+7
-0
No files found.
Lib/test/test_pipes.py
View file @
d7062de9
...
...
@@ -2,6 +2,7 @@ import pipes
import
os
import
string
import
unittest
import
shutil
from
test.support
import
TESTFN
,
run_unittest
,
unlink
,
reap_children
if
os
.
name
!=
'posix'
:
...
...
@@ -18,6 +19,8 @@ class SimplePipeTests(unittest.TestCase):
unlink
(
f
)
def
testSimplePipe1
(
self
):
if
shutil
.
which
(
'tr'
)
is
None
:
self
.
skipTest
(
'tr is not available'
)
t
=
pipes
.
Template
()
t
.
append
(
s_command
,
pipes
.
STDIN_STDOUT
)
f
=
t
.
open
(
TESTFN
,
'w'
)
...
...
@@ -27,6 +30,8 @@ class SimplePipeTests(unittest.TestCase):
self
.
assertEqual
(
f
.
read
(),
'HELLO WORLD #1'
)
def
testSimplePipe2
(
self
):
if
shutil
.
which
(
'tr'
)
is
None
:
self
.
skipTest
(
'tr is not available'
)
with
open
(
TESTFN
,
'w'
)
as
f
:
f
.
write
(
'hello world #2'
)
t
=
pipes
.
Template
()
...
...
@@ -36,6 +41,8 @@ class SimplePipeTests(unittest.TestCase):
self
.
assertEqual
(
f
.
read
(),
'HELLO WORLD #2'
)
def
testSimplePipe3
(
self
):
if
shutil
.
which
(
'tr'
)
is
None
:
self
.
skipTest
(
'tr is not available'
)
with
open
(
TESTFN
,
'w'
)
as
f
:
f
.
write
(
'hello world #2'
)
t
=
pipes
.
Template
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment