Skip to content

Commit

Permalink
use tomli for python 3.10, otherwise tomllib
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 7, 2024
1 parent 21fabae commit 8a4f953
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
"""Test the babelizer command-line interface"""

import tomllib
import sys

if sys.version_info >= (3, 11): # pragma: no cover (PY11+)
import tomllib
else: # pragma: no cover (<PY311)
import tomli as tomllib

from click.testing import CliRunner

Expand Down

0 comments on commit 8a4f953

Please sign in to comment.