summaryrefslogtreecommitdiff
path: root/_pytest/compat.py
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2017-03-16 22:21:30 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2017-03-16 22:45:40 -0300
commit42a5d6bdfa620fc13809c861a05077ef6d6f2a6a (patch)
tree2934d1e9f766d4e2c513fbc7ae85226879bbacae /_pytest/compat.py
parent7684b3af7b33fc02887d608029b1000b1ac286af (diff)
downloadpytest-42a5d6bdfa620fc13809c861a05077ef6d6f2a6a.tar.gz
Add __future__ imports to all pytest modules
This prevents silly errors from creeping in Python 2 when testing in Python 3
Diffstat (limited to '_pytest/compat.py')
-rw-r--r--_pytest/compat.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/_pytest/compat.py b/_pytest/compat.py
index 09df385d1..b688ae509 100644
--- a/_pytest/compat.py
+++ b/_pytest/compat.py
@@ -1,6 +1,7 @@
"""
python version compatibility code
"""
+from __future__ import absolute_import, division, print_function
import sys
import inspect
import types