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
77628993
Kaydet (Commit)
77628993
authored
Mar 20, 2010
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up the manipulation of the warnings filter in test_builtin.
üst
97133720
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
test_builtin.py
Lib/test/test_builtin.py
+5
-8
No files found.
Lib/test/test_builtin.py
Dosyayı görüntüle @
77628993
...
...
@@ -2,15 +2,11 @@
import
platform
import
unittest
from
test.support
import
fcmp
,
TESTFN
,
unlink
,
run_unittest
from
test.support
import
fcmp
,
TESTFN
,
unlink
,
run_unittest
,
check_warnings
from
operator
import
neg
import
sys
,
warnings
,
random
,
collections
,
io
warnings
.
filterwarnings
(
"ignore"
,
"hex../oct.. of negative int"
,
FutureWarning
,
__name__
)
warnings
.
filterwarnings
(
"ignore"
,
"integer argument expected"
,
DeprecationWarning
,
"unittest"
)
import
builtins
class
Squares
:
...
...
@@ -427,9 +423,10 @@ class BuiltinTest(unittest.TestCase):
g
=
{}
l
=
{}
import
warnings
warnings
.
filterwarnings
(
"ignore"
,
"global statement"
,
module
=
"<string>"
)
exec
(
'global a; a = 1; b = 2'
,
g
,
l
)
with
check_warnings
():
warnings
.
filterwarnings
(
"ignore"
,
"global statement"
,
module
=
"<string>"
)
exec
(
'global a; a = 1; b = 2'
,
g
,
l
)
if
'__builtins__'
in
g
:
del
g
[
'__builtins__'
]
if
'__builtins__'
in
l
:
...
...
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