From a104e9d46796769f068cd1e7c5e2d17a0e546098 Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Tue, 24 Sep 2024 22:07:03 +0300 Subject: [PATCH] Fix flake8 --- tests/test_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_common.py b/tests/test_common.py index 3d6e85b..685b564 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -54,9 +54,9 @@ def is_negative(val): assert env.int("AN_INTEGER", validate=is_positive) == 982 assert env.int("AN_INTEGER", validate=(is_positive, is_positive)) == 982 - with pytest.raises(Exception): + with pytest.raises(Exception, match="AN_INTEGER"): env.int("AN_INTEGER", validate=is_negative) - with pytest.raises(Exception): + with pytest.raises(Exception, match="AN_INTEGER"): env.int("AN_INTEGER", validate=(is_positive, is_negative))