From 54d78ebe4662aecd6130e4fd34759af6ff18a243 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 25 Feb 2011 09:19:29 -0500 Subject: [PATCH] unittest2 for python <2.7 --- reqs.txt | 3 ++- test_convore.py | 5 +++-- tox.ini | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/reqs.txt b/reqs.txt index 8ff5846..31f7773 100644 --- a/reqs.txt +++ b/reqs.txt @@ -1 +1,2 @@ -requests=0.3.0 \ No newline at end of file +requests=0.3.0 +unittest2 \ No newline at end of file diff --git a/test_convore.py b/test_convore.py index 2812a1d..b966cc2 100644 --- a/test_convore.py +++ b/test_convore.py @@ -7,7 +7,7 @@ Convore test suite. Looks for authentication in 'CONVORE_NAME' and - 'CONVORE_PASS' environment variables. + 'CONVORE_PASS' environment variables for configuration. :copyright: (c) 2011 by Kenneth Reitz. :license: ISC, see LICENSE for more details. @@ -15,7 +15,8 @@ import os -import unittest + +import unittest2 as unittest import convore diff --git a/tox.ini b/tox.ini index 6068749..9c66a11 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,7 @@ commands=py.test --junitxml=junit-{envname}.xml deps = simplejson pytest + unittest2 requests==0.3.0 [testenv:pypy]