@@ -30,6 +30,9 @@ def unit_tests(session, python_version):
3030 # Run unit tests against all supported versions of Python.
3131 session .interpreter = 'python{}' .format (python_version )
3232
33+ # Set the virtualenv dirname.
34+ session .virtualenv_dirname = 'unit-' + python_version
35+
3336 # Install all test dependencies, then install this package in-place.
3437 session .install ('mock' , 'pytest' , 'pytest-cov' , * LOCAL_DEPS )
3538 session .install ('-e' , '.' )
@@ -66,6 +69,10 @@ def lint(session):
6669def lint_setup_py (session ):
6770 """Verify that setup.py is valid (including RST check)."""
6871 session .interpreter = 'python3.6'
72+
73+ # Set the virtualenv dirname.
74+ session .virtualenv_dirname = 'setup'
75+
6976 session .install ('docutils' , 'Pygments' )
7077 session .run (
7178 'python' , 'setup.py' , 'check' , '--restructuredtext' , '--strict' )
@@ -83,6 +90,9 @@ def system_tests(session, python_version):
8390 # Run the system tests against latest Python 2 and Python 3 only.
8491 session .interpreter = 'python{}' .format (python_version )
8592
93+ # Set the virtualenv dirname.
94+ session .virtualenv_dirname = 'sys-' + python_version
95+
8696 # Install all test dependencies, then install this package into the
8797 # virtualenv's dist-packages.
8898 session .install ('mock' , 'pytest' , * LOCAL_DEPS )
0 commit comments