From 934efed597641853ed61e0eabeba04bbd1b3e3d4 Mon Sep 17 00:00:00 2001 From: Menno Smits Date: Fri, 5 Sep 2014 00:21:32 +1200 Subject: [PATCH] Allow unit test running from setup.py to work on Python 3.4 --HG-- branch : stable --- setup.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.0