test_ok2/_pytest/assertion
Floris Bruynooghe 825ea9bfa1 Fix assertrepr for mojibake
If the compared text was in bytes and not actually valid text
(i.e. could not be encoded to text/unicode using the default encoding)
then the assertrepr would fail with an EncodingError.  This ensures
that the internal string is always valid unicode, converting any bytes
safely to valid unicode.  This is done using repr() which then needs
post-processing to fix the encompassing quotes and un-escape newlines.

This fixes issue 429.
2014-01-29 00:42:58 +00:00
..
__init__.py Avoid wasted string concatenation and improve english 2014-01-29 00:39:04 +00:00
newinterpret.py prolong workaround for jython AST bug http://bugs.jython.org/issue1497 2012-11-07 10:05:39 +01:00
oldinterpret.py fix some pep8 issues, more to go ... is there a tool that helps with pep8-ifying? 2012-06-21 11:20:29 +02:00
reinterpret.py fix expicit assert messages for Python2.6: it turns out python2.6 2013-12-12 06:41:48 +01:00
rewrite.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
util.py Fix assertrepr for mojibake 2014-01-29 00:42:58 +00:00