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
f7c5ae22
Kaydet (Commit)
f7c5ae22
authored
Kas 16, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #13374: Deprecate os.getcwdb() on Windows
üst
345379a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
test_genericpath.py
Lib/test/test_genericpath.py
+4
-2
test_os.py
Lib/test/test_os.py
+1
-0
posixmodule.c
Modules/posixmodule.c
+3
-0
No files found.
Lib/test/test_genericpath.py
Dosyayı görüntüle @
f7c5ae22
...
@@ -264,8 +264,10 @@ class CommonTest(GenericTest):
...
@@ -264,8 +264,10 @@ class CommonTest(GenericTest):
self
.
assertIn
(
b
"foo"
,
self
.
pathmodule
.
abspath
(
b
"foo"
))
self
.
assertIn
(
b
"foo"
,
self
.
pathmodule
.
abspath
(
b
"foo"
))
# Abspath returns bytes when the arg is bytes
# Abspath returns bytes when the arg is bytes
for
path
in
(
b
''
,
b
'foo'
,
b
'f
\xf2\xf2
'
,
b
'/foo'
,
b
'C:
\\
'
):
with
warnings
.
catch_warnings
():
self
.
assertIsInstance
(
self
.
pathmodule
.
abspath
(
path
),
bytes
)
warnings
.
simplefilter
(
"ignore"
,
DeprecationWarning
)
for
path
in
(
b
''
,
b
'foo'
,
b
'f
\xf2\xf2
'
,
b
'/foo'
,
b
'C:
\\
'
):
self
.
assertIsInstance
(
self
.
pathmodule
.
abspath
(
path
),
bytes
)
def
test_realpath
(
self
):
def
test_realpath
(
self
):
self
.
assertIn
(
"foo"
,
self
.
pathmodule
.
realpath
(
"foo"
))
self
.
assertIn
(
"foo"
,
self
.
pathmodule
.
realpath
(
"foo"
))
...
...
Lib/test/test_os.py
Dosyayı görüntüle @
f7c5ae22
...
@@ -1638,6 +1638,7 @@ class Win32DeprecatedBytesAPI(unittest.TestCase):
...
@@ -1638,6 +1638,7 @@ class Win32DeprecatedBytesAPI(unittest.TestCase):
(
os
.
access
,
filename
,
os
.
R_OK
),
(
os
.
access
,
filename
,
os
.
R_OK
),
(
os
.
chdir
,
filename
),
(
os
.
chdir
,
filename
),
(
os
.
chmod
,
filename
,
0
o777
),
(
os
.
chmod
,
filename
,
0
o777
),
(
os
.
getcwdb
,),
(
os
.
link
,
filename
,
filename
),
(
os
.
link
,
filename
,
filename
),
(
os
.
listdir
,
filename
),
(
os
.
listdir
,
filename
),
(
os
.
lstat
,
filename
),
(
os
.
lstat
,
filename
),
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
f7c5ae22
...
@@ -2410,6 +2410,9 @@ posix_getcwd(int use_bytes)
...
@@ -2410,6 +2410,9 @@ posix_getcwd(int use_bytes)
if
(
wbuf2
!=
wbuf
)
free
(
wbuf2
);
if
(
wbuf2
!=
wbuf
)
free
(
wbuf2
);
return
resobj
;
return
resobj
;
}
}
if
(
win32_warn_bytes_api
())
return
NULL
;
#endif
#endif
Py_BEGIN_ALLOW_THREADS
Py_BEGIN_ALLOW_THREADS
...
...
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