prevent import-time side-effects from setuptools bundled importlib-metadata

This commit is contained in:
Anthony Sottile 2022-02-28 19:35:36 -05:00
parent e466a87bb0
commit 269611e0b4
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',