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
8ba76d3c
Kaydet (Commit)
8ba76d3c
authored
Ara 16, 1996
tarafından
Roger E. Masse
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added test_errno to the test suite
üst
529fcfe3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
test_errno.py
Lib/test/test_errno.py
+44
-0
testall.py
Lib/test/testall.py
+1
-0
No files found.
Lib/test/test_errno.py
0 → 100755
Dosyayı görüntüle @
8ba76d3c
#! /usr/bin/env python
"""Test the errno module
Roger E. Masse
"""
try
:
import
errno
except
ImportError
:
raise
SystemExit
errors
=
[
'E2BIG'
,
'EACCES'
,
'EADDRINUSE'
,
'EADDRNOTAVAIL'
,
'EADV'
,
'EAFNOSUPPORT'
,
'EAGAIN'
,
'EALREADY'
,
'EBADE'
,
'EBADF'
,
'EBADFD'
,
'EBADMSG'
,
'EBADR'
,
'EBADRQC'
,
'EBADSLT'
,
'EBFONT'
,
'EBUSY'
,
'ECHILD'
,
'ECHRNG'
,
'ECOMM'
,
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DOUT'
,
'ETOOMANYREFS'
,
'ETXTBSY'
,
'EUNATCH'
,
'EUSERS'
,
'EWOULDBLOCK'
,
'EXDEV'
,
'EXFULL'
]
#
# This is is a wee bit bogus since the module pnly conditionally adds
# errno constants if they have been defined by errno.h However, this
# test seems to work on SGI, Sparc & intel Solaris, and linux.
#
for
error
in
errors
:
a
=
getattr
(
errno
,
error
)
# print a
Lib/test/testall.py
Dosyayı görüntüle @
8ba76d3c
...
@@ -22,6 +22,7 @@ tests = ['test_grammar',
...
@@ -22,6 +22,7 @@ tests = ['test_grammar',
'test_select'
,
'test_select'
,
'test_strftime'
,
'test_strftime'
,
'test_struct'
,
'test_struct'
,
'test_errno'
,
]
]
if
__name__
==
'__main__'
:
if
__name__
==
'__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