summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-10-10 05:48:54 -0700
committerSybren A. Stüvel <sybren@stuvel.eu>2018-10-23 23:13:20 +0200
commit7424c69bde598a145b7d3807e6c367ac4b922bff (patch)
tree21aed466def95e01b26625ba39dd5502196a83be /README.md
parent0eaeeadc0411cab8c9f6b1155c13729ce9c7714a (diff)
downloadrsa-git-7424c69bde598a145b7d3807e6c367ac4b922bff.tar.gz
Fix BytesWarning in tests
Shouldn't try to coerce bytes to a string. Instead, print the repr value (e.g. b'mybytestring'). When running tests with the Python `-b` option, fixes warnings of the form: .../python-rsa/tests/test_strings.py:34: BytesWarning: str() on a bytes instance print("\tMessage: %s" % message) .../python-rsa/tests/test_strings.py:37: BytesWarning: str() on a bytes instance print("\tEncrypted: %s" % encrypted) .../python-rsa/tests/test_strings.py:40: BytesWarning: str() on a bytes instance print("\tDecrypted: %s" % decrypted)
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions