We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ba053 commit 92c075aCopy full SHA for 92c075a
tests/conftest.py
@@ -20,7 +20,12 @@ def ruby(request: pytest.FixtureRequest) -> Optional[str]:
20
"""Fixture to get the ruby executable from the command line options"""
21
ruby = request.config.getoption("--ruby", None)
22
assert isinstance(ruby, (str, type(None))), f"Invalid ruby option: {ruby}"
23
- return ruby
+ if isinstance(ruby, str):
24
+ # we need to prepend the path with some garbage to make it not a valid
25
+ # path. otherwise pytest gets confused.
26
+ # https://github.com/pytest-dev/pytest/issues/13368
27
+ ruby = ruby.lstrip("$")
28
+ return ruby # type: ignore
29
30
31
##========================================================================================================
0 commit comments