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
c0dc65ef
Kaydet (Commit)
c0dc65ef
authored
Eki 13, 2014
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change deprecated Exception.message to Exception.args-[0] where the use of
.message is not an essential part of the test.
üst
54edfb3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
string_tests.py
Lib/test/string_tests.py
+1
-1
test_string.py
Lib/test/test_string.py
+1
-1
test_userstring.py
Lib/test/test_userstring.py
+1
-1
No files found.
Lib/test/string_tests.py
Dosyayı görüntüle @
c0dc65ef
...
...
@@ -70,7 +70,7 @@ class CommonTest(unittest.TestCase):
args
=
self
.
fixtype
(
args
)
with
self
.
assertRaises
(
exc
)
as
cm
:
getattr
(
obj
,
methodname
)(
*
args
)
self
.
assertNotEqual
(
cm
.
exception
.
message
,
''
)
self
.
assertNotEqual
(
cm
.
exception
.
args
[
0
]
,
''
)
# call object.method(*args) without any checks
def
checkcall
(
self
,
object
,
methodname
,
*
args
):
...
...
Lib/test/test_string.py
Dosyayı görüntüle @
c0dc65ef
...
...
@@ -19,7 +19,7 @@ class StringTest(
def
checkraises
(
self
,
exc
,
obj
,
methodname
,
*
args
):
with
self
.
assertRaises
(
exc
)
as
cm
:
getattr
(
string
,
methodname
)(
obj
,
*
args
)
self
.
assertNotEqual
(
cm
.
exception
.
message
,
''
)
self
.
assertNotEqual
(
cm
.
exception
.
args
[
0
]
,
''
)
def
checkcall
(
self
,
object
,
methodname
,
*
args
):
getattr
(
string
,
methodname
)(
object
,
*
args
)
...
...
Lib/test/test_userstring.py
Dosyayı görüntüle @
c0dc65ef
...
...
@@ -33,7 +33,7 @@ class UserStringTest(
# we don't fix the arguments, because UserString can't cope with it
with
self
.
assertRaises
(
exc
)
as
cm
:
getattr
(
obj
,
methodname
)(
*
args
)
self
.
assertNotEqual
(
cm
.
exception
.
message
,
''
)
self
.
assertNotEqual
(
cm
.
exception
.
args
[
0
]
,
''
)
def
checkcall
(
self
,
object
,
methodname
,
*
args
):
object
=
self
.
fixtype
(
object
)
...
...
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