diff --git a/docs/concepts/key_concepts.md b/docs/concepts/key-concepts.md similarity index 100% rename from docs/concepts/key_concepts.md rename to docs/concepts/key-concepts.md diff --git a/docs/index.rst b/docs/index.rst index 6c14f269..1c89426a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,7 +6,6 @@ :parser: myst_parser.sphinx_ .. toctree:: - :maxdepth: 2 :caption: Key Concepts :glob: :hidden: diff --git a/pytest-embedded/pytest_embedded/plugin.py b/pytest-embedded/pytest_embedded/plugin.py index 204d4c2e..1a977555 100644 --- a/pytest-embedded/pytest_embedded/plugin.py +++ b/pytest-embedded/pytest_embedded/plugin.py @@ -1,3 +1,4 @@ +import argparse import contextlib import dbm import functools @@ -9,7 +10,6 @@ import os import shelve import subprocess -import sys import tempfile import typing as t import xml.dom.minidom @@ -295,8 +295,7 @@ def _gte_one_int(v) -> int: if v >= 1: return v - print('"count" value should be a integer greater or equal to 1') - sys.exit(1) + raise argparse.ArgumentTypeError('should be a integer greater or equal to 1') def _str_bool(v: str) -> t.Union[bool, str, None]: