work around test pollution caused by new setuptools mutating global logger level

This commit is contained in:
Anthony Sottile 2022-02-07 15:10:03 -05:00
parent 6f936aa97c
commit b3692fe404
1 changed files with 6 additions and 5 deletions

View File

@ -802,11 +802,12 @@ class TestDoctests:
p = pytester.makepyfile( p = pytester.makepyfile(
setup=""" setup="""
from setuptools import setup, find_packages from setuptools import setup, find_packages
setup(name='sample', if __name__ == '__main__':
version='0.0', setup(name='sample',
description='description', version='0.0',
packages=find_packages() description='description',
) packages=find_packages()
)
""" """
) )
result = pytester.runpytest(p, "--doctest-modules") result = pytester.runpytest(p, "--doctest-modules")