Merge pull request #9719 from asottile/fix-setuptools-pollution

prevent import-time side-effects from setuptools bundled importlib-metadata
This commit is contained in:
Anthony Sottile 2022-03-03 09:01:41 -05:00 committed by GitHub
commit 9318b2cb7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -803,8 +803,8 @@ class TestDoctests:
"""
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',