Skip to content

Commit ecc83e1

Browse files
Vizonexwebknjazbdraco
authored
fix coverage of isolated tests (#1314)
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
1 parent b9d13e6 commit ecc83e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES/1314.contrib.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added support for collecting code coverage of isolated multidict tests
2+
-- by :user:`Vizonex`.

tests/test_leaks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_leak(script: str) -> None:
2525
leak_test_script = pathlib.Path(__file__).parent.joinpath("isolated", script)
2626

2727
subprocess.run(
28-
[sys.executable, "-u", str(leak_test_script)],
28+
[sys.executable, "-u", "-m", "coverage", "run", str(leak_test_script)],
2929
stdout=subprocess.PIPE,
3030
stderr=subprocess.PIPE,
3131
check=True,

0 commit comments

Comments
 (0)