From: Menno Smits Date: Thu, 4 Sep 2014 12:21:32 +0000 (+1200) Subject: Allow unit test running from setup.py to work on Python 3.4 X-Git-Tag: 0.12~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=934efed597641853ed61e0eabeba04bbd1b3e3d4;p=imapclient.git Allow unit test running from setup.py to work on Python 3.4 --HG-- branch : stable --- diff --git a/setup.py b/setup.py index edd6da0..995a20d 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ class TestDiscoverCommand(TestCommand): def run_tests(self): from imapclient.test.util import unittest # this will import unittest2 - unittest.main(argv=['', 'discover']) + unittest.main(module=None, argv=['', 'discover']) setup(name='IMAPClient', diff --git a/tox.ini b/tox.ini index 4c82c0d..7ca5dc4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py26,py27,py32,py33 +envlist=py26,py27,py32,py33,py34 [testenv] commands=python setup.py test