test_ok2/_pytest
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
..
assertion Fix assertrepr for mojibake 2014-01-29 00:42:58 +00:00
__init__.py fix issue409 -- better interoperate with cx_freeze by not 2013-12-18 14:56:45 +01:00
_argcomplete.py complete_dotted: fix for #361, filecompleter on dot files had differing behaviour from bash 2013-10-01 16:33:15 +02:00
capture.py remove "mixed" capturing mode which is not used by pytest 2014-01-25 19:56:27 +01:00
config.py remove superflous line 2014-01-22 13:54:25 +01:00
core.py fixed circular imports by reverting a few py.test -> pytest substitions. 2014-01-22 11:17:25 +01:00
doctest.py fix issue275 - allow usefixtures and autouse fixtures 2013-11-22 15:35:20 +01:00
genscript.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
helpconfig.py fix issue425: mention at end of "py.test -h" that --markers 2014-01-22 10:24:22 +01:00
hookspec.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
impl - enhance ordering of tests using parametrized resources 2012-08-01 09:07:32 +02:00
junitxml.py fix issue404 by more strict junitxml escape 2013-12-13 10:28:23 +01:00
main.py merge from default 2014-01-25 10:42:21 +01:00
mark.py fix handling MarkDecorators called with a single positional plus keyword args 2014-01-20 01:27:33 +01:00
monkeypatch.py fix tests on py32/py33 2013-10-22 11:26:29 +02:00
nose.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
pastebin.py moving from optparse to argparse. Major difficulty is 2013-07-25 15:33:43 +02:00
pdb.py make "import pdb ; pdb.set_trace()" work natively wrt capturing (no "-s" needed 2013-09-06 15:29:00 +02:00
pytester.py fix comment typos 2014-01-18 12:39:16 +01:00
python.py simplify loop which turns direct funcarg parametrization to indirect 2014-01-27 12:53:44 +01:00
recwarn.py remove unused imports (using "importchecker" project) 2013-10-02 14:32:40 +02:00
resultlog.py fix issue380 by making --resultlog only rely on longrepr instead 2013-11-19 14:19:29 +01:00
runner.py setupstate.addfinalizer(): fix docstring and remove related unit test not covering functional reality 2014-01-26 12:44:21 +01:00
skipping.py replace py.test module references with pytest 2014-01-18 12:31:33 +01:00
standalonetemplate.py fix flakes issues and make --flakes run part of tox runs 2013-10-12 15:39:22 +02:00
terminal.py Include py version in the terminal output 2014-01-22 11:27:15 +01:00
tmpdir.py fix issue354: avoid tmpdir fixture to create too long filenames especially 2013-10-03 14:22:54 +02:00
unittest.py fix issue384 by removing the trial support code 2013-11-19 10:58:24 +01:00