Closed Sh3Rm4n closed 4 years ago
The test did not cover the case, when the byte can not be decoded via 'chr'. For the sake of simplicity, just use the 'decode' bytes method and ignore non-utf-8 characters, so no error will be thrown.
Arguably, these could also replaced with ''''.
tox won't run the python2 tests on my machine, because it fails installing mock which dropped it's python2 support in v4.0.
tox
mock
v4.0
Anyway, your PR passed the travis-ci tests, so it should be fine.
The test did not cover the case, when the byte can not be decoded via 'chr'. For the sake of simplicity, just use the 'decode' bytes method and ignore non-utf-8 characters, so no error will be thrown.
Arguably, these could also replaced with ''''.