lbrycrd/qa/rpc-tests/test_framework
Wladimir J. van der Laan 30930e847e test: Explicitly set encoding to utf8 when opening text files
These are text files but their encoding does not depend on the locale.
Not all of them require utf8 but it is better to fix it at something
to remove potential unpredictability.

This is necessary on FreeBSD where no locale is set by default,
and apparently Python defaults not only the terminal encoding to the locale
but that of every text file. So without LOCALE environment it defaults text
file encoding to ASCII. This causes problems with e.g. `bitcoin.conf`.

Luckily the locale doesn't affect the default encoding for str.encode() and
bytes.decode() on Python 3, so this is the only change necessary.
2016-09-29 17:50:05 +02:00
..
__init__.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
authproxy.py tests: Add exception error message for JSONRPCException 2016-09-25 20:05:03 +02:00
bignum.py [qa] Switch to py3 2016-05-05 15:43:37 +02:00
blockstore.py [qa] blockstore: Switch to dumb dbm 2016-09-29 11:18:31 +02:00
blocktools.py Rename CTxinWitness -> CTxInWitness 2016-07-06 19:46:46 -04:00
comptool.py [qa] Switch to py3 2016-05-05 15:43:37 +02:00
coverage.py test: Explicitly set encoding to utf8 when opening text files 2016-09-29 17:50:05 +02:00
key.py Add p2p-fullblocktest.py 2015-08-21 15:31:37 -04:00
mininode.py Add support for compactblocks to mininode 2016-07-29 09:41:58 -04:00
netutil.py test: Explicitly set encoding to utf8 when opening text files 2016-09-29 17:50:05 +02:00
script.py Fix SIGHASH_SINGLE bug in test_framework SignatureHash 2016-09-06 00:50:23 +08:00
siphash.py Implement SipHash in Python 2016-07-29 09:41:58 -04:00
socks5.py [qa] Switch to py3 2016-05-05 15:43:37 +02:00
test_framework.py remove root test directory for RPC tests 2016-09-05 02:00:43 +03:00
util.py test: Explicitly set encoding to utf8 when opening text files 2016-09-29 17:50:05 +02:00