summaryrefslogtreecommitdiff
path: root/conftest.py
diff options
context:
space:
mode:
authorAlex Morega <alex@grep.ro>2013-07-06 15:15:11 +0200
committerAlex Morega <alex@grep.ro>2013-07-06 15:15:58 +0200
commit1b8ac4af57b81aeb5d9a8ac72c1122e1f7a7a15b (patch)
tree2dd0b22529b663c428aabb159f0dc998239cd186 /conftest.py
parent30afd11e4effccd3d517bedc62f8cfdad4623ae2 (diff)
downloadbabel-1b8ac4af57b81aeb5d9a8ac72c1122e1f7a7a15b.tar.gz
run doctests on python 2
Fixes #10.
Diffstat (limited to 'conftest.py')
-rw-r--r--conftest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/conftest.py b/conftest.py
index e79c152..e0b4426 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