Blame conftest.py

Packit f09e2f
from _pytest.doctest import DoctestModule
Packit f09e2f
from py.path import local
Packit f09e2f
Packit f09e2f
collect_ignore = ['tests/messages/data', 'setup.py']
Packit f09e2f
babel_path = local(__file__).dirpath().join('babel')
Packit f09e2f
Packit f09e2f
Packit f09e2f
def pytest_collect_file(path, parent):
Packit f09e2f
    if babel_path.common(path) == babel_path:
Packit f09e2f
        if path.ext == ".py":
Packit f09e2f
            return DoctestModule(path, parent)