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)