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
a116df0f
Kaydet (Commit)
a116df0f
authored
Agu 29, 2012
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merged upstream changes.
üst
3d212e6e
da4277a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
test_posix.py
Lib/test/test_posix.py
+10
-2
NEWS
Misc/NEWS
+3
-0
posixmodule.c
Modules/posixmodule.c
+3
-1
No files found.
Lib/test/test_posix.py
Dosyayı görüntüle @
a116df0f
...
...
@@ -405,8 +405,16 @@ class PosixTester(unittest.TestCase):
_create_and_do_getcwd
(
dirname
,
current_path_length
+
len
(
dirname
)
+
1
)
except
OSError
as
e
:
expected_errno
=
errno
.
ENAMETOOLONG
if
'sunos'
in
sys
.
platform
or
'openbsd'
in
sys
.
platform
:
expected_errno
=
errno
.
ERANGE
# Issue 9185
# The following platforms have quirky getcwd()
# behaviour -- see issue 9185 and 15765 for
# more information.
quirky_platform
=
(
'sunos'
in
sys
.
platform
or
'netbsd'
in
sys
.
platform
or
'openbsd'
in
sys
.
platform
)
if
quirky_platform
:
expected_errno
=
errno
.
ERANGE
self
.
assertEqual
(
e
.
errno
,
expected_errno
)
finally
:
os
.
chdir
(
'..'
)
...
...
Misc/NEWS
Dosyayı görüntüle @
a116df0f
...
...
@@ -346,6 +346,9 @@ Library
Tests
-----
- Issue #15765: Extend a previous fix to Solaris and OpenBSD for quirky
getcwd() behaviour (issue #9185) to NetBSD as well.
- Issue #15615: Add some tests for the json module'
s
handling
of
invalid
input
data
.
Patch
by
Kushal
Das
.
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
a116df0f
...
...
@@ -1956,7 +1956,9 @@ PyDoc_STRVAR(posix_getcwd__doc__,
"getcwd() -> path
\n\n
\
Return a string representing the current working directory."
);
#if (defined(__sun) && defined(__SVR4)) || defined(__OpenBSD__)
#if (defined(__sun) && defined(__SVR4)) || \
defined(__OpenBSD__) || \
defined(__NetBSD__)
/* Issue 9185: getcwd() returns NULL/ERANGE indefinitely. */
static
PyObject
*
posix_getcwd
(
PyObject
*
self
,
PyObject
*
noargs
)
...
...
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