work around test pollution caused by new setuptools mutating global logger level
This commit is contained in:
parent
6f936aa97c
commit
b3692fe404
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue