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 92c075a commit c83ae08Copy full SHA for c83ae08
tests/conftest.py
@@ -20,12 +20,7 @@ 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
- 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
+ return ruby
29
30
31
##========================================================================================================
0 commit comments