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 a457aad commit 986a2b1Copy full SHA for 986a2b1
codeflash/code_utils/code_utils.py
@@ -33,7 +33,7 @@ def custom_addopts() -> None:
33
# Backup original addopts
34
original_addopts = data.get("tool", {}).get("pytest", {}).get("ini_options", {}).get("addopts", "")
35
# nothing to do if no addopts present
36
- if original_addopts != "":
+ if original_addopts != "" and isinstance(original_addopts, list):
37
original_addopts = [x.strip() for x in original_addopts]
38
non_blacklist_plugin_args = re.sub(r"-n(?: +|=)\S+", "", " ".join(original_addopts)).split(" ")
39
non_blacklist_plugin_args = [x for x in non_blacklist_plugin_args if x != ""]
0 commit comments