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
01408453
Kaydet (Commit)
01408453
authored
Agu 22, 2014
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22191: Fix warnings.__all__.
Thanks to Jon Poler for the patch.
üst
95cf9862
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
2 deletions
+25
-2
test___all__.py
Lib/test/test___all__.py
+1
-1
test_warnings.py
Lib/test/test_warnings.py
+19
-0
warnings.py
Lib/warnings.py
+2
-1
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test___all__.py
Dosyayı görüntüle @
01408453
...
@@ -73,7 +73,7 @@ class AllTest(unittest.TestCase):
...
@@ -73,7 +73,7 @@ class AllTest(unittest.TestCase):
# than an AttributeError somewhere deep in CGIHTTPServer.
# than an AttributeError somewhere deep in CGIHTTPServer.
import
_socket
import
_socket
# rlcompleter needs special consideration; it import readline which
# rlcompleter needs special consideration; it import
s
readline which
# initializes GNU readline which calls setlocale(LC_CTYPE, "")... :-(
# initializes GNU readline which calls setlocale(LC_CTYPE, "")... :-(
try
:
try
:
import
rlcompleter
import
rlcompleter
...
...
Lib/test/test_warnings.py
Dosyayı görüntüle @
01408453
...
@@ -62,6 +62,25 @@ class BaseTest(unittest.TestCase):
...
@@ -62,6 +62,25 @@ class BaseTest(unittest.TestCase):
sys
.
modules
[
'warnings'
]
=
original_warnings
sys
.
modules
[
'warnings'
]
=
original_warnings
super
(
BaseTest
,
self
)
.
tearDown
()
super
(
BaseTest
,
self
)
.
tearDown
()
class
PublicAPITests
(
BaseTest
):
"""Ensures that the correct values are exposed in the
public API.
"""
def
test_module_all_attribute
(
self
):
self
.
assertTrue
(
hasattr
(
self
.
module
,
'__all__'
))
target_api
=
[
"warn"
,
"warn_explicit"
,
"showwarning"
,
"formatwarning"
,
"filterwarnings"
,
"simplefilter"
,
"resetwarnings"
,
"catch_warnings"
]
self
.
assertSetEqual
(
set
(
self
.
module
.
__all__
),
set
(
target_api
))
class
CPublicAPITests
(
PublicAPITests
,
unittest
.
TestCase
):
module
=
c_warnings
class
PyPublicAPITests
(
PublicAPITests
,
unittest
.
TestCase
):
module
=
py_warnings
class
FilterTests
(
object
):
class
FilterTests
(
object
):
...
...
Lib/warnings.py
Dosyayı görüntüle @
01408453
...
@@ -7,7 +7,8 @@ import linecache
...
@@ -7,7 +7,8 @@ import linecache
import
sys
import
sys
import
types
import
types
__all__
=
[
"warn"
,
"showwarning"
,
"formatwarning"
,
"filterwarnings"
,
__all__
=
[
"warn"
,
"warn_explicit"
,
"showwarning"
,
"formatwarning"
,
"filterwarnings"
,
"simplefilter"
,
"resetwarnings"
,
"catch_warnings"
]
"resetwarnings"
,
"catch_warnings"
]
...
...
Misc/ACKS
Dosyayı görüntüle @
01408453
...
@@ -1052,6 +1052,7 @@ Antoine Pitrou
...
@@ -1052,6 +1052,7 @@ Antoine Pitrou
Jean-François Piéronne
Jean-François Piéronne
Oleg Plakhotnyuk
Oleg Plakhotnyuk
Remi Pointel
Remi Pointel
Jon Poler
Ariel Poliak
Ariel Poliak
Guilherme Polo
Guilherme Polo
Illia Polosukhin
Illia Polosukhin
...
...
Misc/NEWS
Dosyayı görüntüle @
01408453
...
@@ -19,6 +19,8 @@ Core and Builtins
...
@@ -19,6 +19,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #22191: Fixed warnings.__all__.
- Issue #21308: Backport numerous features from Python'
s
ssl
module
.
This
is
- Issue #21308: Backport numerous features from Python'
s
ssl
module
.
This
is
part
of
PEP
466.
part
of
PEP
466.
...
...
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