diff --git a/poetry.lock b/poetry.lock index 2ac4a9009..9d9b7b810 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.3.4 and should not be changed by hand. [[package]] name = "attrs" @@ -442,7 +442,7 @@ files = [ [package.dependencies] attrs = ">=22.2.0" -jsonschema-specifications = ">=2023.03.6" +jsonschema-specifications = ">=2023.3.6" referencing = ">=0.28.4" rpds-py = ">=0.25.0" @@ -1342,4 +1342,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" python-versions = ">=3.10, <4.0" -content-hash = "16d3322c0357073a5b1c4cfd967e47f14953962a34eadcd5561afc96afe53179" +content-hash = "7930401643bf28f5781f0168a831ecc466782ecc83f8310d7be7b80dc486795a" diff --git a/pyproject.toml b/pyproject.toml index 991785ea8..d1c3abaa9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ pre-commit = ">=2.15.0" vendoring = ">=1.0" [tool.poetry.group.test.dependencies] -pytest = ">=7.1.2" +pytest = ">=9.0" pytest-cov = ">=3.0.0" pytest-mock = ">=3.10" build = ">=0.10.0" @@ -132,6 +132,9 @@ module = [ ] ignore_missing_imports = true +[tool.pytest] +strict = true + [tool.vendoring] destination = "src/poetry/core/_vendor/" requirements = "src/poetry/core/_vendor/vendor.txt" diff --git a/tests/constraints/version/test_version_range.py b/tests/constraints/version/test_version_range.py index 8e86752fc..e61bc3410 100644 --- a/tests/constraints/version/test_version_range.py +++ b/tests/constraints/version/test_version_range.py @@ -86,7 +86,6 @@ def v300b1() -> Version: ("<=3.0.0", "3.0.0+local.1", True), (">=3.0.0", "3.0.0", True), (">=3.0.0", "3.0.0+local.1", True), - (">=3.0.0", "3.0.0", True), (">=3.0.0", "3.0.0-1", True), ("<=3.0.0+local.1", "3.0.0", True), ("<=3.0.0+local.1", "3.0.0+local.1", True), diff --git a/tests/masonry/builders/test_builder.py b/tests/masonry/builders/test_builder.py index 10d75ac41..209181b32 100644 --- a/tests/masonry/builders/test_builder.py +++ b/tests/masonry/builders/test_builder.py @@ -1,7 +1,5 @@ from __future__ import annotations -import sys - from email.parser import Parser from pathlib import Path from typing import TYPE_CHECKING @@ -63,10 +61,6 @@ def test_builder_find_excluded_files_dirs(mocker: MockerFixture) -> None: } -@pytest.mark.xfail( - sys.platform == "win32", - reason="Windows is case insensitive for the most part", -) def test_builder_find_case_sensitive_excluded_files(mocker: MockerFixture) -> None: mocker.patch("poetry.core.vcs.git.Git.get_ignored_files", return_value=[]) @@ -87,10 +81,6 @@ def test_builder_find_case_sensitive_excluded_files(mocker: MockerFixture) -> No } -@pytest.mark.xfail( - sys.platform == "win32", - reason="Windows is case insensitive for the most part", -) def test_builder_find_invalid_case_sensitive_excluded_files( mocker: MockerFixture, ) -> None: diff --git a/tests/version/test_markers.py b/tests/version/test_markers.py index 55890f768..5f642e949 100644 --- a/tests/version/test_markers.py +++ b/tests/version/test_markers.py @@ -187,7 +187,7 @@ def test_single_marker_intersect() -> None: ('python_version >= "3.6"', 'python_version < "3.6"'), ('python_version == "3.6"', 'python_version == "3.7"'), ('python_version > "3.6"', 'python_version <= "3.6"'), - ('python_version >= "3.6"', 'python_version < "3.6"'), + ('python_version > "3.6"', 'python_version < "3.6"'), ('python_version > "3.6"', 'python_version < "3.7"'), ], ) @@ -931,14 +931,6 @@ def test_multi_marker_union_multi_is_multi( ), 'python_version >= "3.8" and python_version < "3.10"', ), - ( - 'python_version == "3.8" or python_version == "3.9"', - ( - 'python_version >= "3.8" and python_version <= "3.9"' - ' and sys_platform == "linux"' - ), - 'python_version >= "3.8" and python_version < "3.10"', - ), ( 'python_version == "3.8" or python_version == "3.9"', (