Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d7062de9
Kaydet (Commit)
d7062de9
authored
May 05, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #26918: Skipped some tests in test_pipes on Android.
Patch by Xavier de Gaye.
üst
fb81d3cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
test_pipes.py
Lib/test/test_pipes.py
+7
-0
No files found.
Lib/test/test_pipes.py
Dosyayı görüntüle @
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