Skip to content

Commit

Permalink
fix test for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Jan 22, 2023
1 parent f953612 commit 20bd208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/console/commands/test_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from typing import TYPE_CHECKING

import pytest
import tomli

from poetry.core.packages.dependency_group import MAIN_GROUP
from poetry.core.packages.dependency_group import DependencyGroup

from poetry.factory import Factory
from poetry.utils._compat import tomllib
from tests.helpers import MOCK_DEFAULT_GIT_REVISION
from tests.helpers import get_package

Expand Down Expand Up @@ -2159,7 +2159,7 @@ def test_show_outdated_missing_directory_dependency(
repo: TestRepository,
):
with (poetry.pyproject.file.path.parent / "poetry.lock").open(mode="rb") as f:
data = tomli.load(f)
data = tomllib.load(f)
poetry.locker.mock_lock_data(data)

poetry.package.add_dependency(
Expand Down

0 comments on commit 20bd208

Please sign in to comment.