summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2016-05-02 17:57:58 +0200
committerVictor Stinner <vstinner@redhat.com>2016-05-02 22:31:06 +0200
commita007c948ae16fafa26d1f23a97a4dff0c709079e (patch)
tree6f49e2bd29a538ccd1b64f22063840c400c2c52e /tox.ini
parentbdf664bbdf29e32a0e88cc971826029f418d5fff (diff)
downloadtrove-a007c948ae16fafa26d1f23a97a4dff0c709079e.tar.gz
Port more API unit tests to Python 3
* HTTP body type must be bytes on Python 3: * WsgiLimiterProxy, JSONDictSerializer: encode JSON as bytes * Use byte strings for literal HTTP bodies * Encode explicitly HTTP body to UTF-8 on Python 3 * Fix the prototype of FakeHttplibSocket.makefile(): only the first mode parameter is mandatory * Replace dict.keys().sort() with sorted(dict.keys()) * tox.ini: add the following unit tests to Python 3.4: - api/common/test_extensions.py - api/test_versions.py Partially implements: blueprint trove-python3 Change-Id: I175dc55424e9b5786819f08a584ac967d083db11
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index d46eca11..ca936309 100644
--- a/tox.ini
+++ b/tox.ini
@@ -31,6 +31,8 @@ commands =
# all unit tests will pass on Python 3.
commands =
python -bb -m testtools.run \
+ trove/tests/unittests/api/common/test_extensions.py \
+ trove/tests/unittests/api/common/test_limits.py \
trove/tests/unittests/common/test_common_extensions.py \
trove/tests/unittests/common/test_context.py \
trove/tests/unittests/common/test_crypto_utils.py \