Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pytest in requirements-dev.txt from 2.8.0 to 2.9.2 #4

Merged
merged 1 commit into from
Nov 4, 2017

Conversation

dependencies[bot]
Copy link

@dependencies dependencies bot commented Nov 4, 2017

Dependencies.io has updated pytest (a pypi dependency in requirements-dev.txt) from 2.8.0 to 2.9.2.

2.9.2

Bug Fixes

  • fix #510: skip
    tests where one parameterize dimension was empty thanks Alex
    Stapleton for the Report and
    RonnyPfannschmidt for the
    PR
  • Fix Xfail does not work with condition keyword argument. Thanks
    astraw38 for reporting the issue
    (#1496) and
    tomviner for PR the
    (#1524).
  • Fix win32 path issue when putting custom config file with absolute
    path in pytest.main("-c your_absolute_path").
  • Fix maximum recursion depth detection when raised error class is not
    aware of unicode/encoded bytes. Thanks
    prusse-martin for the PR
    (#1506).
  • Fix pytest.mark.skip mark when used in strict mode. Thanks
    pquentin for the PR and
    RonnyPfannschmidt for
    showing how to fix the bug.
  • Minor improvements and fixes to the documentation. Thanks
    omarkohl for the PR.
  • Fix --fixtures to show all fixture definitions as opposed to just
    one per fixture name. Thanks to
    hackebrot for the PR.
2.9.1

Bug Fixes

  • Improve error message when a plugin fails to load. Thanks
    nicoddemus for the PR.
  • Fix (#1178):
    pytest.fail with non-ascii characters raises an internal pytest
    error. Thanks nicoddemus for the
    PR.
  • Fix (#469):
    junit parses report.nodeid incorrectly, when params IDs contain
    ::. Thanks tomviner for the PR
    (#1431).
  • Fix (#578):
    SyntaxErrors containing non-ascii lines at the point of failure
    generated an internal py.test error. Thanks
    asottile for the report and
    nicoddemus for the PR.
  • Fix (#1437):
    When passing in a bytestring regex pattern to parameterize attempt
    to decode it as utf-8 ignoring errors.
  • Fix (#649):
    parametrized test nodes cannot be specified to run on the command
    line.
  • Fix (#138):
    better reporting for python 3.3+ chained exceptions
2.9.0

New Features

  • New pytest.mark.skip mark, which unconditionally skips marked
    tests. Thanks MichaelAquilina
    for the complete PR
    (#1040).
  • --doctest-glob may now be passed multiple times in the
    command-line. Thanks jab and
    nicoddemus for the PR.
  • New -rp and -rP reporting options give the summary and full
    output of passing tests, respectively. Thanks to
    codewarrior0 for the PR.
  • pytest.mark.xfail now has a strict option, which makes XPASS
    tests to fail the test suite (defaulting to False). There's also a
    xfail_strict ini option that can be used to configure it
    project-wise. Thanks rabbbit for the
    request and nicoddemus for the PR
    (#1355).
  • Parser.addini now supports options of type bool. Thanks
    nicoddemus for the PR.
  • New ALLOW_BYTES doctest option. This strips b prefixes from byte
    strings in doctest output (similar to ALLOW_UNICODE). Thanks
    jaraco for the request and
    nicoddemus for the PR
    (#1287).
  • Give a hint on KeyboardInterrupt to use the --fulltrace option
    to show the errors. Fixes
    #1366. Thanks
    to hpk42 for the report and
    RonnyPfannschmidt for the
    PR.
  • Catch IndexError exceptions when getting exception source
    location. Fixes a pytest internal error for dynamically generated
    code (fixtures and tests) where source lines are fake by intention.

Changes

  • Important:
    py.code has been
    merged into the pytest repository as pytest._code. This decision
    was made because py.code had very few uses outside pytest and
    the fact that it was in a different repository made it difficult to
    fix bugs on its code in a timely manner. The team hopes with this to
    be able to better refactor out and improve that code. This change
    shouldn't affect users, but it is useful to let users aware if they
    encounter any strange behavior.

    Keep in mind that the code for pytest._code is private and
    experimental, so you definitely should not import it explicitly!

    Please note that the original py.code is still available in
    pylib.

  • pytest_enter_pdb now optionally receives the pytest config object.
    Thanks nicoddemus for the PR.

  • Removed code and documentation for Python 2.5 or lower versions,
    including removal of the obsolete _pytest.assertion.oldinterpret
    module. Thanks nicoddemus for the
    PR (#1226).

  • Comparisons now always show up in full when CI or BUILD_NUMBER
    is found in the environment, even when -vv isn't used. Thanks
    The-Compiler for the PR.

  • --lf and --ff now support long names: --last-failed and
    --failed-first respectively. Thanks
    MichaelAquilina for the PR.

  • Added expected exceptions to pytest.raises fail message.

  • Collection only displays progress ("collecting X items") when in a
    terminal. This avoids cluttering the output when using --color=yes
    to obtain colors in CI integrations systems
    (#1397).

Bug Fixes

  • The -s and -c options should now work under xdist;
    Config.fromdictargs now represents its input much more faithfully.
    Thanks to bukzor for the complete PR
    (#680).
  • Fix (#1290):
    support Python 3.5's @ operator in assertion rewriting. Thanks
    Shinkenjoe for report with test
    case and tomviner for the PR.
  • Fix formatting utf-8 explanation messages
    (#1379). Thanks
    biern for the PR.
  • Fix traceback style
    docs

    to describe all of the available options
    (auto/long/short/line/native/no), with auto being the default
    since v2.6. Thanks hackebrot for
    the PR.
  • Fix (#1422):
    junit record_xml_property doesn't allow multiple records with same
    name.
2.8.7
  • fix #1338: use predictable object resolution for monkeypatch
2.8.6
  • fix #1259: allow for double nodeids in junitxml, this was a
    regression failing plugins combinations like pytest-pep8 +
    pytest-flakes
  • Workaround for exception that occurs in pyreadline when using
    --pdb with standard I/O capture enabled. Thanks Erik M. Bray for
    the PR.
  • fix #900: Better error message in case the target of a
    monkeypatch call raises an ImportError.
  • fix #1292: monkeypatch calls (setattr, setenv, etc.) are now O(1).
    Thanks David R. MacIver for the report and Bruno Oliveira for the
    PR.
  • fix #1223: captured stdout and stderr are now properly displayed
    before entering pdb when --pdb is used instead of being thrown
    away. Thanks Cal Leeming for the PR.
  • fix #1305: pytest warnings emitted during pytest_terminal_summary
    are now properly displayed. Thanks Ionel Maries Cristian for the
    report and Bruno Oliveira for the PR.
  • fix #628: fixed internal UnicodeDecodeError when doctests contain
    unicode. Thanks Jason R. Coombs for the report and Bruno Oliveira
    for the PR.
  • fix #1334: Add captured stdout to jUnit XML report on setup error.
    Thanks Georgy Dyuldin for the PR.
2.8.5
  • fix #1243: fixed issue where class attributes injected during
    collection could break pytest. PR by Alexei Kozlenok, thanks Ronny
    Pfannschmidt and Bruno Oliveira for the review and help.
  • fix #1074: precompute junitxml chunks instead of storing the whole
    tree in objects Thanks Bruno Oliveira for the report and Ronny
    Pfannschmidt for the PR
  • fix #1238: fix pytest.deprecated_call() receiving multiple
    arguments (Regression introduced in 2.8.4). Thanks Alex Gaynor for
    the report and Bruno Oliveira for the PR.
2.8.4
  • fix #1190: deprecated_call() now works when the deprecated
    function has been already called by another test in the same module.
    Thanks Mikhail Chernykh for the report and Bruno Oliveira for the
    PR.
  • fix #1198: --pastebin option now works on Python 3. Thanks Mehdy
    Khoshnoody for the PR.
  • fix #1219: --pastebin now works correctly when captured output
    contains non-ascii characters. Thanks Bruno Oliveira for the PR.
  • fix #1204: another error when collecting with a nasty
    __getattr__(). Thanks Florian Bruhin for the PR.
  • fix the summary printed when no tests did run. Thanks Florian Bruhin
    for the PR.
  • fix #1185 - ensure MANIFEST.in exactly matches what should go to a
    sdist
  • a number of documentation modernizations wrt good practices. Thanks
    Bruno Oliveira for the PR.
2.8.3
  • fix #1169: add __name__ attribute to testcases in
    TestCaseFunction to support the unittest.skip decorator on
    functions and methods. Thanks Lee Kamentsky for the PR.
  • fix #1035: collecting tests if test module level obj has
    __getattr__(). Thanks Suor for the report and Bruno Oliveira /
    Tom Viner for the PR.
  • fix #331: don't collect tests if their failure cannot be reported
    correctly e.g. they are a callable instance of a class.
  • fix #1133: fixed internal error when filtering tracebacks where one
    entry belongs to a file which is no longer available. Thanks Bruno
    Oliveira for the PR.
  • enhancement made to highlight in red the name of the failing tests
    so they stand out in the output. Thanks Gabriel Reis for the PR.
  • add more talks to the documentation
  • extend documentation on the --ignore cli option
  • use pytest-runner for setuptools integration
  • minor fixes for interaction with OS X El Capitan system integrity
    protection (thanks Florian)
2.8.2
  • fix #1085: proper handling of encoding errors when passing encoded
    byte strings to pytest.parametrize in Python 2. Thanks
    Themanwithoutaplan for the report and Bruno Oliveira for the PR.
  • fix #1087: handling SystemError when passing empty byte strings to
    pytest.parametrize in Python 3. Thanks Paul Kehrer for the report
    and Bruno Oliveira for the PR.
  • fix #995: fixed internal error when filtering tracebacks where one
    entry was generated by an exec() statement. Thanks Daniel Hahler,
    Ashley C Straw, Philippe Gauthier and Pavel Savchenko for
    contributing and Bruno Oliveira for the PR.
  • fix #1100 and #1057: errors when using autouse fixtures and
    doctest modules. Thanks Sergey B Kirpichev and Vital Kudzelka for
    contributing and Bruno Oliveira for the PR.
2.8.1
  • fix #1034: Add missing nodeid on pytest_logwarning call in
    addhook. Thanks Simon Gomizelj for the PR.
  • 'deprecated_call' is now only satisfied with a DeprecationWarning
    or PendingDeprecationWarning. Before 2.8.0, it accepted any warning,
    and 2.8.0 made it accept only DeprecationWarning (but not
    PendingDeprecationWarning). Thanks Alex Gaynor for the issue and
    Eric Hunsberger for the PR.
  • fix issue #1073: avoid calling __getattr__ on potential plugin
    objects. This fixes an incompatibility with pytest-django. Thanks
    Andreas Pelme, Bruno Oliveira and Ronny Pfannschmidt for
    contributing and Holger Krekel for the fix.
  • Fix issue #704: handle versionconflict during plugin loading more
    gracefully. Thanks Bruno Oliveira for the PR.
  • Fix issue #1064: ""--junitxml" regression when used with the
    "pytest-xdist" plugin, with test reports being assigned to the wrong
    tests. Thanks Daniel Grunwald for the report and Bruno Oliveira for
    the PR.
  • (experimental) adapt more SEMVER style versioning and change meaning
    of master branch in git repo: "master" branch now keeps the
    bugfixes, changes aimed for micro releases. "features" branch will
    only be released with minor or major pytest releases.
  • Fix issue #766 by removing documentation references to distutils.
    Thanks Russel Winder.
  • Fix issue #1030: now byte-strings are escaped to produce item node
    ids to make them always serializable. Thanks Andy Freeland for the
    report and Bruno Oliveira for the PR.
  • Python 2: if unicode parametrized values are convertible to ascii,
    their ascii representation is used for the node id.
  • Fix issue #411: Add __eq__ method to assertion comparison
    example. Thanks Ben Webb.
  • Fix issue #653: deprecated_call can be used as context manager.
  • fix issue 877: properly handle assertion explanations with non-ascii
    repr Thanks Mathieu Agopian for the report and Ronny Pfannschmidt
    for the PR.
  • fix issue 1029: transform errors when writing cache values into
    pytest-warnings

@tjamet tjamet merged commit 329eddc into master Nov 4, 2017
@tjamet tjamet deleted the pytest-2.9.2-2.1.0 branch November 4, 2017 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple calls to parametrize result in empty value lists not skipping the test
2 participants