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.
This commit is contained in:
Peter Law
2021-07-24 16:15:05 +01:00
parent 0d15347210
commit bb40390225

View File

@@ -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