Skip to content

Commit 983d9e0

Browse files
committed
Add min version of six
1 parent 1547587 commit 983d9e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_pytest/assertion/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
support for presenting detailed information in failing assertions.
33
"""
44
from __future__ import absolute_import, division, print_function
5-
import py
65
import sys
6+
import six
77

88
from _pytest.assertion import util
99
from _pytest.assertion import rewrite
@@ -126,7 +126,7 @@ def callbinrepr(op, left, right):
126126
if new_expl:
127127
new_expl = truncate.truncate_if_required(new_expl, item)
128128
new_expl = [line.replace("\n", "\\n") for line in new_expl]
129-
res = py.builtin._totext("\n~").join(new_expl)
129+
res = six.text_type("\n~").join(new_expl)
130130
if item.config.getvalue("assertmode") == "rewrite":
131131
res = res.replace("%", "%%")
132132
return res

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def has_environment_marker_support():
4343

4444

4545
def main():
46-
install_requires = ['py>=1.4.33', 'six','setuptools'] # pluggy is vendored in _pytest.vendored_packages
46+
install_requires = ['py>=1.4.33', 'six>=1.10.0','setuptools'] # pluggy is vendored in _pytest.vendored_packages
4747
extras_require = {}
4848
if has_environment_marker_support():
4949
extras_require[':python_version=="2.6"'] = ['argparse']

0 commit comments

Comments
 (0)