diff --git a/tests/unit/misc/test_crashdialog.py b/tests/unit/misc/test_crashdialog.py index ccaf6dac5..a34192b88 100644 --- a/tests/unit/misc/test_crashdialog.py +++ b/tests/unit/misc/test_crashdialog.py @@ -86,7 +86,7 @@ def test_parse_fatal_stacktrace(text, typ, func): ), ({'LANGUAGE': 'foo', 'LANG': 'en_US.UTF-8'}, "LANG = en_US.UTF-8"), ({'FOO': 'bar', 'QUTE_BLAH': '1'}, "QUTE_BLAH = 1"), -], ids=lambda e: e[1]) +]) def test_get_environment_vars(monkeypatch, env, expected): """Test for crashdialog._get_environment_vars.""" for key in os.environ.copy(): diff --git a/tests/unit/misc/test_split.py b/tests/unit/misc/test_split.py index fa26e94e8..d6d388f8b 100644 --- a/tests/unit/misc/test_split.py +++ b/tests/unit/misc/test_split.py @@ -131,7 +131,7 @@ class TestSplit: """Test split.""" @pytest.fixture(params=list(_parse_split_test_data_str()), - ids=lambda e: e.input) + ids=lambda e: e.inp) def split_test_case(self, request): """Fixture to automatically parametrize all depending tests.