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
dff46faa
Kaydet (Commit)
dff46faa
authored
Şub 20, 2012
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix use of assertRaises following c760bd844222 (spotted by Alex Gaynor).
üst
c229e6e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
test_base64.py
Lib/test/test_base64.py
+2
-0
No files found.
Lib/test/test_base64.py
Dosyayı görüntüle @
dff46faa
...
...
@@ -166,6 +166,7 @@ class BaseXYTestCase(unittest.TestCase):
self
.
assertEqual
(
base64
.
b64decode
(
bstr
.
decode
(
'ascii'
)),
res
)
with
self
.
assertRaises
(
binascii
.
Error
):
base64
.
b64decode
(
bstr
,
validate
=
True
)
with
self
.
assertRaises
(
binascii
.
Error
):
base64
.
b64decode
(
bstr
.
decode
(
'ascii'
),
validate
=
True
)
def
test_b32encode
(
self
):
...
...
@@ -236,6 +237,7 @@ class BaseXYTestCase(unittest.TestCase):
for
data
in
[
b
'abc'
,
b
'ABCDEF=='
]:
with
self
.
assertRaises
(
binascii
.
Error
):
base64
.
b32decode
(
data
)
with
self
.
assertRaises
(
binascii
.
Error
):
base64
.
b32decode
(
data
.
decode
(
'ascii'
))
def
test_b16encode
(
self
):
...
...
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