Thanks to visit codestin.com Credit goes to github.com
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 965361c commit 24ca69eCopy full SHA for 24ca69e
1 file changed
IPython/testing/decorators.py
@@ -190,13 +190,13 @@ def onlyif_cmds_exist(*commands):
190
"""
191
Decorator to skip test when at least one of `commands` is not found.
192
193
+ assert (
194
+ os.environ.get("IPTEST_WORKING_DIR", None) is None
195
+ ), "iptest deprecated since IPython 8.0"
196
for cmd in commands:
197
reason = f"This test runs only if command '{cmd}' is installed"
198
if not shutil.which(cmd):
- if os.environ.get("IPTEST_WORKING_DIR", None) is not None:
- return skip(reason)
- else:
199
- import pytest
+ import pytest
200
201
- return pytest.mark.skip(reason=reason)
+ return pytest.mark.skip(reason=reason)
202
return null_deco
0 commit comments