Kevin McCarthy
8274b660c6
fix flake8 failure
2016-10-02 12:08:02 -10:00
Gregory Roussac
a8f1a65d62
test serializers.compat.convert_to_bytes()
2016-10-02 12:07:37 -10:00
Aliaksandr Buhayeu
9daf301deb
Fix for Serialization errors with JSON adapter
...
This patch aims to fix the issue#222,
where json data in request can not be serialized
because of TypeError in py3
2016-05-01 14:22:17 -10:00
Greg Ward
fe7d193d1a
Add several more test cases for issue #163 .
2015-07-16 14:49:48 -04:00
Greg Ward
09b7ccf561
Ensure that request bodies are always bytes, not text ( fixes #163 ).
...
It shouldn't matter whether the request body comes from a file or a
string, or whether it is passed to the Request constructor or assigned
later. It should always be stored internally as bytes.
2015-07-16 14:36:26 -04:00
Thomas Grainger
41949f7dc6
use conditional requirements for backport libraries Fixes #147
2015-07-02 09:34:27 +01:00
Ivan Malison
916e7839e5
Actually use pytest.raises in test.
2014-10-07 13:45:09 -07:00
Ivan Malison
99692a92d2
Handle unicode error in json serialize properly.
2014-10-07 13:21:47 -07:00
Kevin McCarthy
83ff73792e
forgot to check in tests
2014-05-10 11:52:36 -10:00