From: Alex Morega Date: Sat, 6 Jul 2013 13:15:11 +0000 (+0200) Subject: run doctests on python 2 X-Git-Tag: 1.0~93^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b8ac4af57b81aeb5d9a8ac72c1122e1f7a7a15b;p=thirdparty%2Fbabel.git run doctests on python 2 Fixes #10. --- diff --git a/conftest.py b/conftest.py index e79c1522..e0b44262 100644 --- a/conftest.py +++ b/conftest.py @@ -1 +1,6 @@ collect_ignore = ['tests/messages/data'] + +def pytest_configure(config): + import sys + if sys.version_info[0] < 3: + config.option.doctestmodules = True