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 to 3.3.0 #128

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Update pytest to 3.3.0 #128

merged 1 commit into from
Nov 28, 2017

Conversation

pyup-bot
Copy link
Collaborator

There's a new version of pytest available.
You are currently using 3.2.5. I have updated it to 3.3.0

These links might come in handy: PyPI | Changelog | Repo | Homepage

Changelog

3.3.0

=========================

Deprecations and Removals

  • Pytest no longer supports Python 2.6 and 3.3. Those Python versions
    are EOL for some time now and incur maintenance and compatibility costs on
    the pytest core team, and following up with the rest of the community we
    decided that they will no longer be supported starting on this version. Users
    which still require those versions should pin pytest to <3.3. (2812 <https:/pytest-dev/pytest/issues/2812>_)
  • Remove internal _preloadplugins() function. This removal is part of the
    pytest_namespace() hook deprecation. (2236 <https:/pytest-dev/pytest/issues/2236>_)
  • Internally change CallSpec2 to have a list of marks instead of a broken
    mapping of keywords. This removes the keywords attribute of the internal
    CallSpec2 class. (2672 <https:/pytest-dev/pytest/issues/2672>_)
  • Remove ParameterSet.deprecated_arg_dict - its not a public api and the lack
    of the underscore was a naming error. (2675 <https:/pytest-dev/pytest/issues/2675>_)
  • Remove the internal multi-typed attribute Node._evalskip and replace it
    with the boolean Node._skipped_by_mark. (2767 <https:/pytest-dev/pytest/issues/2767>_)

Features

  • pytest_fixture_post_finalizer hook can now receive a request
    argument. (2124 <https:/pytest-dev/pytest/issues/2124>_)
  • Replace the old introspection code in compat.py that determines the available
    arguments of fixtures with inspect.signature on Python 3 and
    funcsigs.signature on Python 2. This should respect __signature__
    declarations on functions. (2267 <https:/pytest-dev/pytest/issues/2267>_)
  • Report tests with global pytestmark variable only once. (2549 <https:/pytest-dev/pytest/issues/2549>_)
  • Now pytest displays the total progress percentage while running tests. The
    previous output style can be set by configuring the console_output_style
    setting to classic. (2657 <https:/pytest-dev/pytest/issues/2657>_)
  • Match warns signature to raises by adding match keyword. (2708 <https:/pytest-dev/pytest/issues/2708>_)
  • Pytest now captures and displays output from the standard logging module.
    The user can control the logging level to be captured by specifying options
    in pytest.ini, the command line and also during individual tests using
    markers. Also, a caplog fixture is available that enables users to test
    the captured log during specific tests (similar to capsys for example).
    For more information, please see the logging docs <https://docs.pytest.org/en/latest/logging.html>. This feature was
    introduced by merging the popular pytest-catchlog <https://pypi.org/project/pytest-catchlog/>
    plugin, thanks to Thomas Hisch <https:/thisch>. Be advised that during the merging the
    backward compatibility interface with the defunct pytest-capturelog has
    been dropped. (2794 <https:/pytest-dev/pytest/issues/2794>
    )
  • Add allow_module_level kwarg to pytest.skip(), enabling to skip the
    whole module. (2808 <https:/pytest-dev/pytest/issues/2808>_)
  • Allow setting file_or_dir, -c, and -o in PYTEST_ADDOPTS. (2824 <https:/pytest-dev/pytest/issues/2824>_)
  • Return stdout/stderr capture results as a namedtuple, so out and
    err can be accessed by attribute. (2879 <https:/pytest-dev/pytest/issues/2879>_)
  • Add capfdbinary, a version of capfd which returns bytes from
    readouterr(). (2923 <https:/pytest-dev/pytest/issues/2923>_)
  • Add capsysbinary a version of capsys which returns bytes from
    readouterr(). (2934 <https:/pytest-dev/pytest/issues/2934>_)
  • Implement feature to skip setup.py files when run with
    --doctest-modules. (502 <https:/pytest-dev/pytest/issues/502>_)

Bug Fixes

  • Resume output capturing after capsys/capfd.disabled() context manager.
    (1993 <https:/pytest-dev/pytest/issues/1993>_)
  • pytest_fixture_setup and pytest_fixture_post_finalizer hooks are now
    called for all conftest.py files. (2124 <https:/pytest-dev/pytest/issues/2124>_)
  • If an exception happens while loading a plugin, pytest no longer hides the
    original traceback. In python2 it will show the original traceback with a new
    message that explains in which plugin. In python3 it will show 2 canonized
    exceptions, the original exception while loading the plugin in addition to an
    exception that PyTest throws about loading a plugin. (2491 <https:/pytest-dev/pytest/issues/2491>_)
  • capsys and capfd can now be used by other fixtures. (2709 <https:/pytest-dev/pytest/issues/2709>_)
  • Internal pytester plugin properly encodes bytes arguments to
    utf-8. (2738 <https:/pytest-dev/pytest/issues/2738>_)
  • testdir now uses use the same method used by tmpdir to create its
    temporary directory. This changes the final structure of the testdir
    directory slightly, but should not affect usage in normal scenarios and
    avoids a number of potential problems. (2751 <https:/pytest-dev/pytest/issues/2751>_)
  • Pytest no longer complains about warnings with unicode messages being
    non-ascii compatible even for ascii-compatible messages. As a result of this,
    warnings with unicode messages are converted first to an ascii representation
    for safety. (2809 <https:/pytest-dev/pytest/issues/2809>_)
  • Change return value of pytest command when --maxfail is reached from
    2 (interrupted) to 1 (failed). (2845 <https:/pytest-dev/pytest/issues/2845>_)
  • Fix issue in assertion rewriting which could lead it to rewrite modules which
    should not be rewritten. (2939 <https:/pytest-dev/pytest/issues/2939>_)
  • Handle marks without description in pytest.ini. (2942 <https:/pytest-dev/pytest/issues/2942>_)

Trivial/Internal Changes

  • pytest now depends on attrs <https://pypi.org/project/attrs/>_ for internal
    structures to ease code maintainability. (2641 <https:/pytest-dev/pytest/issues/2641>_)
  • Refactored internal Python 2/3 compatibility code to use six. (2642 <https:/pytest-dev/pytest/issues/2642>_)
  • Stop vendoring pluggy - we're missing out on its latest changes for not
    much benefit (2719 <https:/pytest-dev/pytest/issues/2719>_)
  • Internal refactor: simplify ascii string escaping by using the
    backslashreplace error handler in newer Python 3 versions. (2734 <https:/pytest-dev/pytest/issues/2734>_)
  • Remove unnecessary mark evaluator in unittest plugin (2767 <https:/pytest-dev/pytest/issues/2767>_)
  • Calls to Metafunc.addcall now emit a deprecation warning. This function
    is scheduled to be removed in pytest-4.0. (2876 <https:/pytest-dev/pytest/issues/2876>_)
  • Internal move of the parameterset extraction to a more maintainable place.
    (2877 <https:/pytest-dev/pytest/issues/2877>_)
  • Internal refactoring to simplify scope node lookup. (2910 <https:/pytest-dev/pytest/issues/2910>_)
  • Configure pytest to prevent pip from installing pytest in unsupported
    Python versions. (2922 <https:/pytest-dev/pytest/issues/2922>_)

Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 🤖

@nicfit nicfit merged commit 41b6a84 into master Nov 28, 2017
@nicfit nicfit deleted the pyup-update-pytest-3.2.5-to-3.3.0 branch November 28, 2017 04:24
nicfit added a commit that referenced this pull request Dec 16, 2017
* 'master' of github.com:nicfit/eyeD3:
  Update python-magic to 0.4.15 (#130)
  Update pip-tools from 1.10.2 to 1.11.0 (#129)
  Update pytest from 3.3.0 to 3.3.1 (#131)
  Update pytest from 3.2.5 to 3.3.0 (#128)
  Update sphinx-issues from 0.3.1 to 0.4.0 (#127)
nicfit added a commit that referenced this pull request Mar 10, 2018
commit f877ae4
Merge: da02459 bc16a97
Author: Travis Shirk <[email protected]>
Date:   Sat Mar 10 08:28:39 2018 -0700

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      Update twine from 1.9.1 to 1.10.0 (#168)
      Update pytest from 3.4.1 to 3.4.2 (#167)

commit bc16a97
Author: pyup.io bot <[email protected]>
Date:   Thu Mar 8 00:29:28 2018 +0100

    Update twine from 1.9.1 to 1.10.0 (#168)

commit 257d238
Author: pyup.io bot <[email protected]>
Date:   Tue Mar 6 17:19:09 2018 +0100

    Update pytest from 3.4.1 to 3.4.2 (#167)

commit da02459
Author: Travis Shirk <[email protected]>
Date:   Sat Mar 3 22:44:48 2018 -0700

    Clean pytest_cache

commit cfa2c63
Merge: 10a3436 fba3d67
Author: Travis Shirk <[email protected]>
Date:   Sun Feb 25 22:16:52 2018 -0700

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      Update index.rst (#164)
      Update pytest from 3.4.0 to 3.4.1 (#162)
      Update sphinx from 1.7.0 to 1.7.1 (#163)

commit 10a3436
Author: Travis Shirk <[email protected]>
Date:   Sun Feb 25 22:16:19 2018 -0700

    cleanup  !wip

commit fba3d67
Author: Deoren Moor <[email protected]>
Date:   Sun Feb 25 13:13:30 2018 -0600

    Update index.rst (#164)

    GitHub hosts Git repos, so update DVCS name to reflect that.

commit 9361db9
Author: pyup.io bot <[email protected]>
Date:   Sat Feb 24 19:55:08 2018 +0100

    Update pytest from 3.4.0 to 3.4.1 (#162)

commit e8d378a
Author: pyup.io bot <[email protected]>
Date:   Sat Feb 24 19:54:55 2018 +0100

    Update sphinx from 1.7.0 to 1.7.1 (#163)

commit 9098853
Author: Travis Shirk <[email protected]>
Date:   Sun Feb 18 15:10:19 2018 -0700

    nicfit.py cc update

commit 8891167
Author: pyup.io bot <[email protected]>
Date:   Sun Feb 18 22:36:40 2018 +0100

    Update nicfit.py from 0.7 to 0.8 (#161)

commit cb8345b
Author: pyup.io bot <[email protected]>
Date:   Fri Feb 16 07:09:51 2018 +0100

    Update ipdb from 0.10.3 to 0.11 (#159)

commit 95fd207
Author: pyup.io bot <[email protected]>
Date:   Mon Feb 12 18:55:02 2018 +0100

    Update sphinx from 1.6.7 to 1.7.0 (#158)

commit 244c21f
Author: pyup.io bot <[email protected]>
Date:   Sun Feb 11 17:26:38 2018 +0100

    Update pytest-runner from 3.0 to 4.0 (#157)

commit ff03e03
Merge: 1b22d87 af7b263
Author: Travis Shirk <[email protected]>
Date:   Thu Feb 8 16:42:21 2018 -0700

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      Update sphinx from 1.6.6 to 1.6.7 (#154)

commit 1b22d87
Author: Travis Shirk <[email protected]>
Date:   Thu Feb 8 16:41:49 2018 -0700

    Added docs for install devel dependencies and test data.

commit af7b263
Author: pyup.io bot <[email protected]>
Date:   Mon Feb 5 23:16:40 2018 +0100

    Update sphinx from 1.6.6 to 1.6.7 (#154)

commit d685c21
Author: pyup.io bot <[email protected]>
Date:   Thu Feb 1 04:35:02 2018 +0100

    Update pytest from 3.3.2 to 3.4.0 (#152)

commit ed3c215
Author: pyup.io bot <[email protected]>
Date:   Mon Jan 29 03:00:44 2018 +0100

    Update factory-boy from 2.9.2 to 2.10.0 (#150)

commit 62a1229
Author: pyup.io bot <[email protected]>
Date:   Fri Jan 12 23:31:07 2018 +0100

    Update sphinx from 1.6.5 to 1.6.6 (#148)

commit 06601be
Author: pyup.io bot <[email protected]>
Date:   Fri Jan 5 17:20:38 2018 +0100

    Update pytest from 3.3.1 to 3.3.2 (#147)

commit 04766bd
Merge: dc64168 99f3b61
Author: Travis Shirk <[email protected]>
Date:   Wed Jan 3 17:00:08 2018 -0700

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      Update pyaml from 17.10.0 to 17.12.1 (#138)

commit dc64168
Author: Travis Shirk <[email protected]>
Date:   Wed Jan 3 16:58:56 2018 -0700

    chg: Removed paver as a dep

commit 99f3b61
Author: pyup.io bot <[email protected]>
Date:   Sat Dec 30 04:36:13 2017 +0100

    Update pyaml from 17.10.0 to 17.12.1 (#138)

commit 25c4db7
Merge: 5e0783c bd1d174
Author: Travis Shirk <[email protected]>
Date:   Fri Dec 15 20:27:00 2017 -0700

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      Update python-magic to 0.4.15 (#130)
      Update pip-tools from 1.10.2 to 1.11.0 (#129)
      Update pytest from 3.3.0 to 3.3.1 (#131)
      Update pytest from 3.2.5 to 3.3.0 (#128)
      Update sphinx-issues from 0.3.1 to 0.4.0 (#127)

commit 5e0783c
Author: Travis Shirk <[email protected]>
Date:   Fri Dec 15 20:26:16 2017 -0700

    chg: removed fabfile and mkenv

commit bd1d174
Author: pyup.io bot <[email protected]>
Date:   Tue Dec 12 05:32:42 2017 +0100

    Update python-magic to 0.4.15 (#130)

    * Update python-magic from 0.4.13 to 0.4.15

    * Update python-magic from 0.4.13 to 0.4.15

commit 0abe2e8
Author: pyup.io bot <[email protected]>
Date:   Fri Dec 8 16:38:37 2017 +0100

    Update pip-tools from 1.10.2 to 1.11.0 (#129)

commit 89a42f4
Author: pyup.io bot <[email protected]>
Date:   Thu Dec 7 00:45:03 2017 +0100

    Update pytest from 3.3.0 to 3.3.1 (#131)

commit 41b6a84
Author: pyup.io bot <[email protected]>
Date:   Tue Nov 28 05:24:44 2017 +0100

    Update pytest from 3.2.5 to 3.3.0 (#128)

commit af9ada2
Author: pyup.io bot <[email protected]>
Date:   Tue Nov 28 05:06:40 2017 +0100

    Update sphinx-issues from 0.3.1 to 0.4.0 (#127)

commit 76eca97
Author: pyup.io bot <[email protected]>
Date:   Thu Nov 23 20:51:23 2017 +0100

    Update pip-tools from 1.10.1 to 1.10.2 (#126)

commit 457f88f
Author: pyup.io bot <[email protected]>
Date:   Wed Nov 22 01:52:21 2017 +0100

    Update check-manifest from 0.35 to 0.36 (#125)

commit 308305e
Author: Travis Shirk <[email protected]>
Date:   Sun Nov 19 21:41:49 2017 -0700

    pep8  !wip

commit 3b1404a
Merge: 7834abb 68b6201
Author: Travis Shirk <[email protected]>
Date:   Sun Nov 19 20:37:40 2017 -0700

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      Update nicfit.py from 0.6.6 to 0.7 (#124)

commit 7834abb
Author: Travis Shirk <[email protected]>
Date:   Sun Nov 19 20:36:32 2017 -0700

    new: eyed3.core.EP_MAX_SIZE_HINT

commit 68b6201
Author: pyup.io bot <[email protected]>
Date:   Mon Nov 20 01:22:26 2017 +0100

    Update nicfit.py from 0.6.6 to 0.7 (#124)

commit 0c8be9e
Author: Travis Shirk <[email protected]>
Date:   Sun Nov 19 12:33:01 2017 -0700

    [stats plugin] Skip None when sorting names.

commit 762a0f4
Author: Travis Shirk <[email protected]>
Date:   Sun Nov 19 12:31:11 2017 -0700

    chg: Similarly to TextFrame, fallback to latin1 for invalid encodings

commit f0d5bf6
Author: Travis Shirk <[email protected]>
Date:   Fri Nov 17 20:43:04 2017 -0700

    release prep  !wip

commit 2d70df4
Author: Travis Shirk <[email protected]>
Date:   Fri Nov 17 20:20:23 2017 -0700

    fix: [display plugin] Handle comments

commit c12425c
Author: nicfit <[email protected]>
Date:   Fri Nov 17 20:10:34 2017 -0700

    new: Composer (TCOM) support (#123)

commit 3094a8a
Author: Travis Shirk <[email protected]>
Date:   Fri Nov 17 20:05:15 2017 -0700

    chg: More forgiving of invalid text encoding identifiers (fixes #101)

commit ed215f3
Author: Travis Shirk <[email protected]>
Date:   Fri Nov 17 19:37:32 2017 -0700

    chg: More forgiving of bad Unicode in text frames (fixes #105)

commit 70706ff
Merge: b0c3325 b716732
Author: Travis Shirk <[email protected]>
Date:   Fri Nov 17 19:29:01 2017 -0700

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      fix: Fix python3 setup when system encoding is not utf-8 (#120)

commit b0c3325
Author: Travis Shirk <[email protected]>
Date:   Fri Nov 17 18:07:01 2017 -0700

    version bump. !wip

commit b716732
Author: gaetano-guerriero <[email protected]>
Date:   Sat Nov 18 02:05:56 2017 +0100

    fix: Fix python3 setup when system encoding is not utf-8 (#120)

    Under python3, opening utf-8 files like HISTORY.rst in setup.py causes encoding
    error if the default encoding for the system is not utf-8.

commit d729dc4
Author: pyup.io bot <[email protected]>
Date:   Wed Nov 15 18:22:50 2017 +0100

    Update pytest from 3.2.4 to 3.2.5 (#122)

commit b73d7a0
Author: pyup.io bot <[email protected]>
Date:   Wed Nov 15 18:22:07 2017 +0100

    Update pytest from 3.2.3 to 3.2.4 (#121)

commit 21de03a
Merge: 62f16fb cc4c601
Author: Travis Shirk <[email protected]>
Date:   Sat Nov 4 20:51:01 2017 -0600

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      Set theme jekyll-theme-slate

commit 62f16fb
Author: Travis Shirk <[email protected]>
Date:   Sat Nov 4 20:50:04 2017 -0600

    chg: eyeD3 cmd line helper turned nto session-scoped fixture

commit cc4c601
Author: nicfit <[email protected]>
Date:   Sat Nov 4 20:06:38 2017 -0600

    Set theme jekyll-theme-slate

commit 7ffef22
Author: Travis Shirk <[email protected]>
Date:   Sat Nov 4 18:55:15 2017 -0600

    fix: Help pymagic with poorly encoded filenames

commit d7f1711
Author: Travis Shirk <[email protected]>
Date:   Sat Nov 4 14:14:50 2017 -0600

    new: Check for version incompatibilities during setter, and slight refactor.

commit d635846
Merge: 32c3551 32d9a61
Author: Travis Shirk <[email protected]>
Date:   Sat Nov 4 10:43:32 2017 -0600

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      pep8 !wip

commit 32c3551
Author: Travis Shirk <[email protected]>
Date:   Sat Nov 4 10:25:33 2017 -0600

    fix: [display plugin] Handle internal exception types. Fixes #118

commit 87f80df
Author: Travis Shirk <[email protected]>
Date:   Sat Nov 4 10:15:45 2017 -0600

    chg: Only warn about missing grako when the plugin is used. Fixes #115

commit 32d9a61
Merge: 73c613c 54b4735
Author: Travis Shirk <[email protected]>
Date:   Sat Nov 4 08:39:47 2017 -0600

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      fix: IOError (nor OSError) have a message attr.
      Fix bad frames detection in stats plugin for python3 (#113)
      script exits with 0 status when called with --version/--help (#109)
      Update pytest-runner from 2.12.1 to 3.0 (#108)
      Update sphinx from 1.6.4 to 1.6.5 (#106)
      Update flake8 from 3.4.1 to 3.5.0 (#107)
      Release prep.  !wip
      fix: Reload and process after tag removals, fixes #102. (PR #103)
      pep doc strings.  !wip
      Update nicfit.py from 0.6.5 to 0.6.6 (#100)
      Update pyaml from 17.8.0 to 17.10.0 (#99)

commit 54b4735
Author: Travis Shirk <[email protected]>
Date:   Fri Nov 3 18:46:13 2017 -0600

    fix: IOError (nor OSError) have a message attr.

commit f1d7160
Author: gaetano-guerriero <[email protected]>
Date:   Wed Nov 1 00:35:23 2017 +0100

    Fix bad frames detection in stats plugin for python3 (#113)

    Comparison of string vs binary string was preventing detection of private frames
    in stats plugin.

commit 6916b24
Author: gaetano-guerriero <[email protected]>
Date:   Wed Nov 1 00:23:56 2017 +0100

    script exits with 0 status when called with --version/--help (#109)

    finally clause in _main() function was blocking argparse behaviour of exiting
    with 0 status code when those options are used.

commit 19e29cd
Author: pyup.io bot <[email protected]>
Date:   Sun Oct 29 18:45:03 2017 +0100

    Update pytest-runner from 2.12.1 to 3.0 (#108)

commit 2abec50
Author: pyup.io bot <[email protected]>
Date:   Thu Oct 26 17:12:40 2017 +0200

    Update sphinx from 1.6.4 to 1.6.5 (#106)

commit c91d4db
Author: pyup.io bot <[email protected]>
Date:   Thu Oct 26 17:12:21 2017 +0200

    Update flake8 from 3.4.1 to 3.5.0 (#107)

commit 73c613c
Merge: 7cb06a8 24a6888
Author: Travis Shirk <[email protected]>
Date:   Mon Oct 9 00:07:43 2017 -0600

    Merge branch 'master' of github.com:nicfit/eyeD3

    * 'master' of github.com:nicfit/eyeD3:
      Update pytest from 3.2.2 to 3.2.3 (#98)
      Update tox from 2.9.0 to 2.9.1 (#97)
      Update tox from 2.8.2 to 2.9.0 (#96)
      Update pip-tools from 1.9.0 to 1.10.1 (#95)
      Update sphinx from 1.6.3 to 1.6.4 (#93)

commit 7cb06a8
Author: Travis Shirk <[email protected]>
Date:   Mon Oct 9 00:07:09 2017 -0600

    pep8 !wip
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.

2 participants