def test_multiple_patterns(self, testdir):
    'Test support for multiple --doctest-glob arguments (#1255).\n        '
    testdir.maketxtfile(xdoc='\n            >>> 1\n            1\n        ')
    testdir.makefile('.foo', test='\n            >>> 1\n            1\n        ')
    testdir.maketxtfile(test_normal='\n            >>> 1\n            1\n        ')
    expected = {'xdoc.txt', 'test.foo', 'test_normal.txt'}
    assert ({x.basename for x in testdir.tmpdir.listdir()} == expected)
    args = ['--doctest-glob=xdoc*.txt', '--doctest-glob=*.foo']
    result = testdir.runpytest(*args)
    result.stdout.fnmatch_lines(['*test.foo *', '*xdoc.txt *', '*2 passed*'])
    result = testdir.runpytest()
    result.stdout.fnmatch_lines(['*test_normal.txt *', '*1 passed*'])
Test support for multiple --doctest-glob arguments (#1255).
def test_multiple_patterns(self, testdir):
    '\n        '
    testdir.maketxtfile(xdoc='\n            >>> 1\n            1\n        ')
    testdir.makefile('.foo', test='\n            >>> 1\n            1\n        ')
    testdir.maketxtfile(test_normal='\n            >>> 1\n            1\n        ')
    expected = {'xdoc.txt', 'test.foo', 'test_normal.txt'}
    assert ({x.basename for x in testdir.tmpdir.listdir()} == expected)
    args = ['--doctest-glob=xdoc*.txt', '--doctest-glob=*.foo']
    result = testdir.runpytest(*args)
    result.stdout.fnmatch_lines(['*test.foo *', '*xdoc.txt *', '*2 passed*'])
    result = testdir.runpytest()
    result.stdout.fnmatch_lines(['*test_normal.txt *', '*1 passed*'])