From 9937d7d8f536c32c2f38e3dc665f19e70ad0a537 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 7 Apr 2014 13:58:29 +0200 Subject: Issue #183: Really fix test command with Python 3.1. --- setuptools/py31compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setuptools') diff --git a/setuptools/py31compat.py b/setuptools/py31compat.py index 6e765582..c487ac04 100644 --- a/setuptools/py31compat.py +++ b/setuptools/py31compat.py @@ -44,9 +44,9 @@ unittest_main = unittest.main _PY31 = (3, 1) <= sys.version_info[:2] < (3, 2) if _PY31: - # on Python 3.1, translate testRunner==None to defaultTestLoader + # on Python 3.1, translate testRunner==None to TextTestRunner # for compatibility with Python 2.6, 2.7, and 3.2+ def unittest_main(*args, **kwargs): if 'testRunner' in kwargs and kwargs['testRunner'] is None: - kwargs['testRunner'] = unittest.defaultTestLoader + kwargs['testRunner'] = unittest.TextTestRunner return unittest.main(*args, **kwargs) -- cgit v1.2.1