From f83b9b8b4143217cd65337b6aa56b07f98a5e930 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 19 Jun 2011 12:41:05 -0400 Subject: [PATCH] basic tox --- test_omnijson.py | 1 - tox.ini | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tox.ini diff --git a/test_omnijson.py b/test_omnijson.py index db4ed76..9eaaca3 100644 --- a/test_omnijson.py +++ b/test_omnijson.py @@ -17,7 +17,6 @@ class OmniSuite(unittest.TestCase): a = json.loads(self._good_json_string) self.assertEqual(a, self._good_json_result) - def test_dump_json(self): a = json.dumps(self._good_json_result) self.assertEqual(a, self._good_json_string) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..764ee3c --- /dev/null +++ b/tox.ini @@ -0,0 +1,17 @@ +[tox] +envlist = py25,py26,py27,py3 + +[testenv] +commands=py.test --junitxml=junit-{envname}.xml +deps = pytest + +[testenv:py25] +simplejson = pytest simplejson + +[testenv:pypy] +basepython=/usr/bin/pypy-c +simplejson = pytest simplejson + +[testenv:py3] +basepython=/usr/bin/python3 +simplejson = pytest \ No newline at end of file