py.builtin.text -> six.text_type

This commit is contained in:
Anthony Sottile 2018-08-22 19:26:11 -07:00
parent c2cd337886
commit dccac69d82
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import textwrap
import _pytest.assertion as plugin
import py
import pytest
import six
from _pytest.assertion import util
from _pytest.assertion import truncate
@ -541,7 +542,7 @@ class TestAssert_reprcompare(object):
right = bytes(right, "utf-8")
expl = callequal(left, right)
for line in expl:
assert isinstance(line, py.builtin.text)
assert isinstance(line, six.text_type)
msg = u"\n".join(expl)
assert msg