@@ -35,12 +35,20 @@ def default(session):
3535 run the tests.
3636 """
3737 # Install all test dependencies, then install this package in-place.
38- session .install ('mock' , 'pytest' , 'pytest-cov' , 'ipython' , * LOCAL_DEPS )
38+ session .install ('mock' , 'pytest' , 'pytest-cov' , * LOCAL_DEPS )
39+
40+ # Pandas does not support Python 3.4
3941 if session .interpreter == 'python3.4' :
4042 session .install ('-e' , '.' )
4143 else :
4244 session .install ('-e' , '.[pandas]' )
4345
46+ # IPython does not support Python 2 after version 5.x
47+ if session .interpreter == 'python2.7' :
48+ session .install ('ipython==5.5' )
49+ else :
50+ session .install ('ipython' )
51+
4452 # Run py.test against the unit tests.
4553 session .run (
4654 'py.test' ,
@@ -87,13 +95,19 @@ def system(session, py):
8795
8896 # Install all test dependencies, then install this package into the
8997 # virtualenv's dist-packages.
90- session .install ('mock' , 'pytest' , 'ipython' , * LOCAL_DEPS )
98+ session .install ('mock' , 'pytest' , * LOCAL_DEPS )
9199 session .install (
92100 os .path .join ('..' , 'storage' ),
93101 os .path .join ('..' , 'test_utils' ),
94102 )
95103 session .install ('-e' , '.[pandas]' )
96104
105+ # IPython does not support Python 2 after version 5.x
106+ if session .interpreter == 'python2.7' :
107+ session .install ('ipython==5.5' )
108+ else :
109+ session .install ('ipython' )
110+
97111 # Run py.test against the system tests.
98112 session .run (
99113 'py.test' ,
0 commit comments