test_ok1/testing
Daniel Hahler 946434c610 Improve full diff output for lists
Massage text input for difflib when comparing pformat output of
different line lengths.

Also do not strip ndiff output on the left, which currently already
removes indenting for lines with no differences.

Before:

    E   AssertionError: assert ['version', '...version_info'] == ['version', '...version', ...]
    E     Right contains 3 more items, first extra item: ' '
    E     Full diff:
    E     - ['version', 'version_info', 'sys.version', 'sys.version_info']
    E     + ['version',
    E     +  'version_info',
    E     +  'sys.version',
    E     +  'sys.version_info',
    E     +  ' ',
    E     +  'sys.version',
    E     +  'sys.version_info']

After:

    E   AssertionError: assert ['version', '...version_info'] == ['version', '...version', ...]
    E     Right contains 3 more items, first extra item: ' '
    E     Full diff:
    E       [
    E        'version',
    E        'version_info',
    E        'sys.version',
    E        'sys.version_info',
    E     +  ' ',
    E     +  'sys.version',
    E     +  'sys.version_info',
    E       ]
2019-10-08 15:27:51 +02:00
..
code Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
example_scripts Validate xunit2 files against the schema 2019-08-09 10:55:06 -03:00
examples pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
freeze pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
io saferepr: Avoid indirect function calls 2019-07-15 17:07:58 +03:00
logging Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
python Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
acceptance_test.py Introduce no_fnmatch_line/no_re_match_line in pytester (#5914) 2019-10-06 20:27:20 -03:00
conftest.py Fix --setup-only and --setup-show for custom pytest items 2019-09-28 11:52:09 -03:00
deprecated_test.py Merge master into features 2019-08-02 16:52:51 +02:00
test_argcomplete.py pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
test_assertion.py Improve full diff output for lists 2019-10-08 15:27:51 +02:00
test_assertrewrite.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_cacheprovider.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_capture.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_collection.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_compat.py check that tests that are partial staticmethods are supported (#5701) 2019-08-15 09:12:01 -03:00
test_config.py Inject width via pylib to argparse formatter 2019-08-17 16:51:02 +02:00
test_conftest.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_doctest.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_entry_points.py Replace importlib_metadata with importlib.metadata on Python 3.8+ 2019-07-04 15:00:10 +02:00
test_faulthandler.py Change pytest-faulthandler for simplification 2019-06-22 19:22:43 -03:00
test_helpconfig.py initial conversion of exit codes to enum 2019-06-15 06:48:00 +02:00
test_junitxml.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_mark.py Merge master into features 2019-08-02 16:52:51 +02:00
test_modimport.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
test_monkeypatch.py pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
test_nodes.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
test_nose.py didnt -> didn't 2019-08-01 15:10:39 +02:00
test_parseopt.py Make sure to quote `sys.executable` as we're running a shell 2019-09-23 08:58:56 -07:00
test_pastebin.py Fix "lexer" being used when uploading to bpaste.net 2019-08-30 15:34:03 -04:00
test_pathlib.py Switch from deprecated imp to importlib 2019-06-24 09:48:38 -07:00
test_pdb.py Fix for Python 4: replace unsafe PY3 with PY2 2019-09-05 18:06:47 +03:00
test_pluginmanager.py initial conversion of exit codes to enum 2019-06-15 06:48:00 +02:00
test_pytester.py Introduce no_fnmatch_line/no_re_match_line in pytester 2019-10-06 18:05:24 -03:00
test_recwarn.py Revert "Let context-managers for raises and warns handle unknown keyword arguments" 2019-07-14 14:28:21 +03:00
test_reports.py Serialize/deserialize chained exceptions 2019-08-29 20:23:44 -03:00
test_resultlog.py pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
test_runner.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_runner_xunit.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_session.py initial conversion of exit codes to enum 2019-06-15 06:48:00 +02:00
test_skipping.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_stepwise.py In test_xfail_handling, only remove __pycache__ if it exists 2019-07-26 02:23:14 +02:00
test_terminal.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_tmpdir.py Merge master into features 2019-08-02 16:52:51 +02:00
test_unittest.py Use new no-match functions to replace previous idiom 2019-10-06 18:05:24 -03:00
test_warning_types.py Make pytest warnings show as from 'pytest' module instead of '_pytest.warning_types' 2019-06-15 11:48:34 -03:00
test_warnings.py Merge remote-tracking branch 'upstream/master' into mm 2019-08-15 10:03:52 -03:00