diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2016-09-26 19:32:53 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2016-09-26 19:32:53 -0300 |
commit | 654af0ba25c56583b4977a02bade686cac756066 (patch) | |
tree | 72bb55602c4ee4b774f05cc97e1581dd7a365a95 /_pytest/assertion | |
parent | 3fce78498fad121c75ec23fce7da06cd1c3470d2 (diff) | |
parent | 30d459e2e337ab0c199437d7bd5c2dd8c85c4142 (diff) | |
download | pytest-654af0ba25c56583b4977a02bade686cac756066.tar.gz |
Merge remote-tracking branch 'upstream/master' into features
Diffstat (limited to '_pytest/assertion')
-rw-r--r-- | _pytest/assertion/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_pytest/assertion/util.py b/_pytest/assertion/util.py index 709fe3b4d..7b4edb6fd 100644 --- a/_pytest/assertion/util.py +++ b/_pytest/assertion/util.py @@ -105,7 +105,7 @@ except NameError: def assertrepr_compare(config, op, left, right): """Return specialised explanations for some operators/operands""" width = 80 - 15 - len(op) - 2 # 15 chars indentation, 1 space around op - left_repr = py.io.saferepr(left, maxsize=int(width/2)) + left_repr = py.io.saferepr(left, maxsize=int(width//2)) right_repr = py.io.saferepr(right, maxsize=width-len(left_repr)) summary = u('%s %s %s') % (ecu(left_repr), op, ecu(right_repr)) |