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
5758fa78
Kaydet (Commit)
5758fa78
authored
May 28, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #17746: Skip test_shutil.test_non_matching_mode when run as root or
on unsuitable platform/environment.
üst
5cc9d32e
12516e2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
test_shutil.py
Lib/test/test_shutil.py
+4
-0
No files found.
Lib/test/test_shutil.py
Dosyayı görüntüle @
5758fa78
...
...
@@ -1338,9 +1338,13 @@ class TestWhich(unittest.TestCase):
# Other platforms: shouldn't match in the current directory.
self
.
assertIsNone
(
rv
)
@unittest.skipIf
(
hasattr
(
os
,
'geteuid'
)
and
os
.
geteuid
()
==
0
,
'non-root user required'
)
def
test_non_matching_mode
(
self
):
# Set the file read-only and ask for writeable files.
os
.
chmod
(
self
.
temp_file
.
name
,
stat
.
S_IREAD
)
if
os
.
access
(
self
.
temp_file
.
name
,
os
.
W_OK
):
self
.
skipTest
(
"can't set the file read-only"
)
rv
=
shutil
.
which
(
self
.
file
,
path
=
self
.
dir
,
mode
=
os
.
W_OK
)
self
.
assertIsNone
(
rv
)
...
...
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