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
90bbbd11
Kaydet (Commit)
90bbbd11
authored
Ock 11, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#16919: test_crypt now works with unittest test discovery. Patch by Zachary Ware.
üst
d394455a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
test_crypt.py
Lib/test/test_crypt.py
+6
-5
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_crypt.py
Dosyayı görüntüle @
90bbbd11
from
test
import
support
from
test
import
support
import
unittest
import
unittest
crypt
=
support
.
import_module
(
'crypt'
)
def
setUpModule
():
# this import will raise unittest.SkipTest if _crypt doesn't exist,
# so it has to be done in setUpModule for test discovery to work
global
crypt
crypt
=
support
.
import_module
(
'crypt'
)
class
CryptTestCase
(
unittest
.
TestCase
):
class
CryptTestCase
(
unittest
.
TestCase
):
...
@@ -29,8 +33,5 @@ class CryptTestCase(unittest.TestCase):
...
@@ -29,8 +33,5 @@ class CryptTestCase(unittest.TestCase):
self
.
assertTrue
(
len
(
crypt
.
methods
)
>=
1
)
self
.
assertTrue
(
len
(
crypt
.
methods
)
>=
1
)
self
.
assertEqual
(
crypt
.
METHOD_CRYPT
,
crypt
.
methods
[
-
1
])
self
.
assertEqual
(
crypt
.
METHOD_CRYPT
,
crypt
.
methods
[
-
1
])
def
test_main
():
support
.
run_unittest
(
CryptTestCase
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
test_
main
()
unittest
.
main
()
Misc/NEWS
Dosyayı görüntüle @
90bbbd11
...
@@ -421,6 +421,9 @@ Library
...
@@ -421,6 +421,9 @@ Library
Tests
Tests
-----
-----
- Issue #16919: test_crypt now works with unittest test discovery.
Patch by Zachary Ware.
- Issue #16910: test_bytes, test_unicode, and test_userstring now work with
- Issue #16910: test_bytes, test_unicode, and test_userstring now work with
unittest test discovery. Patch by Zachary Ware.
unittest test discovery. Patch by Zachary Ware.
...
...
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