def test_invalid_setup_py(self, testdir):
    '\n        Test to make sure that pytest reads setup.py files that are not used\n        for python packages when ran with --doctest-modules\n        '
    p = testdir.makepyfile(setup="\n            def test_foo():\n                return 'bar'\n        ")
    result = testdir.runpytest(p, '--doctest-modules')
    result.stdout.fnmatch_lines(['*collected 1 item*'])
Test to make sure that pytest reads setup.py files that are not used
for python packages when ran with --doctest-modules
def test_invalid_setup_py(self, testdir):
    '\n        Test to make sure that pytest reads setup.py files that are not used\n        for python packages when ran with --doctest-modules\n        '
    p = testdir.makepyfile(setup="\n            def test_foo():\n                return 'bar'\n        ")
    result = testdir.runpytest(p, '--doctest-modules')
    result.stdout.fnmatch_lines(['*collected 1 item*'])