Skip to content

Commit

Permalink
help repro coverage bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed May 29, 2024
1 parent f383fe6 commit 2cf2519
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions flake8_async/visitors/visitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def visit_With(self, node: ast.With | ast.AsyncWith):
nursery_type = "taskgroup"
start_methods = ("create_task",)
else:
assert True
continue

body_call = node.body[0].value
Expand Down
10 changes: 3 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ deps =
hypothesmith >= 0.3.3
trio
commands =
pytest {posargs:-n auto}
coverage erase
coverage run -m pytest {posargs:-n auto}
coverage html

[testenv:docs]
description = Generate docs locally
Expand All @@ -34,12 +36,6 @@ commands =

# Settings for other tools
[pytest]
addopts =
--tb=native
--cov=flake8_async
--cov-branch
--cov-report=term-missing:skip-covered
--cov-fail-under=100
filterwarnings =
error

Expand Down

0 comments on commit 2cf2519

Please sign in to comment.