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(
setup="""
from setuptools import setup, find_packages
setup(name='sample',
version='0.0',
description='description',
packages=find_packages()
)
if __name__ == '__main__':
setup(name='sample',
version='0.0',
description='description',
packages=find_packages()
)
"""
)
result = pytester.runpytest(p, "--doctest-modules")