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

Initial Update #2

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Initial Update #2

wants to merge 14 commits into from

Conversation

pyup-bot
Copy link

@pyup-bot pyup-bot commented Mar 2, 2017

This is my first visit to this fine repo so I have bundled all updates in a single pull request to make things easier for you to merge.

Close this pull request and delete the branch if you want me to start with single pull requests right away

Here's the executive summary:

Updates

Here's a list of all the updates bundled in this pull request. I've added some links to make it easier for you to find all the information you need.

Flask 0.10.1 » 0.12 PyPI | Changelog | Repo
Werkzeug 0.11.9 » 0.11.15 PyPI | Changelog | Homepage
Jinja2 2.8 » 2.9.5 PyPI | Changelog | Homepage
Flask-SQLAlchemy 2.1 » 2.2 PyPI | Changelog | Repo | Docs
SQLAlchemy 1.0.13 » 1.1.6 PyPI | Homepage
Flask-Migrate 1.8.0 » 2.0.3 PyPI | Changelog | Repo | Docs
Flask-WTF 0.12 » 0.14.2 PyPI | Changelog | Repo | Docs
Flask-Assets 0.11 » 0.12 PyPI | Changelog | Repo
Flask-Login 0.2.11 » 0.4.0 PyPI | Changelog | Repo | Docs
pytest 3.0.6 » 3.0.6 PyPI | Changelog | Homepage
webtest 2.0.25 » 2.0.25 PyPI | Changelog | Homepage
Flask-Script 2.0.5 » 2.0.5 PyPI | Changelog | Repo | Docs
Flask-DebugToolbar 0.10.0 » 0.10.1 PyPI | Changelog | Docs
boto 2.20.0 » 2.46.1 PyPI | Changelog | Repo

Changelogs

Flask 0.10.1 -> 0.12

0.12


Released on December 21st 2016, codename Punsch.

  • the cli command now responds to --version.
  • Mimetype guessing and ETag generation for file-like objects in send_file
    has been removed, as per issue 104. See pull request 1849.
  • Mimetype guessing in send_file now fails loudly and doesn't fall back to
    application/octet-stream. See pull request 1988.
  • Make flask.safe_join able to join multiple paths like os.path.join
    (pull request 1730).
  • Revert a behavior change that made the dev server crash instead of returning
    a Internal Server Error (pull request 2006).
  • Correctly invoke response handlers for both regular request dispatching as
    well as error handlers.
  • Disable logger propagation by default for the app logger.
  • Add support for range requests in send_file.
  • app.test_client includes preset default environment, which can now be
    directly set, instead of per client.get.

0.11.2


Bugfix release, unreleased

  • Fix crash when running under PyPy3, see pull request 1814.

0.11.1


Bugfix release, released on June 7th 2016.

  • Fixed a bug that prevented FLASK_APP=foobar/__init__.py from working. See
    pull request 1872.

0.11


Released on May 29th 2016, codename Absinthe.

  • Added support to serializing top-level arrays to :func:flask.jsonify. This
    introduces a security risk in ancient browsers. See
    :ref:json-security for details.
  • Added before_render_template signal.
  • Added **kwargs to :meth:flask.Test.test_client to support passing
    additional keyword arguments to the constructor of
    :attr:flask.Flask.test_client_class.
  • Added SESSION_REFRESH_EACH_REQUEST config key that controls the
    set-cookie behavior. If set to True a permanent session will be
    refreshed each request and get their lifetime extended, if set to
    False it will only be modified if the session actually modifies.
    Non permanent sessions are not affected by this and will always
    expire if the browser window closes.
  • Made Flask support custom JSON mimetypes for incoming data.
  • Added support for returning tuples in the form (response, headers)
    from a view function.
  • Added :meth:flask.Config.from_json.
  • Added :attr:flask.Flask.config_class.
  • Added :meth:flask.Config.get_namespace.
  • Templates are no longer automatically reloaded outside of debug mode. This
    can be configured with the new TEMPLATES_AUTO_RELOAD config key.
  • Added a workaround for a limitation in Python 3.3's namespace loader.
  • Added support for explicit root paths when using Python 3.3's namespace
    packages.
  • Added :command:flask and the flask.cli module to start the local
    debug server through the click CLI system. This is recommended over the old
    flask.run() method as it works faster and more reliable due to a
    different design and also replaces Flask-Script.
  • Error handlers that match specific classes are now checked first,
    thereby allowing catching exceptions that are subclasses of HTTP
    exceptions (in werkzeug.exceptions). This makes it possible
    for an extension author to create exceptions that will by default
    result in the HTTP error of their choosing, but may be caught with
    a custom error handler if desired.
  • Added :meth:flask.Config.from_mapping.
  • Flask will now log by default even if debug is disabled. The log format is
    now hardcoded but the default log handling can be disabled through the
    LOGGER_HANDLER_POLICY configuration key.
  • Removed deprecated module functionality.
  • Added the EXPLAIN_TEMPLATE_LOADING config flag which when enabled will
    instruct Flask to explain how it locates templates. This should help
    users debug when the wrong templates are loaded.
  • Enforce blueprint handling in the order they were registered for template
    loading.
  • Ported test suite to py.test.
  • Deprecated request.json in favour of request.get_json().
  • Add "pretty" and "compressed" separators definitions in jsonify() method.
    Reduces JSON response size when JSONIFY_PRETTYPRINT_REGULAR=False by removing
    unnecessary white space included by default after separators.
  • JSON responses are now terminated with a newline character, because it is a
    convention that UNIX text files end with a newline and some clients don't
    deal well when this newline is missing. See
    Add JSONIFY_END_WITH_NEWLINE config variable pallets/flask#1262 -- this came up originally as a
    part of https://github.com/kennethreitz/httpbin/issues/168
  • The automatically provided OPTIONS method is now correctly disabled if
    the user registered an overriding rule with the lowercase-version
    options (issue 1288).
  • flask.json.jsonify now supports the datetime.date type (pull request
    1326).
  • Don't leak exception info of already catched exceptions to context teardown
    handlers (pull request 1393).
  • Allow custom Jinja environment subclasses (pull request 1422).
  • flask.g now has pop() and setdefault methods.
  • Turn on autoescape for flask.templating.render_template_string by default
    (pull request 1515).
  • flask.ext is now deprecated (pull request 1484).
  • send_from_directory now raises BadRequest if the filename is invalid on
    the server OS (pull request 1763).
  • Added the JSONIFY_MIMETYPE configuration variable (pull request 1728).
  • Exceptions during teardown handling will no longer leave bad application
    contexts lingering around.

0.10.2


(bugfix release, release date to be announced)

  • Fixed broken test_appcontext_signals() test case.
  • Raise an :exc:AttributeError in :func:flask.helpers.find_package with a
    useful message explaining why it is raised when a PEP 302 import hook is used
    without an is_package() method.
  • Fixed an issue causing exceptions raised before entering a request or app
    context to be passed to teardown handlers.
  • Fixed an issue with query parameters getting removed from requests in
    the test client when absolute URLs were requested.
  • Made before_first_request into a decorator as intended.
  • Fixed an etags bug when sending a file streams with a name.
  • Fixed send_from_directory not expanding to the application root path
    correctly.
  • Changed logic of before first request handlers to flip the flag after
    invoking. This will allow some uses that are potentially dangerous but
    should probably be permitted.
  • Fixed Python 3 bug when a handler from app.url_build_error_handlers
    reraises the BuildError.

Werkzeug 0.11.9 -> 0.11.15

0.11.14


Released on December 30th 2016.

  • Check if platform can fork before importing ForkingMixIn, raise exception
    when creating ForkingWSGIServer on such a platform, see PR 999.

0.11.13


Released on December 26th 2016.

  • Correct fix for the reloader issuer on certain Windows installations.

0.11.12


Released on December 26th 2016.

  • Fix more bugs in multidicts regarding empty lists. See 1000.
  • Add some docstrings to some EnvironBuilder properties that were previously
    unintentionally missing.
  • Added a workaround for the reloader on windows.

0.11.11


Released on August 31st 2016.

  • Fix JSONRequestMixin for Python3. See 731
  • Fix broken string handling in test client when passing integers. See 852
  • Fix a bug in parse_options_header where an invalid content type
    starting with comma or semi-colon would result in an invalid return value,
    see issue 995.
  • Fix a bug in multidicts when passing empty lists as values, see issue
    979.
  • Fix a security issue that allows XSS on the Werkzeug debugger. See 1001.

0.11.10


Released on May 24th 2016.

  • Fixed a bug that occurs when running on Python 2.6 and using a broken locale.
    See pull request 912.
  • Fixed a crash when running the debugger on Google App Engine. See issue 925.
  • Fixed an issue with multipart parsing that could cause memory exhaustion.

Jinja2 2.8 -> 2.9.5

2.9.5


(bugfix release, released on January 28th 2017)

  • Restored the original repr of the internal _GroupTuple because this
    caused issues with ansible and it was an unintended change. (654)
  • Added back support for custom contexts that override the old resolve
    method since it was hard for people to spot that this could cause a
    regression.
  • Correctly use the buffer for the else block of for loops. This caused
    invalid syntax errors to be caused on 2.x and completely wrong behavior
    on Python 3 (669)
  • Resolve an issue where the {% extends %} tag could not be used with
    async environments. (668)
  • Reduce memory footprint slightly by reducing our unicode database dump
    we use for identifier matching on Python 3 (666)
  • Fixed autoescaping not working for macros in async compilation mode. (671)

2.9.4


(bugfix release, released on January 10th 2017)

  • Solved some warnings for string literals. (646)
  • Increment the bytecode cache version which was not done due to an
    oversight before.
  • Corrected bad code generation and scoping for filtered loops. (649)
  • Resolved an issue where top-level output silencing after known extend
    blocks could generate invalid code when blocks where contained in if
    statements. (651)
  • Made the truncate.leeway default configurable to improve compatibility
    with older templates.

2.9.3


(bugfix release, released on January 8th 2017)

  • Restored the use of blocks in macros to the extend that was possible
    before. On Python 3 it would render a generator repr instead of
    the block contents. (645)
  • Set a consistent behavior for assigning of variables in inner scopes
    when the variable is also read from an outer scope. This now sets the
    intended behavior in all situations however it does not restore the
    old behavior where limited assignments to outer scopes was possible.
    For more information and a discussion see 641
  • Resolved an issue where block scoped would not take advantage of the
    new scoping rules. In some more exotic cases a variable overriden in a
    local scope would not make it into a block.
  • Change the code generation of the with statement to be in line with the
    new scoping rules. This resolves some unlikely bugs in edge cases. This
    also introduces a new internal With node that can be used by extensions.

2.9.2


(bugfix release, released on January 8th 2017)

  • Fixed a regression that caused for loops to not be able to use the same
    variable for the target as well as source iterator. (640)
  • Add support for a previously unknown behavior of macros. It used to be
    possible in some circumstances to explicitly provide a caller argument
    to macros. While badly buggy and unintended it turns out that this is a
    common case that gets copy pasted around. To not completely break backwards
    compatibility with the most common cases it's now possible to provide an
    explicit keyword argument for caller if it's given an explicit default.
    (642)

2.9.1


(bugfix release, released on January 7th 2017)

  • Resolved a regression with call block scoping for macros. Nested caller
    blocks that used the same identifiers as outer macros could refer to the
    wrong variable incorrectly.

2.9


(codename Derivation, released on January 7th 2017)

  • Change cache key definition in environment. This fixes a performance
    regression introduced in 2.8.
  • Added support for generator_stop on supported Python versions
    (Python 3.5 and later)
  • Corrected a long standing issue with operator precedence of math operations
    not being what was expected.
  • Added support for Python 3.6 async iterators through a new async mode.
  • Added policies for filter defaults and similar things.
  • urlize now sets "rel noopener" by default.
  • Support attribute fallback for old-style classes in 2.x.
  • Support toplevel set statements in extend situations.
  • Restored behavior of Cycler for Python 3 users.
  • Subtraction now follows the same behavior as other operators on undefined
    values.
  • map and friends will now give better error messages if you forgot to
    quote the parameter.
  • Depend on MarkupSafe 0.23 or higher.
  • Improved the truncate filter to support better truncation in case
    the string is barely truncated at all.
  • Change the logic for macro autoescaping to be based on the runtime
    autoescaping information at call time instead of macro define time.
  • Ported a modified version of the tojson filter from Flask to Jinja2
    and hooked it up with the new policy framework.
  • Block sets are now marked safe by default.
  • On Python 2 the asciification of ASCII strings can now be disabled with
    the compiler.ascii_str policy.
  • Tests now no longer accept an arbitrary expression as first argument but
    a restricted one. This means that you can now properly use multiple
    tests in one expression without extra parentheses. In particular you can
    now write foo is divisibleby 2 or foo is divisibleby 3
    as you would expect.
  • Greatly changed the scoping system to be more consistent with what template
    designers and developers expect. There is now no more magic difference
    between the different include and import constructs. Context is now always
    propagated the same way. The only remaining differences is the defaults
    for with context and without context.
  • The with and autoescape tags are now built-in.
  • Added the new select_autoescape function which helps configuring better
    autoescaping easier.

2.8.2


(bugfix release, unreleased)

  • Fixed a runtime error in the sandbox when attributes of async generators
    were accessed.

2.8.1


(bugfix release, released on December 29th 2016)

  • Fixed the for_qs flag for urlencode.
  • Fixed regression when applying int to non-string values.
  • SECURITY: if the sandbox mode is used format expressions are now sandboxed
    with the same rules as in Jinja. This solves various information leakage
    problems that can occur with format strings.

Flask-SQLAlchemy 2.1 -> 2.2

2.2


Released on February 27, 2017, codename Dubnium

  • Minimum SQLAlchemy version is 0.8 due to use of sqlalchemy.inspect.
  • Added support for custom query_class and model_class as args
    to the SQLAlchemy constructor. (328_)
  • Allow listening to SQLAlchemy events on db.session. (364_)
  • Allow __bind_key__ on abstract models. (373_)
  • Allow SQLALCHEMY_ECHO to be a string. (409_)
  • Warn when SQLALCHEMY_DATABASE_URI is not set. (443_)
  • Don't let pagination generate invalid page numbers. (460_)
  • Drop support of Flask < 0.10. This means the db session is always tied to
    the app context and its teardown event. (461_)
  • Tablename generation logic no longer accesses class properties unless they
    are declared_attr. (467_)

.. _328: pallets-eco/flask-sqlalchemy#328
.. _364: pallets-eco/flask-sqlalchemy#364
.. _373: pallets-eco/flask-sqlalchemy#373
.. _409: pallets-eco/flask-sqlalchemy#409
.. _443: pallets-eco/flask-sqlalchemy#443
.. _460: pallets-eco/flask-sqlalchemy#460
.. _461: pallets-eco/flask-sqlalchemy#461
.. _467: pallets-eco/flask-sqlalchemy#467

Flask-Migrate 1.8.0 -> 2.0.3

2.0.3

  • Support multiple -x arguments in the Flask-Script interface (103)

2.0.2

  • Support passing alembic context kwargs from constructor into init_app (138)

2.0.1

  • Fix flake8 warnings in Alembic templates (136)

2.0.0

  • Added Travis CI builds for Python 3.5
  • Support for the new Flask CLI based on Click

1.8.1

  • Allow to init_app to work correctly when db is given in constructor (118)

Flask-WTF 0.12 -> 0.14.2

0.14.2


Released 2017-01-10

  • Fix bug where FlaskForm assumed meta argument was not None if it
    was passed. (278_)

.. _278: pallets-eco/flask-wtf#278

0.14.1


Released 2017-01-10

  • Fix bug where the file validators would incorrectly identify an empty file as
    valid data. (276, 277)
  • FileField is no longer deprecated. The data is checked during
    processing and only set if it's a valid file.
  • has_file is deprecated; it's now equivalent to bool(field.data).
  • FileRequired and FileAllowed work with both the Flask-WTF and
    WTForms FileField classes.
  • The Optional validator now works with FileField.

.. _276: pallets-eco/flask-wtf#276
.. _277: pallets-eco/flask-wtf#277

0.14


Released 2017-01-06

  • Use itsdangerous to sign CSRF tokens and check expiration instead of doing it
    ourselves. (264_)
  • All tokens are URL safe, removing the url_safe parameter from
    generate_csrf. (206_)
  • All tokens store a timestamp, which is checked in validate_csrf. The
    time_limit parameter of generate_csrf is removed.
  • Remove the app attribute from CsrfProtect, use current_app.
    (264_)
  • CsrfProtect protects the DELETE method by default. (264_)
  • The same CSRF token is generated for the lifetime of a request. It is exposed
    as request.csrf_token for use during testing. (227, 264)
  • CsrfProtect.error_handler is deprecated. (264_)
  • Handlers that return a response work in addition to those that raise an
    error. The behavior was not clear in previous docs.
  • (200, 209, 243, 252)
  • Use Form.Meta instead of deprecated SecureForm for CSRF (and
    everything else). (216, 271)
  • csrf_enabled parameter is still recognized but deprecated. All other
    attributes and methods from SecureForm are removed. (271_)
  • Provide WTF_CSRF_FIELD_NAME to configure the name of the CSRF token.
    (271_)
  • validate_csrf raises wtforms.ValidationError with specific messages
    instead of returning True or False. This breaks anything that was
    calling the method directly. (239, 271)
  • CSRF errors are logged as well as raised. (239_)
  • CsrfProtect is renamed to CSRFProtect. A deprecation warning is issued
    when using the old name. CsrfError is renamed to CSRFError without
    deprecation. (271_)
  • FileField is deprecated because it no longer provides functionality over
    the provided validators. Use wtforms.FileField directly. (272_)

.. _200: pallets-eco/flask-wtf#200
.. _209: pallets-eco/flask-wtf#209
.. _216: pallets-eco/flask-wtf#216
.. _227: pallets-eco/flask-wtf#227
.. _239: pallets-eco/flask-wtf#239
.. _243: pallets-eco/flask-wtf#243
.. _252: pallets-eco/flask-wtf#252
.. _264: pallets-eco/flask-wtf#264
.. _271: pallets-eco/flask-wtf#271
.. _272: pallets-eco/flask-wtf#272

0.13.1


Released 2016/10/6

  • Deprecation warning for Form is shown during __init__ instead of immediately when subclassing. (262_)
  • Don't use pkg_resources to get version, for compatibility with GAE. (261_)

.. _261: pallets-eco/flask-wtf#261
.. _262: pallets-eco/flask-wtf#262

0.13


Released 2016/09/29

  • Form is renamed to FlaskForm in order to avoid name collision with WTForms's base class. Using Form will show a deprecation warning. (250_)
  • hidden_tag no longer wraps the hidden inputs in a hidden div. This is valid HTML5 and any modern HTML parser will behave correctly. (217, 193)
  • flask_wtf.html5 is deprecated. Import directly from wtforms.fields.html5. (251_)
  • is_submitted is true for PATCH and DELETE in addition to POST and PUT. (187_)
  • generate_csrf takes a token_key parameter to specify the key stored in the session. (206_)
  • generate_csrf takes a url_safe parameter to allow the token to be used in URLs. (206_)
  • form.data can be accessed multiple times without raising an exception. (248_)
  • File extension with multiple parts (.tar.gz) can be used in the FileAllowed validator. (201_)

.. _187: pallets-eco/flask-wtf#187
.. _193: pallets-eco/flask-wtf#193
.. _201: pallets-eco/flask-wtf#201
.. _206: pallets-eco/flask-wtf#206
.. _217: pallets-eco/flask-wtf#217
.. _248: pallets-eco/flask-wtf#248
.. _250: pallets-eco/flask-wtf#250
.. _251: pallets-eco/flask-wtf#251

Flask-Assets 0.11 -> 0.12

0.12

  • Added registration of Flask CLI commands using flask.commands
    entrypoint group. (Jiri Kuncar)
  • Added an optional support for FlaskAzureStorage when
    FLASK_ASSETS_USE_AZURE is set. (Alejo Arias)
  • Updated Flask extension imports for compatibility with Flask 0.11.
    (Andy Driver) (fixes 102)
  • Fixed generation of absolute urls using //. (fixes 73)
  • Fixed Flask-Script assets build command. (Frank Tackitt)

Flask-Login 0.2.11 -> 0.4.0

0.4.0


Released on October 26th, 2016

  • Fixes OPTIONS exemption from login. 244
  • Fixes use of MD5 by replacing with SHA512. 264
  • BREAKING: The login_manager.token_handler function, get_auth_token method
    on the User class, and the utils.make_secure_token utility function have
    been removed to prevent users from creating insecure auth implementations.
    Use the Alternative Tokens example from the docs instead. 291

0.3.2


Released on October 8th, 2015

  • Fixes Python 2.6 compatibility.
  • Updates SESSION_KEYS to include "remember".

0.3.1


Released on September 30th, 2015

  • Fixes removal of non-Flask-Login keys from session object when using 'strong'
    protection.

0.3.0


Released on September 10th, 2015

  • Fixes handling of X-Forward-For header.
  • Update to use SHA512 instead of MD5 for session identifier creation.
  • Fixes session creation for every view.
  • BREAKING: UTC used to set cookie duration.
  • BREAKING: Non-fresh logins now returns HTTP 401.
  • Support unicode user IDs in cookie.
  • Fixes user_logged_out signal invocation.
  • Support for per-Blueprint login views.
  • BREAKING: The is_authenticated, is_active, and is_anonymous members of
    the user class are now properties, not methods. Applications should update
    their user classes accordingly.
  • Various other improvements including documentation and code clean up.

pytest -> 3.0.6

3.0.6.dev0

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

  • pytest no longer generates PendingDeprecationWarning from its own operations, which was introduced by mistake in version 3.0.5 (2118).
    Thanks to nicoddemus
    for the report and RonnyPfannschmidt_ for the PR.
  • pytest no longer recognizes coroutine functions as yield tests (2129).
    Thanks to malinoff
    for the PR.
  • Plugins loaded by the PYTEST_PLUGINS environment variable are now automatically
    considered for assertion rewriting (2185).
    Thanks nicoddemus
    for the PR.
  • Improve error message when pytest.warns fails (2150). The type(s) of the
    expected warnings and the list of caught warnings is added to the
    error message. Thanks lesteve
    for the PR.
  • Fix pytester internal plugin to work correctly with latest versions of
    zope.interface (1989). Thanks nicoddemus for the PR.
  • Assert statements of the pytester plugin again benefit from assertion rewriting (1920).
    Thanks RonnyPfannschmidt
    for the report and nicoddemus_ for the PR.
  • Specifying tests with colons like test_foo.py::test_bar for tests in
    subdirectories with ini configuration files now uses the correct ini file
    (2148). Thanks pelme.
  • Fail testdir.runpytest().assert_outcomes() explicitly if the pytest
    terminal output it relies on is missing. Thanks to eli-b_ for the PR.

.. _lesteve: https://github.com/lesteve
.. _malinoff: https://github.com/malinoff
.. _pelme: https://github.com/pelme
.. _eli-b: https://github.com/eli-b

.. _2118: pytest-dev/pytest#2118

.. _1989: pytest-dev/pytest#1989
.. _1920: pytest-dev/pytest#1920
.. _2129: pytest-dev/pytest#2129
.. _2148: pytest-dev/pytest#2148
.. _2150: pytest-dev/pytest#2150
.. _2185: pytest-dev/pytest#2185

3.0.5

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

  • Add warning when not passing option=value correctly to -o/--override-ini (2105).
    Also improved the help documentation. Thanks to mbukatov
    for the report and
    lwm_ for the PR.
  • Now --confcutdir and --junit-xml are properly validated if they are directories
    and filenames, respectively (2089_ and 2078). Thanks to lwm for the PR.
  • Add hint to error message hinting possible missing __init__.py (478). Thanks DuncanBetts.
  • More accurately describe when fixture finalization occurs in documentation (687). Thanks DuncanBetts.
  • Provide :ref: targets for recwarn.rst so we can use intersphinx referencing.
    Thanks to dupuy_ for the report and lwm_ for the PR.
  • In Python 2, use a simple +- ASCII string in the string representation of pytest.approx (for example &quot;4 +- 4.0e-06&quot;)
    because it is brittle to handle that in different contexts and representations internally in pytest
    which can result in bugs such as 2111. In Python 3, the representation still uses ± (for example 4 ± 4.0e-06).
    Thanks kerrick-lyft
    for the report and nicoddemus_ for the PR.
  • Using item.Function, item.Module, etc., is now issuing deprecation warnings, prefer
    pytest.Function, pytest.Module, etc., instead (2034).
    Thanks nmundar
    for the PR.
  • Fix error message using approx with complex numbers (2082).
    Thanks adler-j
    for the report and nicoddemus_ for the PR.
  • Fixed false-positives warnings from assertion rewrite hook for modules imported more than
    once by the pytest_plugins mechanism.
    Thanks nicoddemus_ for the PR.
  • Remove an internal cache which could cause hooks from conftest.py files in
    sub-directories to be called in other directories incorrectly (2016).
    Thanks d-b-w
    for the report and nicoddemus_ for the PR.
  • Remove internal code meant to support earlier Python 3 versions that produced the side effect
    of leaving None in sys.modules when expressions were evaluated by pytest (for example passing a condition
    as a string to pytest.mark.skipif)(2103).
    Thanks jaraco
    for the report and nicoddemus_ for the PR.
  • Cope gracefully with a .pyc file with no matching .py file (2038). Thanks
    nedbat
    .

.. _adler-j: https://github.com/adler-j
.. _d-b-w: https://bitbucket.org/d-b-w/
.. _DuncanBetts: https://github.com/DuncanBetts
.. _dupuy: https://bitbucket.org/dupuy/
.. _kerrick-lyft: https://github.com/kerrick-lyft
.. _lwm: https://github.com/lwm
.. _mbukatov: https://github.com/mbukatov
.. _nedbat: https://github.com/nedbat
.. _nmundar: https://github.com/nmundar

.. _2016: pytest-dev/pytest#2016
.. _2034: pytest-dev/pytest#2034
.. _2038: pytest-dev/pytest#2038
.. _2078: pytest-dev/pytest#2078
.. _2082: pytest-dev/pytest#2082
.. _2089: pytest-dev/pytest#2089
.. _2103: pytest-dev/pytest#2103
.. _2105: pytest-dev/pytest#2105
.. _2111: pytest-dev/pytest#2111
.. _478: pytest-dev/pytest#478
.. _687: pytest-dev/pytest#687

3.0.4

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

  • Import errors when collecting test modules now display the full traceback (1976).
    Thanks cwitty
    for the report and nicoddemus_ for the PR.
  • Fix confusing command-line help message for custom options with two or more metavar properties (2004).
    Thanks okulynyak
    and davehunt_ for the report and nicoddemus_ for the PR.
  • When loading plugins, import errors which contain non-ascii messages are now properly handled in Python 2 (1998).
    Thanks nicoddemus
    for the PR.
  • Fixed cyclic reference when pytest.raises is used in context-manager form (1965). Also as a
    result of this fix, sys.exc_info() is left empty in both context-manager and function call usages.
    Previously, sys.exc_info would contain the exception caught by the context manager,
    even when the expected exception occurred.
    Thanks MSeifert04
    for the report and the PR.
  • Fixed false-positives warnings from assertion rewrite hook for modules that were rewritten but
    were later marked explicitly by pytest.register_assert_rewrite
    or implicitly as a plugin (2005).
    Thanks RonnyPfannschmidt
    for the report and nicoddemus_ for the PR.
  • Report teardown output on test failure (442).
    Thanks matclab
    for the PR.
  • Fix teardown error message in generated xUnit XML.
    Thanks gdyuldin_ for the PR.
  • Properly handle exceptions in multiprocessing tasks (1984).
    Thanks adborden
    for the report and nicoddemus_ for the PR.
  • Clean up unittest TestCase objects after tests are complete (1649).
    Thanks d_b_w
    for the report and PR.

.. _adborden: https://github.com/adborden
.. _cwitty: https://github.com/cwitty
.. _d_b_w: https://github.com/d_b_w
.. _gdyuldin: https://github.com/gdyuldin
.. _matclab: https://github.com/matclab
.. _MSeifert04: https://github.com/MSeifert04
.. _okulynyak: https://github.com/okulynyak

.. _442: pytest-dev/pytest#442
.. _1965: pytest-dev/pytest#1965
.. _1976: pytest-dev/pytest#1976
.. _1984: pytest-dev/pytest#1984
.. _1998: pytest-dev/pytest#1998
.. _2004: pytest-dev/pytest#2004
.. _2005: pytest-dev/pytest#2005
.. _1649: pytest-dev/pytest#1649

3.0.3

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

  • The ids argument to parametrize again accepts unicode strings
    in Python 2 (1905).
    Thanks philpep
    for the report and nicoddemus_ for the PR.
  • Assertions are now being rewritten for plugins in development mode
    (pip install -e) (1934).
    Thanks nicoddemus
    for the PR.
  • Fix pkg_resources import error in Jython projects (1853).
    Thanks raquel-ucl
    for the PR.
  • Got rid of AttributeError: &#39;Module&#39; object has no attribute &#39;_obj&#39; exception
    in Python 3 (1944).
    Thanks axil
    for the PR.
  • Explain a bad scope value passed to fixture declarations or
    a MetaFunc.parametrize() call. Thanks tgoodlet_ for the PR.
  • This version includes pluggy-0.4.0, which correctly handles
    VersionConflict errors in plugins (704).
    Thanks nicoddemus
    for the PR.

.. _philpep: https://github.com/philpep
.. _raquel-ucl: https://github.com/raquel-ucl
.. _axil: https://github.com/axil
.. _tgoodlet: https://github.com/tgoodlet

.. _1853: pytest-dev/pytest#1853
.. _1905: pytest-dev/pytest#1905
.. _1934: pytest-dev/pytest#1934
.. _1944: pytest-dev/pytest#1944
.. _704: pytest-dev/pytest#704

3.0.2

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

  • Improve error message when passing non-string ids to pytest.mark.parametrize (1857).
    Thanks okken
    for the report and nicoddemus_ for the PR.
  • Add buffer attribute to stdin stub class pytest.capture.DontReadFromInput
    Thanks joguSD_ for the PR.
  • Fix UnicodeEncodeError when string comparison with unicode has failed. (1864)
    Thanks AiOO
    for the PR.
  • pytest_plugins is now handled correctly if defined as a string (as opposed as
    a sequence of strings) when modules are considered for assertion rewriting.
    Due to this bug, much more modules were being rewritten than necessary
    if a test suite uses pytest_plugins to load internal plugins (1888).
    Thanks jaraco
    for the report and nicoddemus_ for the PR (1891_).
  • Do not call tearDown and cleanups when running tests from
    unittest.TestCase subclasses with --pdb
    enabled. This allows proper post mortem debugging for all applications
    which have significant logic in their tearDown machinery (1890). Thanks
    mbyt
    for the PR.
  • Fix use of deprecated getfuncargvalue method in the internal doctest plugin.
    Thanks ViviCoder_ for the report (1898_).

.. _joguSD: https://github.com/joguSD
.. _AiOO: https://github.com/AiOO
.. _mbyt: https://github.com/mbyt
.. _ViviCoder: https://github.com/ViviCoder

.. _1857: pytest-dev/pytest#1857
.. _1864: pytest-dev/pytest#1864
.. _1888: pytest-dev/pytest#1888
.. _1891: pytest-dev/pytest#1891
.. _1890: pytest-dev/pytest#1890
.. _1898: pytest-dev/pytest#1898

3.0.1

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

  • Fix regression when importorskip is used at module level (1822).
    Thanks jaraco
    and The-Compiler_ for the report and nicoddemus_ for the PR.
  • Fix parametrization scope when session fixtures are used in conjunction
    with normal parameters in the same call (1832).
    Thanks The-Compiler
    for the report, Kingdread_ and nicoddemus_ for the PR.
  • Fix internal error when parametrizing tests or fixtures using an empty ids argument (1849).
    Thanks OPpuolitaival
    for the report and nicoddemus_ for the PR.
  • Fix loader error when running pytest embedded in a zipfile.
    Thanks mbachry_ for the PR.

.. _Kingdread: https://github.com/Kingdread
.. _mbachry: https://github.com/mbachry
.. _OPpuolitaival: https://github.com/OPpuolitaival

.. _1822: pytest-dev/pytest#1822
.. _1832: pytest-dev/pytest#1832
.. _1849: pytest-dev/pytest#1849

3.0.0

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

Incompatible changes

A number of incompatible changes were made in this release, with the intent of removing features deprecated for a long
time or change existing behaviors in order to make them less surprising/more useful.

  • Reinterpretation mode has now been removed. Only plain and rewrite
    mode are available, consequently the --assert=reinterp option is
    no longer available. This also means files imported from plugins or
    conftest.py will not benefit from improved assertions by
    default, you should use pytest.register_assert_rewrite() to
    explicitly turn on assertion rewriting for those files. Thanks
    flub_ for the PR.
  • The following deprecated commandline options were removed:
  • --genscript: no longer supported;
  • --no-assert: use --assert=plain instead;
  • --nomagic: use --assert=plain instead;
  • --report: use -r instead;

Thanks to RedBeardCode_ for the PR (1664_).

  • ImportErrors in plugins now are a fatal error instead of issuing a
    pytest warning (1479). Thanks to The-Compiler for the PR.
  • Removed support code for Python 3 versions < 3.3 (1627_).
  • Removed all py.test-X* entry points. The versioned, suffixed entry points
    were never documented and a leftover from a pre-virtualenv era. These entry
    points also created broken entry points in wheels, so removing them also
    removes a source of confusion for users (1632).
    Thanks obestwalter
    for the PR.
  • pytest.skip() now raises an error when used to decorate a test function,
    as opposed to its original intent (to imperatively skip a test inside a test function). Previously
    this usage would cause the entire module to be skipped (607).
    Thanks omarkohl
    for the complete PR (1519_).
  • Exit tests if a collection error occurs. A poll indicated most users will hit CTRL-C
    anyway as soon as they see collection errors, so pytest might as well make that the default behavior (1421).
    A --continue-on-collection-errors option has been added to restore the previous behaviour.
    Thanks olegpidsadnyi
    and omarkohl_ for the complete PR (1628_).
  • Renamed the pytest pdb module (plugin) into debugging to avoid clashes with the builtin pdb module.
  • Raise a helpful failure message when requesting a parametrized fixture at runtime,
    e.g. with request.getfixturevalue. Previously these parameters were simply
    never defined, so a fixture decorated like pytest.fixture(params=[0, 1, 2])
    only ran once (460).
    Thanks to nikratio
    for the bug report, RedBeardCode_ and tomviner_ for the PR.
  • _pytest.monkeypatch.monkeypatch class has been renamed to _pytest.monkeypatch.MonkeyPatch
    so it doesn't conflict with the monkeypatch fixture.
  • --exitfirst / -x can now be overridden by a following --maxfail=N
    and is just a synonym for --maxfail=1.

New Features

  • Support nose-style __test__ attribute on methods of classes,
    including unittest-style Classes. If set to False, the test will not be
    collected.
  • New doctest_namespace fixture for injecting names into the
    namespace in which doctests run.
    Thanks milliams_ for the complete PR (1428_).
  • New --doctest-report option available to change the output format of diffs
    when running (failing) doctests (implements 1749).
    Thanks hartym
    for the PR.
  • New name argument to pytest.fixture decorator which allows a custom name
    for a fixture (to solve the funcarg-shadowing-fixture problem).
    Thanks novas0x2a_ for the complete PR (1444_).
  • New approx() function for easily comparing floating-point numbers in
    tests.
    Thanks kalekundert_ for the complete PR (1441_).
  • Ability to add global properties in the final xunit output file by accessing
    the internal junitxml plugin (experimental).
    Thanks tareqalayan_ for the complete PR 1454_).
  • New ExceptionInfo.match() method to match a regular expression on the
    string representation of an exception (372).
    Thanks omarkohl
    for the complete PR (1502_).
  • __tracebackhide__ can now also be set to a callable which then can decide
    whether to filter the traceback based on the ExceptionInfo object passed
    to it. Thanks The-Compiler_ for the complete PR (1526_).
  • New pytest_make_parametrize_id(config, val) hook which can be used by plugins to provide
    friendly strings for custom types.
    Thanks palaviv_ for the PR.
  • capsys and capfd now have a disabled() context-manager method, which
    can be used to temporarily disable capture within a test.
    Thanks nicoddemus_ for the PR.
  • New cli flag --fixtures-per-test: shows which fixtures are being used
    for each selected test item. Features doc strings of fixtures by default.
    Can also show where fixtures are defined if combined with -v.
    Thanks hackebrot_ for the PR.
  • Introduce pytest command as recommended entry point. Note that py.test
    still works and is not scheduled for removal. Closes proposal
    1629. Thanks obestwalter and davehunt_ for the complete PR
    (1633_).
  • New cli flags:
  • --setup-plan: performs normal collection and reports
    the potential setup and teardown and does not execute any fixtures and tests;
  • --setup-only: performs normal collection, executes setup and teardown of
    fixtures and reports them;
  • --setup-show: performs normal test execution and additionally shows
    setup and teardown of fixtures;
  • --keep-duplicates: py.test now ignores duplicated paths given in the command
    line. To retain the previous behavior where the same test could be run multiple
    times by specifying it in the command-line multiple times, pass the --keep-duplicates
    argument (1609_);

Thanks d6e, kvas-it, sallner, ioggstream and omarkohl_ for the PRs.

  • New CLI flag --override-ini/-o: overrides values from the ini file.
    For example: &quot;-o xfail_strict=True&quot;'.
    Thanks blueyed_ and fengxx_ for the PR.
  • New hooks:
  • pytest_fixture_setup(fixturedef, request): executes fixture setup;
  • pytest_fixture_post_finalizer(fixturedef): called after the fixture's
    finalizer and has access to the fixture's result cache.

Thanks d6e, sallner.

  • Issue warnings for asserts whose test is a tuple literal. Such asserts will
    never fail because tuples are always truthy and are usually a mistake
    (see 1562). Thanks kvas-it, for the PR.
  • Allow passing a custom debugger class (e.g. --pdbcls=IPython.core.debugger:Pdb).
    Thanks to anntzer_ for the PR.

Changes

  • Plugins now benefit from assertion rewriting. Thanks
    sober7, nicoddemus and flub_ for the PR.
  • Change report.outcome for xpassed tests to &quot;passed&quot; in non-strict
    mode and &quot;failed&quot; in strict mode. Thanks to hackebrot_ for the PR
    (1795) and gprasad84 for report (1546_).
  • Tests marked with xfail(strict=False) (the default) now appear in
    JUnitXML reports as passing tests instead of skipped.
    Thanks to hackebrot_ for the PR (1795_).
  • Highlight path of the file location in the error report to make it easier to copy/paste.
    Thanks suzaku_ for the PR (1778_).
  • Fixtures marked with pytest.fixture can now use yield statements exactly like
    those marked with the pytest.yield_fixture decorator. This change renders
    pytest.yield_fixture deprecated and makes pytest.fixture with yield statements
    the preferred way to write teardown code (1461).
    Thanks csaftoiu
    for bringing this to attention and nicoddemus_ for the PR.
  • Explicitly passed parametrize ids do not get escaped to ascii (1351).
    Thanks ceridwen
    for the PR.
  • Fixtures are now sorted in the error message displayed when an unknown
    fixture is declared in a test function.
    Thanks nicoddemus_ for the PR.
  • pytest_terminal_summary hook now receives the exitstatus
    of the test session as argument. Thanks blueyed_ for the PR (1809_).
  • Parametrize ids can accept None as specific test id, in which case the
    automatically generated id for that argument will be used.
    Thanks palaviv_ for the complete PR (1468_).
  • The parameter to xunit-style setup/teardown methods (setup_method,
    setup_module, etc.) is now optional and may be omitted.
    Thanks okken_ for bringing this to attention and nicoddemus_ for the PR.
  • Improved automatic id generation selection in case of duplicate ids in
    parametrize.
    Thanks palaviv_ for the complete PR (1474_).
  • Now pytest warnings summary is shown up by default. Added a new flag
    --disable-pytest-warnings to explicitly disable the warnings summary (1668_).
  • Make ImportError during collection more explicit by reminding
    the user to check the name of the test module/package(s) (1426).
    Thanks omarkohl
    for the complete PR (1520_).
  • Add build/ and dist/ to the default --norecursedirs list. Thanks
    mikofski_ for the report and tomviner_ for the PR (1544_).
  • pytest.raises in the context manager form accepts a custom
    message to raise when no exception occurred.
    Thanks palaviv_ for the complete PR (1616_).
  • conftest.py files now benefit from assertion rewriting; previously it
    was only available for test modules. Thanks flub, sober7 and
    nicoddemus_ for the PR (1619_).
  • Text documents without any doctests no longer appear as "skipped".
    Thanks graingert_ for reporting and providing a full PR (1580_).
  • Ensure that a module within a namespace package can be found when it
    is specified on the command line together with the --pyargs
    option. Thanks to taschini_ for the PR (1597_).
  • Always include full assertion explanation during assertion rewriting. The previous behaviour was hiding
    sub-expressions that happened to be False, assuming this was redundant information.
    Thanks bagerard_ for reporting (1503). Thanks to davehunt and
    tomviner_ for the PR.
  • OptionGroup.addoption() now checks if option names were already
    added before, to make it easier to track down issues like 1618_.
    Before, you only got exceptions later from argparse library,
    giving no clue about the actual reason for double-added options.
  • yield-based tests are considered deprecated and will be removed in pytest-4.0.
    Thanks nicoddemus_ for the PR.
  • [pytest] sections in setup.cfg files should now be named [tool:pytest]
    to avoid conflicts with other distutils commands (see 567). [pytest] sections in
    pytest.ini or tox.ini files are supported and unchanged.
    Thanks nicoddemus
    for the PR.
  • Using pytest_funcarg__ prefix to declare fixtures is considered deprecated and will be
    removed in pytest-4.0 (1684).
    Thanks nicoddemus
    for the PR.
  • Passing a command-line string to pytest.main() is considered deprecated and scheduled
    for removal in pytest-4.0. It is recommended to pass a list of arguments instead (1723_).
  • Rename getfuncargvalue to getfixturevalue. getfuncargvalue is
    still present but is now considered deprecated. Thanks to RedBeardCode_ and tomviner_
    for the PR (1626_).
  • optparse type usage now triggers DeprecationWarnings (1740_).
  • optparse backward compatibility supports float/complex types (457_).
  • Refined logic for determining the rootdir, considering only valid
    paths which fixes a number of issues: 1594, 1435 and 1471.
    Updated the documentation according to current behavior. Thanks to
    blueyed
    , davehunt_ and matthiasha_ for the PR.
  • Always include full assertion explanation. The previous behaviour was hiding
    sub-expressions that happened to be False, assuming this was redundant information.
    Thanks bagerard_ for reporting (1503). Thanks to davehunt and
    tomviner_ for PR.
  • Better message in case of not using parametrized variable (see 1539).
    Thanks to tramwaj29
    for the PR.
  • Updated docstrings with a more uniform style.
  • Add stderr write for pytest.exit(msg) during startup. Previously the message was never shown.
    Thanks BeyondEvil_ for reporting 1210. Thanks to JonathonSonesen and
    tomviner_ for the PR.
  • No longer display the incorrect test deselection reason (1372).
    Thanks ronnypfannschmidt
    for the PR.
  • The --resultlog command line option has been deprecated: it is little used
    and there are more modern and better alternatives (see 830).
    Thanks nicoddemus
    for the PR.
  • Improve error message with fixture lookup errors: add an 'E' to the first
    line and '>' to the rest. Fixes 717. Thanks blueyed for reporting and
    a PR, eolo999_ for the initial PR and tomviner_ for his guidance during
    EuroPython2016 sprint.

Bug Fixes

  • Parametrize now correctly handles duplicated test ids.
  • Fix internal error issue when the method argument is missing for
    teardown_method() (1605_).
  • Fix exception visualization in case the current working directory (CWD) gets
    deleted during testing (1235). Thanks bukzor for reporting. PR by
    marscher_.
  • Improve test output for logical expression with brackets (925).
    Thanks DRMacIver
    for reporting and RedBeardCode_ for the PR.
  • Create correct diff for strings ending with newlines (1553).
    Thanks Vogtinator
    for reporting and RedBeardCode_ and
    tomviner_ for the PR.
  • ConftestImportFailure now shows the traceback making it easier to
    identify bugs in conftest.py files (1516). Thanks txomon for
    the PR.
  • Text documents without any doctests no longer appear as "skipped".
    Thanks graingert_ for reporting and providing a full PR (1580_).
  • Fixed collection of classes with custom __new__ method.
    Fixes 1579. Thanks to Stranger6667 for the PR.
  • Fixed scope overriding inside metafunc.parametrize (634).
    Thanks to Stranger6667
    for the PR.
  • Fixed the total tests tally in junit xml output (1798).
    Thanks to cryporchild
    for the PR.
  • Fixed off-by-one error with lines from request.node.warn.
    Thanks to blueyed_ for the PR.

.. _1210: pytest-dev/pytest#1210
.. _1235: pytest-dev/pytest#1235
.. _1351: pytest-dev/pytest#1351
.. _1372: pytest-dev/pytest#1372
.. _1421: pytest-dev/pytest#1421
.. _1426: pytest-dev/pytest#1426
.. _1428: pytest-dev/pytest#1428
.. _1435: pytest-dev/pytest#1435
.. _1441: pytest-dev/pytest#1441
.. _1444: pytest-dev/pytest#1444
.. _1454: pytest-dev/pytest#1454
.. _1461: pytest-dev/pytest#1461
.. _1468: pytest-dev/pytest#1468
.. _1471: pytest-dev/pytest#1471
.. _1474: pytest-dev/pytest#1474
.. _1479: pytest-dev/pytest#1479
.. _1502: pytest-dev/pytest#1502
.. _1503: pytest-dev/pytest#1503
.. _1516: pytest-dev/pytest#1516
.. _1519: pytest-dev/pytest#1519
.. _1520: pytest-dev/pytest#1520
.. _1526: pytest-dev/pytest#1526
.. _1539: pytest-dev/pytest#1539
.. _1544: pytest-dev/pytest#1544
.. _1546: pytest-dev/pytest#1546
.. _1553: pytest-dev/pytest#1553
.. _1562: pytest-dev/pytest#1562
.. _1579: pytest-dev/pytest#1579
.. _1580: pytest-dev/pytest#1580
.. _1594: pytest-dev/pytest#1594
.. _1597: pytest-dev/pytest#1597
.. _1605: pytest-dev/pytest#1605
.. _1616: pytest-dev/pytest#1616
.. _1618: pytest-dev/pytest#1618
.. _1619: pytest-dev/pytest#1619
.. _1626: pytest-dev/pytest#1626
.. _1627: pytest-dev/pytest#1627
.. _1628: pytest-dev/pytest#1628
.. _1629: pytest-dev/pytest#1629
.. _1632: pytest-dev/pytest#1632
.. _1633: pytest-dev/pytest#1633
.. _1664: pytest-dev/pytest#1664
.. _1668: pytest-dev/pytest#1668
.. _1684: pytest-dev/pytest#1684
.. _1723: pytest-dev/pytest#1723
.. _1740: pytest-dev/pytest#1740
.. _1749: pytest-dev/pytest#1749
.. _1778: pytest-dev/pytest#1778
.. _1795: pytest-dev/pytest#1795
.. _1798: pytest-dev/pytest#1798
.. _1809: pytest-dev/pytest#1809
.. _372: pytest-dev/pytest#372
.. _457: pytest-dev/pytest#457
.. _460: pytest-dev/pytest#460
.. _567: pytest-dev/pytest#567
.. _607: pytest-dev/pytest#607
.. _634: pytest-dev/pytest#634
.. _717: pytest-dev/pytest#717
.. _830: pytest-dev/pytest#830
.. _925: pytest-dev/pytest#925

.. _anntzer: https://github.com/anntzer
.. _bagerard: https://github.com/bagerard
.. _BeyondEvil: https://github.com/BeyondEvil
.. _blueyed: https://github.com/blueyed
.. _ceridwen: https://github.com/ceridwen
.. _cryporchild: https://github.com/cryporchild
.. _csaftoiu: https://github.com/csaftoiu
.. _d6e: https://github.com/d6e
.. _davehunt: https://github.com/davehunt
.. _DRMacIver: https://github.com/DRMacIver
.. _eolo999: https://github.com/eolo999
.. _fengxx: https://github.com/fengxx
.. _flub: https://github.com/flub
.. _gprasad84: https://github.com/gprasad84
.. _graingert: https://github.com/graingert
.. _hartym: https://github.com/hartym
.. _JonathonSonesen: https://github.com/JonathonSonesen
.. _kalekundert: https://github.com/kalekundert
.. _kvas-it: https://github.com/kvas-it
.. _marscher: https://github.com/marscher
.. _mikofski: https://github.com/mikofski
.. _milliams: https://github.com/milliams
.. _nikratio: https://github.com/nikratio
.. _novas0x2a: https://github.com/novas0x2a
.. _obestwalter: https://github.com/obestwalter
.. _okken: https://github.com/okken
.. _olegpidsadnyi: https://github.com/olegpidsadnyi
.. _omarkohl: https://github.com/omarkohl
.. _palaviv: https://github.com/palaviv
.. _RedBeardCode: https://github.com/RedBeardCode
.. _sallner: https://github.com/sallner
.. _sober7: https://github.com/sober7
.. _Stranger6667: https://github.com/Stranger6667
.. _suzaku: https://github.com/suzaku
.. _tareqalayan: https://github.com/tareqalayan
.. _taschini: https://github.com/taschini
.. _tramwaj29: https://github.com/tramwaj29
.. _txomon: https://github.com/txomon
.. _Vogtinator: https://github.com/Vogtinator
.. _matthiasha: https://github.com/matthiasha

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(&quot;-c your_absolute_path&quot;).
  • 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.

.. _510: pytest-dev/pytest#510
.. _1506: pytest-dev/pytest#1506
.. _1496: pytest-dev/pytest#1496
.. _1524: pytest-dev/pytest#1524

.. _prusse-martin: https://github.com/prusse-martin
.. _astraw38: https://github.com/astraw38

2.9.1

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

Bug Fixes

  • Improve error message when a plugin fails to load.
    Thanks nicoddemus_ for the PR.
  • Fix (1178 &lt;https://github.com/pytest-dev/pytest/issues/1178&gt;):
    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 &lt;https://github.com/pytest-dev/pytest/issues/578&gt;): 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

.. _1437: pytest-dev/pytest#1437
.. _469: pytest-dev/pytest#469
.. _1431: pytest-dev/pytest#1431
.. _649: pytest-dev/pytest#649
.. _138: pytest-dev/pytest#138

.. _asottile: https://github.com/asottile

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 &lt;https://pylib.readthedocs.io/en/latest/code.html&gt;_ 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 fi

@Amanimasila
Copy link

documentation on how to install

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