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
6a55d095
Unverified
Kaydet (Commit)
6a55d095
authored
Kas 12, 2017
tarafından
xdegaye
Kaydeden (comit)
GitHub
Kas 12, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-29180: Skip test_os tests on PermissionError raised by Android (GH-4374)
üst
92c2ca76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
test_os.py
Lib/test/test_os.py
+10
-3
No files found.
Lib/test/test_os.py
Dosyayı görüntüle @
6a55d095
...
@@ -1736,7 +1736,10 @@ class LinkTests(unittest.TestCase):
...
@@ -1736,7 +1736,10 @@ class LinkTests(unittest.TestCase):
def
_test_link
(
self
,
file1
,
file2
):
def
_test_link
(
self
,
file1
,
file2
):
create_file
(
file1
)
create_file
(
file1
)
os
.
link
(
file1
,
file2
)
try
:
os
.
link
(
file1
,
file2
)
except
PermissionError
as
e
:
self
.
skipTest
(
'os.link():
%
s'
%
e
)
with
open
(
file1
,
"r"
)
as
f1
,
open
(
file2
,
"r"
)
as
f2
:
with
open
(
file1
,
"r"
)
as
f1
,
open
(
file2
,
"r"
)
as
f2
:
self
.
assertTrue
(
os
.
path
.
sameopenfile
(
f1
.
fileno
(),
f2
.
fileno
()))
self
.
assertTrue
(
os
.
path
.
sameopenfile
(
f1
.
fileno
(),
f2
.
fileno
()))
...
@@ -2888,7 +2891,8 @@ class TermsizeTests(unittest.TestCase):
...
@@ -2888,7 +2891,8 @@ class TermsizeTests(unittest.TestCase):
"""
"""
try
:
try
:
size
=
subprocess
.
check_output
([
'stty'
,
'size'
])
.
decode
()
.
split
()
size
=
subprocess
.
check_output
([
'stty'
,
'size'
])
.
decode
()
.
split
()
except
(
FileNotFoundError
,
subprocess
.
CalledProcessError
):
except
(
FileNotFoundError
,
subprocess
.
CalledProcessError
,
PermissionError
):
self
.
skipTest
(
"stty invocation failed"
)
self
.
skipTest
(
"stty invocation failed"
)
expected
=
(
int
(
size
[
1
]),
int
(
size
[
0
]))
# reversed order
expected
=
(
int
(
size
[
1
]),
int
(
size
[
0
]))
# reversed order
...
@@ -3242,7 +3246,10 @@ class TestScandir(unittest.TestCase):
...
@@ -3242,7 +3246,10 @@ class TestScandir(unittest.TestCase):
os
.
mkdir
(
dirname
)
os
.
mkdir
(
dirname
)
filename
=
self
.
create_file
(
"file.txt"
)
filename
=
self
.
create_file
(
"file.txt"
)
if
link
:
if
link
:
os
.
link
(
filename
,
os
.
path
.
join
(
self
.
path
,
"link_file.txt"
))
try
:
os
.
link
(
filename
,
os
.
path
.
join
(
self
.
path
,
"link_file.txt"
))
except
PermissionError
as
e
:
self
.
skipTest
(
'os.link():
%
s'
%
e
)
if
symlink
:
if
symlink
:
os
.
symlink
(
dirname
,
os
.
path
.
join
(
self
.
path
,
"symlink_dir"
),
os
.
symlink
(
dirname
,
os
.
path
.
join
(
self
.
path
,
"symlink_dir"
),
target_is_directory
=
True
)
target_is_directory
=
True
)
...
...
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