Skip to content

Commit

Permalink
Revert to unittest2py3k for Python 3.2 and 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Jan 2, 2019
1 parent 0e968f1 commit 850ad0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ zip_safe = False
py_modules = odooly
tests_require =
mock
unittest2==0.6.0
unittest2
test_suite = unittest2.collector


Expand Down
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env python
import sys

from setuptools import setup

setup()
if (3, 0) < sys.version_info < (3, 4):
# Package 'unittest2' does not discover tests on Python 3.2 and 3.3
setup(
tests_require=['mock', 'unittest2py3k'],
test_suite='unittest2.collector.collector',
)
else:
setup()

0 comments on commit 850ad0a

Please sign in to comment.