@@ -35,8 +35,10 @@ def default(session):
3535 Python corresponding to the ``nox`` binary the ``PATH`` can
3636 run the tests.
3737 """
38- # Install all test dependencies, then install this package in-place.
39- session .install ('mock' , 'pytest' , 'pytest-cov' , * LOCAL_DEPS )
38+ # Install all test dependencies, then install local packages in-place.
39+ session .install ('mock' , 'pytest' , 'pytest-cov' )
40+ for local_dep in LOCAL_DEPS :
41+ session .install ('-e' , local_dep )
4042 session .install ('-e' , '.' )
4143
4244 # Run py.test against the unit tests.
@@ -111,11 +113,12 @@ def system(session, py):
111113 # Use pre-release gRPC for system tests.
112114 session .install ('--pre' , 'grpcio' )
113115
114- # Install all test dependencies, then install this package into the
115- # virtualenv's dist-packages.
116- session .install ('mock' , 'pytest' , * LOCAL_DEPS )
117- session .install ('../test_utils/' )
118- session .install ('.' )
116+ # Install all test dependencies, then install local packages in-place.
117+ session .install ('mock' , 'pytest' )
118+ for local_dep in LOCAL_DEPS :
119+ session .install ('-e' , local_dep )
120+ session .install ('-e' , '../test_utils/' )
121+ session .install ('-e' , '.' )
119122
120123 # Run py.test against the system tests.
121124 session .run ('py.test' , '-vvv' , 'tests/system' , * session .posargs )
0 commit comments