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
2f8dfcd6
Kaydet (Commit)
2f8dfcd6
authored
Eki 27, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add a test for an assertion with tuple msg
üst
065836ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
test_raise.py
Lib/test/test_raise.py
+7
-0
No files found.
Lib/test/test_raise.py
Dosyayı görüntüle @
2f8dfcd6
...
@@ -130,6 +130,13 @@ class TestRaise(unittest.TestCase):
...
@@ -130,6 +130,13 @@ class TestRaise(unittest.TestCase):
with
self
.
assertRaises
(
TypeError
):
with
self
.
assertRaises
(
TypeError
):
raise
MyException
raise
MyException
def
test_assert_with_tuple_arg
(
self
):
try
:
assert
False
,
(
3
,)
except
AssertionError
as
e
:
self
.
assertEqual
(
str
(
e
),
"(3,)"
)
class
TestCause
(
unittest
.
TestCase
):
class
TestCause
(
unittest
.
TestCase
):
def
test_invalid_cause
(
self
):
def
test_invalid_cause
(
self
):
...
...
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