Skip to content

Commit

Permalink
TST: Ensure virtualenv before run_publish
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Jan 5, 2025
1 parent 3e7d1b1 commit 0d64c15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from asv import config, util

from .tools import HAS_VIRTUALENV, HAS_PYPY, WIN
from . import tools

dummy_values = (
Expand Down Expand Up @@ -71,7 +72,10 @@ def basic_conf(tmpdir, dummy_packages):
return generate_basic_conf(tmpdir)


@pytest.mark.skipif(tools.HAS_PYPY or (os.name == 'nt'), reason="Flaky on pypy and windows")
@pytest.mark.skipif(
HAS_PYPY or (not HAS_VIRTUALENV) or WIN,
reason="Flaky on pypy and windows, needs virtualenv",
)
def test_run_publish(capfd, basic_conf):
tmpdir, local, conf, machine_file = basic_conf
tmpdir = util.long_path(tmpdir)
Expand Down

0 comments on commit 0d64c15

Please sign in to comment.