Skip to content

Commit

Permalink
test: increase coverage slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Apr 25, 2024
1 parent 7d075b4 commit 44e7b2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions metacov.ini
Expand Up @@ -73,6 +73,9 @@ exclude_lines =
# longer tested.
pragma: obscure

# Lines that will never be called, but satisfy the type checker
pragma: never called

partial_branches =
pragma: part covered
# A for-loop that always hits its break statement
Expand Down
5 changes: 3 additions & 2 deletions tests/test_plugins.py
Expand Up @@ -33,7 +33,7 @@
class NullConfig(TPluginConfig):
"""A plugin configure thing when we don't really need one."""
def get_plugin_options(self, plugin: str) -> TConfigSectionOut:
return {}
return {} # pragma: never called


class FakeConfig(TPluginConfig):
Expand Down Expand Up @@ -284,7 +284,8 @@ def test_exception_if_plugins_on_pytracer(self) -> None:

if testenv.PY_TRACER:
core = "PyTracer"
elif testenv.SYS_MON:
else:
assert testenv.SYS_MON
core = "SysMonitor"

expected_warnings = [
Expand Down

0 comments on commit 44e7b2b

Please sign in to comment.