Skip to content

Commit 20bd208

Browse files
committed
fix test for Python 3.11
1 parent f953612 commit 20bd208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/console/commands/test_show.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from typing import TYPE_CHECKING
44

55
import pytest
6-
import tomli
76

87
from poetry.core.packages.dependency_group import MAIN_GROUP
98
from poetry.core.packages.dependency_group import DependencyGroup
109

1110
from poetry.factory import Factory
11+
from poetry.utils._compat import tomllib
1212
from tests.helpers import MOCK_DEFAULT_GIT_REVISION
1313
from tests.helpers import get_package
1414

@@ -2159,7 +2159,7 @@ def test_show_outdated_missing_directory_dependency(
21592159
repo: TestRepository,
21602160
):
21612161
with (poetry.pyproject.file.path.parent / "poetry.lock").open(mode="rb") as f:
2162-
data = tomli.load(f)
2162+
data = tomllib.load(f)
21632163
poetry.locker.mock_lock_data(data)
21642164

21652165
poetry.package.add_dependency(

0 commit comments

Comments
 (0)