Skip to content

Commit 850ad0a

Browse files
committed
Revert to unittest2py3k for Python 3.2 and 3.3
1 parent 0e968f1 commit 850ad0a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ zip_safe = False
2626
py_modules = odooly
2727
tests_require =
2828
mock
29-
unittest2==0.6.0
29+
unittest2
3030
test_suite = unittest2.collector
3131

3232

setup.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
#!/usr/bin/env python
2+
import sys
3+
24
from setuptools import setup
35

4-
setup()
6+
if (3, 0) < sys.version_info < (3, 4):
7+
# Package 'unittest2' does not discover tests on Python 3.2 and 3.3
8+
setup(
9+
tests_require=['mock', 'unittest2py3k'],
10+
test_suite='unittest2.collector.collector',
11+
)
12+
else:
13+
setup()

0 commit comments

Comments
 (0)