test_ok1/testing/python
Ran Benita c3aa4647c7 python: unify code to generate ID from value
In the following

    @pytest.mark.parametrize(..., ids=[val])

the ID values are only allowed to be `str`, `float`, `int` or `bool`.

In the following

    @pytest.mark.parametrize(..., [val])

    @pytest.mark.parametrize(..., [pytest.param(..., id=val])

a different code path is used, which also allows `bytes`, `complex`,
`re.Pattern`, `Enum` and anything with a `__name__`.

In the interest of consistency, use the latter code path for all cases.
2022-02-12 19:22:37 +02:00
..
approx.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2022-01-31 22:20:16 +00:00
collect.py Rename pathlib hook parameters (#9363) 2021-12-03 13:14:09 +01:00
fixtures.py Remove deprecated `_fillfuncargs` function 2021-12-07 22:27:35 +02:00
integration.py Remove deprecated `_fillfuncargs` function 2021-12-07 22:27:35 +02:00
metafunc.py python: unify code to generate ID from value 2022-02-12 19:22:37 +02:00
raises.py [pre-commit.ci] pre-commit autoupdate (#8547) 2021-04-14 12:49:09 +03:00
show_fixtures_per_test.py add feature to view fixture source location in invocations with --fixtures-per-test option (#8626) 2021-05-14 14:38:55 +02:00