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
7e45b5c6
Kaydet (Commit)
7e45b5c6
authored
Kas 24, 2016
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #27100: Silence deprecation warning in Lib/test/test_with.py
üst
f5763431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_with.py
Lib/test/test_with.py
+3
-3
No files found.
Lib/test/test_with.py
Dosyayı görüntüle @
7e45b5c6
...
@@ -117,7 +117,7 @@ class FailureTestCase(unittest.TestCase):
...
@@ -117,7 +117,7 @@ class FailureTestCase(unittest.TestCase):
def
fooLacksEnter
():
def
fooLacksEnter
():
foo
=
LacksEnter
()
foo
=
LacksEnter
()
with
foo
:
pass
with
foo
:
pass
self
.
assertRaisesRegex
p
(
AttributeError
,
'__enter__'
,
fooLacksEnter
)
self
.
assertRaisesRegex
(
AttributeError
,
'__enter__'
,
fooLacksEnter
)
def
testEnterAttributeError2
(
self
):
def
testEnterAttributeError2
(
self
):
class
LacksEnterAndExit
(
object
):
class
LacksEnterAndExit
(
object
):
...
@@ -126,7 +126,7 @@ class FailureTestCase(unittest.TestCase):
...
@@ -126,7 +126,7 @@ class FailureTestCase(unittest.TestCase):
def
fooLacksEnterAndExit
():
def
fooLacksEnterAndExit
():
foo
=
LacksEnterAndExit
()
foo
=
LacksEnterAndExit
()
with
foo
:
pass
with
foo
:
pass
self
.
assertRaisesRegex
p
(
AttributeError
,
'__enter__'
,
fooLacksEnterAndExit
)
self
.
assertRaisesRegex
(
AttributeError
,
'__enter__'
,
fooLacksEnterAndExit
)
def
testExitAttributeError
(
self
):
def
testExitAttributeError
(
self
):
class
LacksExit
(
object
):
class
LacksExit
(
object
):
...
@@ -136,7 +136,7 @@ class FailureTestCase(unittest.TestCase):
...
@@ -136,7 +136,7 @@ class FailureTestCase(unittest.TestCase):
def
fooLacksExit
():
def
fooLacksExit
():
foo
=
LacksExit
()
foo
=
LacksExit
()
with
foo
:
pass
with
foo
:
pass
self
.
assertRaisesRegex
p
(
AttributeError
,
'__exit__'
,
fooLacksExit
)
self
.
assertRaisesRegex
(
AttributeError
,
'__exit__'
,
fooLacksExit
)
def
assertRaisesSyntaxError
(
self
,
codestr
):
def
assertRaisesSyntaxError
(
self
,
codestr
):
def
shouldRaiseSyntaxError
(
s
):
def
shouldRaiseSyntaxError
(
s
):
...
...
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