Skip to content

Commit 07e4292

Browse files
committed
Handle more markers
1 parent b8aaa1f commit 07e4292

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

utils/run-unasync-dsl.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,16 @@ def main(check=False):
124124
f"{output_dir}{file}",
125125
]
126126
)
127-
subprocess.check_call(
128-
[
129-
"sed",
130-
"-i.bak",
131-
"s/pytest.mark.anyio/pytest.mark.sync/",
132-
f"{output_dir}{file}",
133-
]
134-
)
135-
subprocess.check_call(["rm", f"{output_dir}{file}.bak"])
127+
for library in ["asyncio", "trio", "anyio"]:
128+
subprocess.check_call(
129+
[
130+
"sed",
131+
"-i.bak",
132+
f"s/pytest.mark.{library}/pytest.mark.sync/",
133+
f"{output_dir}{file}",
134+
]
135+
)
136+
subprocess.check_call(["rm", f"{output_dir}{file}.bak"])
136137

137138
if check:
138139
# make sure there are no differences between _sync and _sync_check

0 commit comments

Comments
 (0)