From a1a133c7fd450ca600f8c7544f8281be517fdec2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 28 Mar 2014 14:58:06 +0000 Subject: Add Python 3.2 support --- setup.py | 1 + tests/jq_tests.py | 10 ++++++---- tox.ini | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 53ab7a2..3207948 100644 --- a/setup.py +++ b/setup.py @@ -70,6 +70,7 @@ setup( 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], diff --git a/tests/jq_tests.py b/tests/jq_tests.py index c7ffd01..c0f4391 100644 --- a/tests/jq_tests.py +++ b/tests/jq_tests.py @@ -1,5 +1,7 @@ # coding=utf8 +from __future__ import unicode_literals + from nose.tools import istest, assert_equal, assert_raises from jq import jq @@ -118,14 +120,14 @@ def value_error_is_raised_if_input_is_not_valid_json(): @istest def unicode_strings_can_be_used_as_input(): assert_equal( - u"‽", - jq(".").transform(text=u'"‽"') + "‽", + jq(".").transform(text='"‽"') ) @istest def unicode_strings_can_be_used_as_programs(): assert_equal( - u"Dragon‽", - jq(u'.+"‽"').transform(text=u'"Dragon"') + "Dragon‽", + jq('.+"‽"').transform(text='"Dragon"') ) diff --git a/tox.ini b/tox.ini index 5096d72..000d8c0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py26,py27,py33,py34,pypy +envlist = py26,py27,py32,py33,py34,pypy [testenv] changedir = {envtmpdir} deps=-r{toxinidir}/test-requirements.txt -- cgit v1.2.3