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
e152aab9
Kaydet (Commit)
e152aab9
authored
Haz 02, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert docstrings to comments so regrtest -v prints method names
üst
d770ebd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
test_exceptions.py
Lib/test/test_exceptions.py
+7
-7
No files found.
Lib/test/test_exceptions.py
Dosyayı görüntüle @
e152aab9
...
...
@@ -112,8 +112,8 @@ class ExceptionTests(unittest.TestCase):
except
Exception
,
e
:
pass
def
testSyntaxErrorMessage
(
self
):
"""
make sure the right exception message is raised for each of
these code fragments"""
#
make sure the right exception message is raised for each of
# these code fragments
def
ckmsg
(
src
,
msg
):
try
:
...
...
@@ -143,8 +143,8 @@ class ExceptionTests(unittest.TestCase):
ckmsg
(
"continue
\n
"
,
"'continue' not properly in loop"
)
def
testSettingException
(
self
):
"""
test that setting an exception at the C level works even if the
exception object can't be constructed."""
#
test that setting an exception at the C level works even if the
# exception object can't be constructed.
class
BadException
:
def
__init__
(
self_
):
...
...
@@ -181,7 +181,7 @@ class ExceptionTests(unittest.TestCase):
test_capi2
()
def
testAttributes
(
self
):
"""test that exception attributes are happy."""
# test that exception attributes are happy
try
:
str
(
u'Hello
\u00E1
'
)
except
Exception
,
e
:
sampleUnicodeEncodeError
=
e
...
...
@@ -280,8 +280,8 @@ class ExceptionTests(unittest.TestCase):
(
repr
(
e
),
checkArgName
))
def
testKeywordArgs
(
self
):
"""
test that builtin exception don't take keyword args,
but user-defined subclasses can if they want"""
#
test that builtin exception don't take keyword args,
# but user-defined subclasses can if they want
self
.
assertRaises
(
TypeError
,
BaseException
,
a
=
1
)
class
DerivedException
(
BaseException
):
...
...
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