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
04d42297
Kaydet (Commit)
04d42297
authored
Mar 11, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise
NotImplementedError instead of ImportError.
üst
ca0250a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
pathlib.py
Lib/pathlib.py
+6
-0
test_pathlib.py
Lib/test/test_pathlib.py
+9
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/pathlib.py
Dosyayı görüntüle @
04d42297
...
...
@@ -1425,3 +1425,9 @@ class PosixPath(Path, PurePosixPath):
class
WindowsPath
(
Path
,
PureWindowsPath
):
__slots__
=
()
def
owner
(
self
):
raise
NotImplementedError
(
"Path.owner() is unsupported on this system"
)
def
group
(
self
):
raise
NotImplementedError
(
"Path.group() is unsupported on this system"
)
Lib/test/test_pathlib.py
Dosyayı görüntüle @
04d42297
...
...
@@ -1156,6 +1156,15 @@ class PureWindowsPathTest(_BasePurePathTest, unittest.TestCase):
# UNC paths are never reserved
self
.
assertIs
(
False
,
P
(
'//my/share/nul/con/aux'
)
.
is_reserved
())
def
test_owner
(
self
):
P
=
self
.
cls
with
self
.
assertRaises
(
NotImplementedError
):
P
(
'c:/'
)
.
owner
()
def
test_group
(
self
):
P
=
self
.
cls
with
self
.
assertRaises
(
NotImplementedError
):
P
(
'c:/'
)
.
group
()
class
PurePathTest
(
_BasePurePathTest
,
unittest
.
TestCase
):
cls
=
pathlib
.
PurePath
...
...
Misc/NEWS
Dosyayı görüntüle @
04d42297
...
...
@@ -91,6 +91,9 @@ Core and Builtins
Library
-------
- Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise
NotImplementedError instead of ImportError.
- Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets.
- Issue #15068: Got rid of excessive buffering in the fileinput module.
...
...
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