Skip to content

Commit

Permalink
Merge 3c1942f into 1cf5b19
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Sep 16, 2018
2 parents 1cf5b19 + 3c1942f commit 82b2406
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/conftest.py
Expand Up @@ -126,11 +126,12 @@ def __repr__(self):
return "<%s: %s>" % (self.__class__.__name__, os.path.basename(self._path))


@pytest.fixture()
def venv_path(tmpdir, environment):
@pytest.fixture(scope='session')
def venv_path(tmpdir_factory, environment):
if environment.version_info.major < 3:
pytest.skip("python -m venv does not exist in Python 2")

tmpdir = tmpdir_factory.mktemp('venv_path')
dirname = os.path.join(tmpdir.dirname, 'venv')

# We cannot use the Python from tox because tox creates virtualenvs and
Expand Down

0 comments on commit 82b2406

Please sign in to comment.