]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Allow unit test running from setup.py to work on Python 3.4
authorMenno Smits <menno@freshfoo.com>
Thu, 4 Sep 2014 12:21:32 +0000 (00:21 +1200)
committerMenno Smits <menno@freshfoo.com>
Thu, 4 Sep 2014 12:21:32 +0000 (00:21 +1200)
--HG--
branch : stable

setup.py
tox.ini

index edd6da035faa7adab56ce7302da7fd62e4d834fd..995a20d9339f1bd526302c40b4b4fe9588de5e30 100644 (file)
--- 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 4c82c0dc37544698010a2a49885e021cbccb2698..7ca5dc4a4132e386cd12711ebd415d8b963d40b0 100644 (file)
--- 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