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 265eb14 commit 6ee0143Copy full SHA for 6ee0143
conftest.py
@@ -28,13 +28,14 @@
28
USING_ZSH = "zsh" in os.getenv("SHELL", "")
29
30
31
-@pytest.mark.skipif(not USING_ZSH, reason="Using ZSH")
32
@pytest.fixture(autouse=USING_ZSH, scope="session")
33
-def zshrc(user_path: pathlib.Path) -> pathlib.Path:
+def zshrc(user_path: pathlib.Path) -> t.Optional[pathlib.Path]:
34
"""Quiets ZSH default message.
35
36
Needs a startup file .zshenv, .zprofile, .zshrc, .zlogin.
37
"""
+ if not USING_ZSH:
38
+ return None
39
p = user_path / ".zshrc"
40
p.touch()
41
return p
0 commit comments