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
d1befd7c
Kaydet (Commit)
d1befd7c
authored
Mar 18, 2008
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add some info to the failure messages
üst
36dbcb9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test_errno.py
Lib/test/test_errno.py
+3
-2
No files found.
Lib/test/test_errno.py
Dosyayı görüntüle @
d1befd7c
...
@@ -48,7 +48,7 @@ class ErrnoAttributeTests(unittest.TestCase):
...
@@ -48,7 +48,7 @@ class ErrnoAttributeTests(unittest.TestCase):
def
test_using_errorcode
(
self
):
def
test_using_errorcode
(
self
):
# Every key value in errno.errorcode should be on the module.
# Every key value in errno.errorcode should be on the module.
for
value
in
errno
.
errorcode
.
itervalues
():
for
value
in
errno
.
errorcode
.
itervalues
():
self
.
assert_
(
hasattr
(
errno
,
value
))
self
.
assert_
(
hasattr
(
errno
,
value
)
,
'no
%
s attr in errno'
%
value
)
class
ErrorcodeTests
(
unittest
.
TestCase
):
class
ErrorcodeTests
(
unittest
.
TestCase
):
...
@@ -56,7 +56,8 @@ class ErrorcodeTests(unittest.TestCase):
...
@@ -56,7 +56,8 @@ class ErrorcodeTests(unittest.TestCase):
def
test_attributes_in_errorcode
(
self
):
def
test_attributes_in_errorcode
(
self
):
for
attribute
in
errno
.
__dict__
.
iterkeys
():
for
attribute
in
errno
.
__dict__
.
iterkeys
():
if
attribute
.
isupper
():
if
attribute
.
isupper
():
self
.
assert_
(
getattr
(
errno
,
attribute
)
in
errno
.
errorcode
)
self
.
assert_
(
getattr
(
errno
,
attribute
)
in
errno
.
errorcode
,
'no
%
s attr in errno.errorcode'
%
attribute
)
def
test_main
():
def
test_main
():
...
...
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