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
43d9fa21
Kaydet (Commit)
43d9fa21
authored
Şub 20, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #17248: Fix os.*chown() testing when user has group root.
üst
f0602062
b3d62cef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test_posix.py
Lib/test/test_posix.py
+3
-2
No files found.
Lib/test/test_posix.py
Dosyayı görüntüle @
43d9fa21
...
...
@@ -451,10 +451,11 @@ class PosixTester(unittest.TestCase):
# non-root cannot chown to root, raises OSError
self
.
assertRaises
(
OSError
,
chown_func
,
first_param
,
0
,
0
)
check_stat
(
uid
,
gid
)
self
.
assertRaises
(
OSError
,
chown_func
,
first_param
,
-
1
,
0
)
check_stat
(
uid
,
gid
)
self
.
assertRaises
(
OSError
,
chown_func
,
first_param
,
0
,
-
1
)
check_stat
(
uid
,
gid
)
if
gid
!=
0
:
self
.
assertRaises
(
OSError
,
chown_func
,
first_param
,
-
1
,
0
)
check_stat
(
uid
,
gid
)
# test illegal types
for
t
in
str
,
float
:
self
.
assertRaises
(
TypeError
,
chown_func
,
first_param
,
t
(
uid
),
gid
)
...
...
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