Skip to content

Commit 2e58a9a

Browse files
authored
Merge pull request #290 from espressif/fix/error_message_of_int_ge_1
2 parents 7206ed1 + 0b34f50 commit 2e58a9a

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed
File renamed without changes.

docs/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
:parser: myst_parser.sphinx_
77

88
.. toctree::
9-
:maxdepth: 2
109
:caption: Key Concepts
1110
:glob:
1211
:hidden:

pytest-embedded/pytest_embedded/plugin.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import argparse
12
import contextlib
23
import dbm
34
import functools
@@ -9,7 +10,6 @@
910
import os
1011
import shelve
1112
import subprocess
12-
import sys
1313
import tempfile
1414
import typing as t
1515
import xml.dom.minidom
@@ -295,8 +295,7 @@ def _gte_one_int(v) -> int:
295295
if v >= 1:
296296
return v
297297

298-
print('"count" value should be a integer greater or equal to 1')
299-
sys.exit(1)
298+
raise argparse.ArgumentTypeError('should be a integer greater or equal to 1')
300299

301300

302301
def _str_bool(v: str) -> t.Union[bool, str, None]:

0 commit comments

Comments
 (0)