summaryrefslogtreecommitdiff
path: root/_pytest/_code/code.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/_code/code.py')
-rw-r--r--_pytest/_code/code.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/_pytest/_code/code.py b/_pytest/_code/code.py
index 41f232dc8..cb788c17f 100644
--- a/_pytest/_code/code.py
+++ b/_pytest/_code/code.py
@@ -8,7 +8,7 @@ import attr
import re
from weakref import ref
from _pytest.compat import _PY2, _PY3, PY35, safe_str
-
+from six import text_type
import py
builtin_repr = repr
@@ -479,7 +479,7 @@ class ExceptionInfo(object):
def __unicode__(self):
entry = self.traceback[-1]
loc = ReprFileLocation(entry.path, entry.lineno + 1, self.exconly())
- return unicode(loc)
+ return text_type(loc)
def match(self, regexp):
"""