Skip to content

Commit c7b277f

Browse files
committed
binascii: Add test which exposes to_bytes() problem in the module.
1 parent 20d9cdb commit c7b277f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

binascii/test_binascii.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from binascii import hexlify, unhexlify
1+
from binascii import *
22
import utime
33

44
data = b'zlutoucky kun upel dabelske ody'
@@ -12,6 +12,8 @@
1212
if data2 != data:
1313
raise Exception("Error")
1414

15+
a2b_base64(b"as==") == b'j'
16+
1517
start = utime.time()
1618
for x in range(100000):
1719
d = unhexlify(h)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy