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
97e2e06a
Kaydet (Commit)
97e2e06a
authored
Eyl 26, 2014
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
os: Include posix functions in os.__all__. Closes issue #18554.
Patch by Ronald Oussoren.
üst
4f6355f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
os.py
Lib/os.py
+4
-0
test_os.py
Lib/test/test_os.py
+8
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/os.py
Dosyayı görüntüle @
97e2e06a
...
@@ -61,6 +61,10 @@ if 'posix' in _names:
...
@@ -61,6 +61,10 @@ if 'posix' in _names:
except
ImportError
:
except
ImportError
:
pass
pass
import
posix
__all__
.
extend
(
_get_exports_list
(
posix
))
del
posix
elif
'nt'
in
_names
:
elif
'nt'
in
_names
:
name
=
'nt'
name
=
'nt'
linesep
=
'
\r\n
'
linesep
=
'
\r\n
'
...
...
Lib/test/test_os.py
Dosyayı görüntüle @
97e2e06a
...
@@ -2616,6 +2616,13 @@ class BlockingTests(unittest.TestCase):
...
@@ -2616,6 +2616,13 @@ class BlockingTests(unittest.TestCase):
self
.
assertEqual
(
os
.
get_blocking
(
fd
),
True
)
self
.
assertEqual
(
os
.
get_blocking
(
fd
),
True
)
class
ExportsTests
(
unittest
.
TestCase
):
def
test_os_all
(
self
):
self
.
assertIn
(
'open'
,
os
.
__all__
)
self
.
assertIn
(
'walk'
,
os
.
__all__
)
@support.reap_threads
@support.reap_threads
def
test_main
():
def
test_main
():
support
.
run_unittest
(
support
.
run_unittest
(
...
@@ -2652,6 +2659,7 @@ def test_main():
...
@@ -2652,6 +2659,7 @@ def test_main():
FDInheritanceTests
,
FDInheritanceTests
,
Win32JunctionTests
,
Win32JunctionTests
,
BlockingTests
,
BlockingTests
,
ExportsTests
,
)
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
Misc/NEWS
Dosyayı görüntüle @
97e2e06a
...
@@ -10,6 +10,8 @@ Release date: TBA
...
@@ -10,6 +10,8 @@ Release date: TBA
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #18554: os.__all__ includes posix functions.
- Issue #21391: Use os.path.abspath in the shutil module.
- Issue #21391: Use os.path.abspath in the shutil module.
- Issue #11471: avoid generating a JUMP_FORWARD instruction at the end of
- Issue #11471: avoid generating a JUMP_FORWARD instruction at the end of
...
...
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