blob: 32bd1362aabf4f3d0ccd85074ae1f92cf1c20370 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from _pytest.doctest import DoctestModule
from py.path import local
collect_ignore = ['tests/messages/data', 'setup.py']
babel_path = local(__file__).dirpath().join('babel')
def pytest_collect_file(path, parent):
if babel_path.common(path) == babel_path:
if path.ext == ".py":
return DoctestModule(path, parent)
|