def test_valid_setup_py(self, testdir):
    '\n        Test to make sure that pytest ignores valid setup.py files when ran\n        with --doctest-modules\n        '
    p = testdir.makepyfile(setup="\n            from setuptools import setup, find_packages\n            setup(name='sample',\n                  version='0.0',\n                  description='description',\n                  packages=find_packages()\n            )\n        ")
    result = testdir.runpytest(p, '--doctest-modules')
    result.stdout.fnmatch_lines(['*collected 0 items*'])
Test to make sure that pytest ignores valid setup.py files when ran
with --doctest-modules
def test_valid_setup_py(self, testdir):
    '\n        Test to make sure that pytest ignores valid setup.py files when ran\n        with --doctest-modules\n        '
    p = testdir.makepyfile(setup="\n            from setuptools import setup, find_packages\n            setup(name='sample',\n                  version='0.0',\n                  description='description',\n                  packages=find_packages()\n            )\n        ")
    result = testdir.runpytest(p, '--doctest-modules')
    result.stdout.fnmatch_lines(['*collected 0 items*'])