pytest2/_pytest/assertion
Matthew Duck b629da424e Restructure truncation of assertion messages
This addresses ref https://github.com/pytest-dev/pytest/issues/1954.

The current truncation for assertion explanations does not deal with long lines
properly:

- Previously if lines were too long it would display a "-n more lines"
  message.

- 999e7c6541 introduced a bug where long lines can
  cause index errors if there are < 10 lines.

Extract the truncation logic into its own file and ensure it can deal with
long lines properly.
2016-10-10 23:38:27 +01:00
..
__init__.py Restructure truncation of assertion messages 2016-10-10 23:38:27 +01:00
rewrite.py Rewrite asserts in test-modules loaded very early in the startup 2016-08-03 12:49:48 -03:00
truncate.py Restructure truncation of assertion messages 2016-10-10 23:38:27 +01:00
util.py Merge remote-tracking branch 'upstream/master' into features 2016-09-26 19:32:53 -03:00