From 269611e0b43d374643a4b110c55aaee57d71d91a Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 28 Feb 2022 19:35:36 -0500 Subject: [PATCH] prevent import-time side-effects from setuptools bundled importlib-metadata --- testing/test_doctest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_doctest.py b/testing/test_doctest.py index 67b8ccdb7e..1b4809240c 100644 --- a/testing/test_doctest.py +++ b/testing/test_doctest.py @@ -803,8 +803,8 @@ def test_valid_setup_py(self, pytester: Pytester): """ p = pytester.makepyfile( setup=""" - from setuptools import setup, find_packages if __name__ == '__main__': + from setuptools import setup, find_packages setup(name='sample', version='0.0', description='description',