Skip to content

Commit 8bb447f

Browse files
test: version test uses regex instead of hardcoded version
1 parent aac6e44 commit 8bb447f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_version_exits_0_and_prints_version(self):
6262
# argparse sends --version to stdout on some platforms, stderr on others
6363
output = result.stdout + result.stderr
6464
self.assertEqual(result.returncode, 0)
65-
self.assertIn("0.2.0", output)
65+
self.assertRegex(output, r"icontext \d+\.\d+\.\d+")
6666

6767
def test_no_args_exits_1_and_prints_help(self):
6868
result = run()

0 commit comments

Comments
 (0)