mattsb42-aws
56e9bf45fd
run string tests with both ascii and utf-8 decoding
2018-11-02 13:18:38 -07:00
mattsb42-aws
63a267f628
apply autoformat
2018-11-02 13:14:40 -07:00
Erik Cederstrand
9559dde75d
Support string input streams ( #22 )
...
* Support string buffer input as well as bytes. Fixes #21
* Fix type annotation
* Reduce code duplication
* Add missing import
* Just encode the string - no need to encode chars one at a time
* Add type hint for _data_buffer in attempt to fix mypy test
* Fix mypy test for py3
* Ignore mypy false positives on py2
* Fix tests on py2?
2018-11-02 13:04:50 -07:00
mattsb42-aws
e6ca4fdb70
fix copy-paste naming
2018-07-16 15:19:43 -07:00
Matt Bullock
e25539c3d7
Merge pull request #6 from mattsb42-aws/mypy
...
Fix issues identified by mypy.
2018-06-11 17:45:16 -07:00
mattsb42-aws
dc40c3f12c
adding negative, none -1 general single-shot test case
2018-06-11 17:35:23 -07:00
mattsb42-aws
17ea873212
blacken
2018-06-07 12:33:11 -07:00
mattsb42-aws
6739e2da5f
read() should accept and pass on only ints: we will still accept None but will normalize it and pass it on. Also, read(0) should actually return 0 bytes
2018-06-05 16:42:10 -07:00
mattsb42-aws
9ca0871976
clean up import formatting in test
2018-05-16 09:02:43 -07:00
mattsb42-aws
976fd1e79e
* add read sizes of 6 and 7 to build_test_cases
...
* add partial encode tests
2018-03-26 19:13:52 -07:00
mattsb42-aws
b9febd88b9
adding tests
2018-03-12 20:12:23 -07:00