summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-03-28 14:58:06 +0000
committerMichael Williamson <mike@zwobble.org>2014-03-28 14:58:06 +0000
commita1a133c7fd450ca600f8c7544f8281be517fdec2 (patch)
tree6b87d745762850b31455e8528a31d976d25a2f03
parent0ffe91235db4bdc132329599d8d434bc53d3b951 (diff)
Add Python 3.2 support
-rw-r--r--setup.py1
-rw-r--r--tests/jq_tests.py10
-rw-r--r--tox.ini2
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