Merge pull request #9638 from asottile/fix-test-pollution

work around test pollution caused by new setuptools mutating global logger level
This commit is contained in:
Anthony Sottile 2022-02-07 17:19:01 -05:00 committed by GitHub
commit bc33ba0be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")