test_ok1/_pytest/assertion
Floris Bruynooghe 7f554f50e3 Fix collapse false to look at unescaped braces only
Sometimes the repr of an object can contain the "\n{" sequence which is
used as a formatting language, so they are escaped to "\\n{".  But the
collapse-false code needs to look for the real "\n{" token instead of
simply "{" as otherwise it may get unbalanced braces from the object's
repr (sometimes caused by the collapsing of long reprs by saferepr).

Fixes issue #731.

--HG--
branch : pytest-2.7
2015-04-30 02:31:12 +01:00
..
__init__.py Escape newlines in result from assertrepr hook 2014-04-02 17:35:22 +01:00
newinterpret.py assert reinterpretation: try mangling attributes that look like private class vars (fixes #514) 2014-05-31 14:37:02 -07:00
oldinterpret.py Use py3k compatible .__getattr__() code 2014-09-05 23:55:14 +01:00
reinterpret.py remove extra parentheses - stylistic code change 2014-07-17 08:35:36 +02:00
rewrite.py Fix `reload()` with modules handled via `python_files` 2015-03-04 16:21:27 +01:00
util.py Fix collapse false to look at unescaped braces only 2015-04-30 02:31:12 +01:00