diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 586324be37..f7a39c8ca6 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -719,7 +719,7 @@ def test_setup_requires_override_nspkg(self, use_setup_cfg): # running the setup.py at all is sufficient run_setup(test_setup_py, ['--name']) except pkg_resources.VersionConflict: - self.fail( + pytest.fail( 'Installing setup.py requirements caused a VersionConflict' )