From 9244d119b9fad6c171d8112e45a1c888a21f3b5b Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Fri, 18 Aug 2023 16:46:19 +0100 Subject: [PATCH] Fix test tomllib --- tests/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 306995c..6e86940 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -183,5 +183,5 @@ def test_multiple_files(tmp_path, capsys): @pytest.mark.skipif(sys.version_info[:2] < (3, 11), reason="requires 3.11+") def test_parser_is_tomllib(): """Make sure Python >= 3.11 uses tomllib instead of tomli""" - module_name = inspect.getmodule(cli.loads).__name__ + module_name = inspect.getmodule(cli.tomllib.loads).__name__ assert module_name.startswith("tomllib")