From 6c6e2e168eed329e3f0ca5089f8f5ad283dfd74a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 17 Jul 2024 15:14:41 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B9=20Feed=20the=20hobgoblins=20(delin?= =?UTF-8?q?t).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4473. --- pkg_resources/tests/test_pkg_resources.py | 2 +- setuptools/command/editable_wheel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg_resources/tests/test_pkg_resources.py b/pkg_resources/tests/test_pkg_resources.py index 4c4c68dfff..424d5ac44b 100644 --- a/pkg_resources/tests/test_pkg_resources.py +++ b/pkg_resources/tests/test_pkg_resources.py @@ -279,7 +279,7 @@ def test_distribution_version_missing( assert expected_text in msg # Check that the message portion contains the path. assert metadata_path in msg, str((metadata_path, msg)) - assert type(dist) == expected_dist_type + assert type(dist) is expected_dist_type @pytest.mark.xfail( diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wheel.py index f6f0657e8c..13c450cb49 100644 --- a/setuptools/command/editable_wheel.py +++ b/setuptools/command/editable_wheel.py @@ -299,7 +299,7 @@ def _run_build_subcommands(self) -> None: build = self.get_finalized_command("build") for name in build.get_sub_commands(): cmd = self.get_finalized_command(name) - if name == "build_py" and type(cmd) != build_py_cls: + if name == "build_py" and type(cmd) is not build_py_cls: self._safely_run(name) else: self.run_command(name)