Skip to content

Commit

Permalink
Issue pypa#183: Really fix test command with Python 3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arfrever committed Apr 7, 2014
1 parent 6801265 commit 9937d7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.txt
Expand Up @@ -2,6 +2,12 @@
CHANGES
=======

-----
3.4.3
-----

* Issue #183: Really fix test command with Python 3.1.

-----
3.4.2
-----
Expand Down
4 changes: 2 additions & 2 deletions setuptools/py31compat.py
Expand Up @@ -44,9 +44,9 @@ def __exit__(self, exctype, excvalue, exctrace):

_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)

0 comments on commit 9937d7d

Please sign in to comment.