Skip to content

Commit

Permalink
Fix test tomllib
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Aug 18, 2023
1 parent b6cdce3 commit 9244d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 9244d11

Please sign in to comment.