From bb40390225b9723ea92851a6cc4a412f3c2fb669 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sat, 24 Jul 2021 16:15:05 +0100 Subject: [PATCH] Add identifiers to these test strings This makes it easier to work out which one fails when pytest reports a failure. Mostly useful when introducing failing tests, which I'm about to do. --- test/test_inference/test_signature.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_inference/test_signature.py b/test/test_inference/test_signature.py index a4df83c3..beb405ca 100644 --- a/test/test_inference/test_signature.py +++ b/test/test_inference/test_signature.py @@ -267,6 +267,7 @@ def test_pow_signature(Script, environment): @pytest.mark.parametrize( 'code, signature', [ [dedent(''' + # identifier:A import functools def f(x): pass @@ -278,6 +279,7 @@ def test_pow_signature(Script, environment): x(f)('''), 'f(x, /)'], [dedent(''' + # identifier:B import functools def f(x): pass