From 86f7051feee1473a30df564bc0634f5bfa4bba4c Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 29 May 2025 16:00:39 +0900 Subject: Add another rare test case --- README.md | 2 +- tst/test_help.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d5d710..1967b9d 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ on any Python package, it is safe to be tested in-tree: Issues should be reported to [chung@loa.loang.net][loang mailing list]. The mailing list also welcomes patches. Please maintain -the full branch [coverage] and keep the [hobgoblins][flake8] happy: +a full branch [coverage] and keep the [hobgoblins][flake8] happy: PYTHONPATH=src coverage run coverage report diff --git a/tst/test_help.py b/tst/test_help.py index 0889961..3e5ce87 100644 --- a/tst/test_help.py +++ b/tst/test_help.py @@ -57,6 +57,7 @@ def test_long_option(help_string, short, long, metavar): assert f'{short} {metavar}, {long}={metavar}' in help_string +@example('a.example:b', None) # string is unlikely to match .*:\D+ @example('a.example:98', None) # string is unlikely to match .*:\d+ @given(...) def test_netloc(string: str, default_port: int | None): -- cgit 1.4.1