Skip to content

Commit c10981f

Browse files
committed
account for -n= situation
1 parent 5c53d92 commit c10981f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codeflash/code_utils/code_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def custom_addopts() -> None:
3333
original_addopts = data.get("tool", {}).get("pytest", {}).get("ini_options", {}).get("addopts", "")
3434
# nothing to do if no addopts present
3535
if original_addopts != "":
36-
non_blacklist_plugin_args = re.sub(r"-n +\S+", "", " ".join(original_addopts)).split(" ")
36+
non_blacklist_plugin_args = re.sub(r"-n(?: +|=)\S+", "", " ".join(original_addopts)).split(" ")
3737
if non_blacklist_plugin_args != original_addopts:
3838
data["tool"]["pytest"]["ini_options"]["addopts"] = non_blacklist_plugin_args
3939
# Write modified file

codeflash/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These version placeholders will be replaced by poetry-dynamic-versioning during `poetry build`.
2-
__version__ = "0.12.3.post54.dev0+dcf92867"
3-
__version_tuple__ = (0, 12, 3, "post54", "dev0", "dcf92867")
2+
__version__ = "0.12.3"
3+
__version_tuple__ = (0, 12, 3)

0 commit comments

Comments
 (0)