def test_skip_duplicates_by_default(testdir):
 a = testdir.mkdir('a')
 fh = a.join('test_a.py')
 fh.write(_pytest._code.Source('\n        import pytest\n        def test_real():\n            pass\n    '))
 result = testdir.runpytest(a.strpath, a.strpath)
 result.stdout.fnmatch_lines(['*collected 1 item*'])

def test_skip_duplicates_by_default ( testdir ) : a = testdir . mkdir ( 'a' ) fh = a . join ( 'test_a.py' ) fh . write ( _pytest . _code . Source ( '\n        import pytest\n        def test_real():\n            pass\n    ' ) ) result = testdir . runpytest ( a . strpath , a . strpath ) result . stdout . fnmatch_lines ( [ '*collected 1 item*' ] )
test for issue URL ignore duplicate directories .