Skip to content

Commit

Permalink
Merge pull request pytest-dev#9638 from asottile/fix-test-pollution
Browse files Browse the repository at this point in the history
work around test pollution caused by new setuptools mutating global logger level
  • Loading branch information
asottile committed Feb 7, 2022
2 parents 6f936aa + b3692fe commit bc33ba0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions testing/test_doctest.py
Expand Up @@ -802,11 +802,12 @@ def test_valid_setup_py(self, pytester: Pytester):
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")
Expand Down

0 comments on commit bc33ba0

Please sign in to comment.