From af00973f82337a24aeececa2244ea3fc532db6d2 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Tue, 10 Apr 2012 10:58:14 +0600 Subject: Test running improvements: tests can be run under python 2.6 (by using optional unittest2), tox config for testing under different pythons, explicit python version requirements (factory_boy works with python 2.6 and 2.7); ./setup.py test returns proper error code in case of test failure. --- tests/test_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_utils.py') diff --git a/tests/test_utils.py b/tests/test_utils.py index 543a6c0..c3047d3 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -21,7 +21,10 @@ # THE SOFTWARE. -import unittest +try: + import unittest2 as unittest +except ImportError: + import unittest from factory import utils -- cgit v1.2.3