Skip to content

Commit

Permalink
Potential fix for #238
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Jul 28, 2019
1 parent 7c8d990 commit 2f0efea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ ds =
pyscaffoldext-dsproject
# Add here test dependencies (used by tox and pytest-runner)
testing =
ipython
sphinx # required for system tests
flake8 # required for system tests
pytest
Expand Down
6 changes: 5 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import os
import shlex
import stat
import sys
from collections import namedtuple
from contextlib import contextmanager
from importlib import reload
Expand All @@ -14,6 +15,8 @@

import pytest

from pytest_virtualenv import VirtualEnv

from .helpers import uniqstr


Expand Down Expand Up @@ -44,8 +47,9 @@ def command_exception(content):


@pytest.fixture
def venv(virtualenv):
def venv():
"""Create a virtualenv for each test"""
virtualenv = VirtualEnv(python=sys.executable)
return virtualenv


Expand Down

0 comments on commit 2f0efea

Please sign in to comment.