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 #11

Closed
wants to merge 15 commits into from
Closed

Initial Update #11

wants to merge 15 commits into from

Conversation

pyup-bot
Copy link
Contributor

@pyup-bot pyup-bot commented Oct 5, 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.

coverage 4.3.4 » 4.4.1 PyPI | Changelog | Docs
decorator 4.0.11 » 4.1.2 PyPI | Changelog | Repo
flake8 3.3.0 » 3.4.1 PyPI | Changelog | Repo
ipdb 0.10.2 » 0.10.3 PyPI | Changelog | Repo
ipython 5.3.0 » 6.2.1 PyPI | Changelog | Homepage
isort 4.2.5 » 4.2.15 PyPI | Changelog | Repo
pluggy 0.4.0 » 0.5.2 PyPI | Changelog | Repo
prompt-toolkit 1.0.13 » 1.0.15 PyPI | Changelog | Repo
ptyprocess 0.5.1 » 0.5.2 PyPI | Repo
py 1.4.33 » 1.4.34 PyPI | Changelog | Repo | Docs
pyflakes 1.5.0 » 1.6.0 PyPI | Changelog | Repo
pytest 3.0.7 » 3.2.3 PyPI | Changelog | Repo | Homepage
pytest-cov 2.4.0 » 2.5.1 PyPI | Changelog | Repo
six 1.10.0 » 1.11.0 PyPI | Changelog | Homepage | Docs
tox 2.6.0 » 2.9.1 PyPI | Changelog | Docs

Changelogs

coverage 4.3.4 -> 4.4.1

4.4.1


  • No code changes: just corrected packaging for Python 2.7 Linux wheels.

.. _changes_44:

4.4


  • Reports could produce the wrong file names for packages, reporting pkg.py
    instead of the correct pkg/__init__.py. This is now fixed. Thanks, Dirk
    Thomas.
  • XML reports could produce <source> and <class> lines that together
    didn't specify a valid source file path. This is now fixed. (issue 526_)
  • Namespace packages are no longer warned as having no code. (issue 572_)
  • Code that uses sys.settrace(sys.gettrace()) in a file that wasn't being
    coverage-measured would prevent correct coverage measurement in following
    code. An example of this was running doctests programmatically. This is now
    fixed. (issue 575_)
  • Errors printed by the coverage command now go to stderr instead of
    stdout.
  • Running coverage xml in a directory named with non-ASCII characters would
    fail under Python 2. This is now fixed. (issue 573_)

.. _issue 526: https://bitbucket.org/ned/coveragepy/issues/526/generated-xml-invalid-paths-for-cobertura
.. _issue 572: https://bitbucket.org/ned/coveragepy/issues/572/no-python-source-warning-for-namespace
.. _issue 573: https://bitbucket.org/ned/coveragepy/issues/573/cant-generate-xml-report-if-some-source
.. _issue 575: https://bitbucket.org/ned/coveragepy/issues/575/running-doctest-prevents-complete-coverage

4.4b1


  • Some warnings can now be individually disabled. Warnings that can be
    disabled have a short name appended. The [run] disable_warnings setting
    takes a list of these warning names to disable. Closes both issue 96_ and
    issue 355_.
  • The XML report now includes attributes from version 4 of the Cobertura XML
    format, fixing issue 570_.
  • In previous versions, calling a method that used collected data would prevent
    further collection. For example, save(), report(), html_report(), and
    others would all stop collection. An explicit start() was needed to get it
    going again. This is no longer true. Now you can use the collected data and
    also continue measurement. Both issue 79_ and issue 448_ described this
    problem, and have been fixed.
  • Plugins can now find unexecuted files if they choose, by implementing the
    find_executable_files method. Thanks, Emil Madsen.
  • Minimal IronPython support. You should be able to run IronPython programs
    under coverage run, though you will still have to do the reporting phase
    with CPython.
  • Coverage.py has long had a special hack to support CPython's need to measure
    the coverage of the standard library tests. This code was not installed by
    kitted versions of coverage.py. Now it is.

.. _issue 79: https://bitbucket.org/ned/coveragepy/issues/79/save-prevents-harvesting-on-stop
.. _issue 96: https://bitbucket.org/ned/coveragepy/issues/96/unhelpful-warnings-produced-when-using
.. _issue 355: https://bitbucket.org/ned/coveragepy/issues/355/warnings-should-be-suppressable
.. _issue 448: https://bitbucket.org/ned/coveragepy/issues/448/save-and-html_report-prevent-further
.. _issue 570: https://bitbucket.org/ned/coveragepy/issues/570/cobertura-coverage-04dtd-support

.. _changes_434:

decorator 4.0.11 -> 4.1.2

4.1.2

Made it possible to define decorators converting coroutines into regular
functions, as requested by Itaï Ben Yaacov.

4.1.1

Changed the documentation build system to sphinx and uploaded the docs
on readthedocs.org.

4.1.0

Support for Python 3.5 coroutines defined with async def, thanks to
Victor-Nicolae Savu who raised the issue of iscoroutinefunction not
giving the right answer for coroutines decorated with the decorator module.

flake8 3.3.0 -> 3.4.1

3.4.1


You can view the 3.4.1 milestone_ on GitLab for more details.

  • Fix minor regression when users specify only a --select list with items
    in the enabled/extended select list. (See also GitLab354_)

.. all links
.. _3.4.1 milestone:
https://gitlab.com/pycqa/flake8/milestones/19

.. issue links
.. _GitLab354:
https://gitlab.com/pycqa/flake8/issues/354

.. merge request links

3.4.0


You can view the 3.4.0 milestone_ on GitLab for more details.

  • Refine logic around --select and --ignore when combined with the
    default values for each. (See also GitLab318_)
  • Handle spaces as an alternate separate for error codes, e.g.,
    --ignore 'E123 E234'. (See also GitLab329_)
  • Filter out empty select and ignore codes, e.g., --ignore E123,,E234.
    (See also GitLab330_)
  • Specify dependencies appropriately in setup.py (See also Gitlab341_)
  • Fix bug in parsing --quiet and --verbose from config files.
    (See also GitLab!193_)
  • Remove unused import of os in the git hook template (See also
    GitLab!194_)

.. all links
.. _3.4.0 milestone:
https://gitlab.com/pycqa/flake8/milestones/18

.. issue links
.. _GitLab318:
https://gitlab.com/pycqa/flake8/issues/318
.. _GitLab329:
https://gitlab.com/pycqa/flake8/issues/329
.. _GitLab330:
https://gitlab.com/pycqa/flake8/issues/330
.. _GitLab341:
https://gitlab.com/pycqa/flake8/issues/341

.. merge request links
.. _GitLab!193:
https://gitlab.com/pycqa/flake8/merge_requests/193
.. _GitLab!194:
https://gitlab.com/pycqa/flake8/merge_requests/194

ipdb 0.10.2 -> 0.10.3

0.10.3


  • For users using python 2.6, do not install IPython >= 2.0.0.
    And for users using python 2.7, do not install IPython >= 6.0.0.
    [vphilippon]
  • Drop support for python 3.2.
    [vphilippon]
  • Command line usage consistent with pdb - Add argument commands
    [zvodd]

ipython 5.3.0 -> 6.2.1

6.2.1

None

6.2.0

None

6.1.0

None

6.0.0

None

6.0.0rc1

None

rel-3.0.0
See the release notes for what's new.

or get it with pip:

pip install --upgrade "ipython[all]"

DO NOT download from the "Source code" links below. They are missing git submodules, and won't work.

rel-2.4.1

rel-2.1.0
bugfix release for IPython 2.0. See the list of backported fixes.

rel-1.2.1
Bugfix release for Python 2.6 and 3.4.

What's new in 1.2

rel-1.2.0
IPython 1.2.0 mostly bugfix release

For release notes, see what's new.

rel-1.1.0

isort 4.2.5 -> 4.2.15

4.2.15

IMPORTANT NOTE: This will be the last release with Python 2.6 support, subsequent releases will be 2.7+ only

  • Fixed certain one line imports not being successfully wrapped

4.2.14

  • Fixed 559 & 565: Added missing standard library imports

4.2.13

  • Fixed 553: Check only and --diff now work together again

4.2.12

  • Fixed wheel distribution bug

4.2.11

  • Fixed 546: Can't select y/n/c after latest update
  • Fixed 545: Incorrectly moves future imports above encoding comments

4.2.9

  • Fixed 428: Check only modifies sorting
  • Fixed 540: Not correctly identifying stdlib modules

4.2.8

  • Added --virtual-env switch command line option
  • Added --enforce-whitespace option to go along with --check-only for more exact checks (issue 423)
  • Fixed imports with a tailing '&Scheduled weekly dependency update for week 11 #39; and no space in-between getting removed (issue 425)
  • Fixed issue 299: long lines occasionally not wrapped
  • Fixed issue 432: No longer add import inside class when class starts at top of file after encoding comment
  • Fixed issue 440: Added missing --use-parentheses option to command line tool and documentation
  • Fixed issue 496: import* imports now get successfully identified and reformatted instead of deleted
  • Fixed issue 491: Non ending parentheses withing single line comments no longer cause formatting issues
  • Fixed issue 471: Imports that wrap the maximum line length and contain comments on the last line are no longer rendered incorrectly
  • Fixed issue 436: Force sort within section no longer rearranges comments
  • Fixed issue 473: Force_to_top and force_sort_within_sections now work together
  • Fixed issue 484 & 472: Consistent output with imports of same spelling but different case
  • Fixed issue 433: No longer incorrectly add an extra new-line when comment between imports and function definition
  • Fixed issue 419: Path specification for skipped paths is not Unix/Windows inter-operable.
    Breaking Changes:
    • Fixed issue 511: All command line options with an underscore, have had the underscore replaced with a dash for consistency. This effects: multi-line, add-import, remove-import, force-adds, --force-single-line-imports, and length-sort.
    • Replaced the --enforce-whitespace option with --ignore-whitespace to restore original behavior of strict whitespace by default

pluggy 0.4.0 -> 0.5.2

0.5.2


  • fix bug where firstresult wrappers were being sent an incorrectly configured
    _Result (a list was set instead of a single value). Add tests to check for
    this as well as _Result.force_result() behaviour. Thanks to tgoodlet_
    for the PR 72_.
  • fix incorrect getattr of DeprecationWarning from the warnings
    module. Thanks to nicoddemus_ for the PR 77_.
  • hide pytest tracebacks in certain core routines. Thanks to
    nicoddemus_ for the PR 80_.

.. _72: pytest-dev/pluggy#72
.. _77: pytest-dev/pluggy#77
.. _80: pytest-dev/pluggy#80

0.5.1


  • fix a bug and add tests for case where firstresult hooks return
    None results. Thanks to RonnyPfannschmidt_ and tgoodlet_
    for the issue (68) and PR (69) respectively.

.. _69: pytest-dev/pluggy#69
.. _68: https://github.com/pytest-dev/pluggy/issuses/68

0.5.0


  • fix bug where callbacks for historic hooks would not be called for
    already registered plugins. Thanks vodik_ for the PR
    and hpk42_ for further fixes.
  • fix 17_ by considering only actual functions for hooks
    this removes the ability to register arbitrary callable objects
    which at first glance is a reasonable simplification,
    thanks RonnyPfannschmidt_ for report and pr.
  • fix 19: allow registering hookspecs from instances. The PR from
    tgoodlet
    also modernized the varnames implementation.
  • resolve 32: split up the test set into multiple modules.
    Thanks to RonnyPfannschmidt
    for the PR and tgoodlet_ for
    the initial request.
  • resolve 14: add full sphinx docs. Thanks to tgoodlet for
    PR 39_.
  • add hook call mismatch warnings. Thanks to tgoodlet_ for the
    PR 42_.
  • resolve 44: move to new-style classes. Thanks to MichalTHEDUDE
    for PR 46_.
  • add baseline benchmarking/speed tests using pytest-benchmark
    in PR 54. Thanks to tgoodlet.
  • update the README to showcase the API. Thanks to tgoodlet_ for the
    issue and PR 55_.
  • deprecate __multicall__ and add a faster call loop implementation.
    Thanks to tgoodlet_ for PR 58_.
  • raise a comprehensible error when a hookimpl is called with positional
    args. Thanks to RonnyPfannschmidt_ for the issue and tgoodlet_ for
    PR 60_.
  • fix the firstresult test making it more complete
    and remove a duplicate of that test. Thanks to tgoodlet_
    for PR 62_.

.. _62: pytest-dev/pluggy#62
.. _60: pytest-dev/pluggy#60
.. _58: pytest-dev/pluggy#58
.. _55: pytest-dev/pluggy#55
.. _54: pytest-dev/pluggy#54
.. _46: pytest-dev/pluggy#46
.. _44: pytest-dev/pluggy#44
.. _42: pytest-dev/pluggy#42
.. _39: pytest-dev/pluggy#39
.. _32: pytest-dev/pluggy#32
.. _19: pytest-dev/pluggy#19
.. _17: pytest-dev/pluggy#17
.. _14: pytest-dev/pluggy#14

prompt-toolkit 1.0.13 -> 1.0.15

1.0.15


Fixes:

  • Don't shuffle tasks in the event loop. This fixes an issue where lines
    printed from background threads were printed in a different order if
    patch_stdout=True.
  • Only consider the text before the cursor when activating history search.
  • Pressing escape should accept the search, this is closer to how readline works.
  • Enable autowrap again when required.

New features:

  • Add run_in_terminal option to disable cooked mode.

1.0.14


Fixes:

  • Handle arguments in the $EDITOR and $VISUAL env variable.
  • Added missing explicit loops for Futures in asyncio_posix eventloop.
  • Fallback to default terminal size if reported as 0.
  • Don't save undo state when receiving CPRResponse.
  • Set VMIN terminal flag to 1 when entering raw mode.
    (Fixes a bug on Solaris.)
  • Fix previous_key_sequences.

py 1.4.33 -> 1.4.34

1.4.34

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

  • fix issue119 / pytest issue708 where tmpdir may fail to make numbered directories
    when the filesystem is case-insensitive.

pyflakes 1.5.0 -> 1.6.0

1.6.0

  • Process function scope variable annotations for used names
  • Find Python files without extensions by their shebang

pytest 3.0.7 -> 3.2.3

3.2.3

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

Bug Fixes

  • Fix crash in tab completion when no prefix is given. (2748 <https://github.com/pytest-dev/pytest/issues/2748>_)
  • The equality checking function (__eq__) of MarkDecorator returns
    False if one object is not an instance of MarkDecorator. (2758 <https://github.com/pytest-dev/pytest/issues/2758>_)
  • When running pytest --fixtures-per-test: don't crash if an item has no
    fixtureinfo attribute (e.g. doctests) (2788 <https://github.com/pytest-dev/pytest/issues/2788>)

Improved Documentation

  • In help text of -k option, add example of using not to not select
    certain tests whose names match the provided expression. (1442 <https://github.com/pytest-dev/pytest/issues/1442>_)
  • Add note in parametrize.rst about calling metafunc.parametrize
    multiple times. (1548 <https://github.com/pytest-dev/pytest/issues/1548>_)

Trivial/Internal Changes

  • Set xfail_strict=True in pytest's own test suite to catch expected
    failures as soon as they start to pass. (2722 <https://github.com/pytest-dev/pytest/issues/2722>_)
  • Fix typo in example of passing a callable to markers (in example/markers.rst)
    (2765 <https://github.com/pytest-dev/pytest/issues/2765>_)

3.2.2

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

Bug Fixes

  • Calling the deprecated request.getfuncargvalue() now shows the source of
    the call. (2681 <https://github.com/pytest-dev/pytest/issues/2681>_)
  • Allow tests declared as staticmethod to use fixtures. (2699 <https://github.com/pytest-dev/pytest/issues/2699>_)
  • Fixed edge-case during collection: attributes which raised pytest.fail
    when accessed would abort the entire collection. (2707 <https://github.com/pytest-dev/pytest/issues/2707>_)
  • Fix ReprFuncArgs with mixed unicode and UTF-8 args. (2731 <https://github.com/pytest-dev/pytest/issues/2731>_)

Improved Documentation

  • In examples on working with custom markers, add examples demonstrating the
    usage of pytest.mark.MARKER_NAME.with_args in comparison with
    pytest.mark.MARKER_NAME.__call__ (2604 <https://github.com/pytest-dev/pytest/issues/2604>_)
  • In one of the simple examples, use pytest_collection_modifyitems() to skip
    tests based on a command-line option, allowing its sharing while preventing a
    user error when acessing pytest.config before the argument parsing. (2653 <https://github.com/pytest-dev/pytest/issues/2653>_)

Trivial/Internal Changes

  • Fixed minor error in 'Good Practices/Manual Integration' code snippet.
    (2691 <https://github.com/pytest-dev/pytest/issues/2691>_)
  • Fixed typo in goodpractices.rst. (2721 <https://github.com/pytest-dev/pytest/issues/2721>_)
  • Improve user guidance regarding --resultlog deprecation. (2739 <https://github.com/pytest-dev/pytest/issues/2739>_)

3.2.1

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

Bug Fixes

  • Fixed small terminal glitch when collecting a single test item. (2579 <https://github.com/pytest-dev/pytest/issues/2579>_)
  • Correctly consider / as the file separator to automatically mark plugin
    files for rewrite on Windows. (2591 <https://github.com/pytest- dev/pytest/issues/2591>_)
  • Properly escape test names when setting PYTEST_CURRENT_TEST environment
    variable. (2644 <https://github.com/pytest-dev/pytest/issues/2644>_)
  • Fix error on Windows and Python 3.6+ when sys.stdout has been replaced
    with a stream-like object which does not implement the full io module
    buffer protocol. In particular this affects pytest-xdist users on the
    aforementioned platform. (2666 <https://github.com/pytest- dev/pytest/issues/2666>_)

Improved Documentation

  • Explicitly document which pytest features work with unittest. (2626 <https://github.com/pytest-dev/pytest/issues/2626>_)

3.2.0

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

Deprecations and Removals

  • pytest.approx no longer supports >, >=, < and <=
    operators to avoid surprising/inconsistent behavior. See the docs <https://docs.pytest.org/en/latest/builtin.htmlpytest.approx>_ for more
    information. (2003 <https://github.com/pytest-dev/pytest/issues/2003>_)
  • All old-style specific behavior in current classes in the pytest's API is
    considered deprecated at this point and will be removed in a future release.
    This affects Python 2 users only and in rare situations. (2147 <https://github.com/pytest-dev/pytest/issues/2147>_)
  • A deprecation warning is now raised when using marks for parameters
    in pytest.mark.parametrize. Use pytest.param to apply marks to
    parameters instead. (2427 <https://github.com/pytest-dev/pytest/issues/2427>_)

Features

  • Add support for numpy arrays (and dicts) to approx. (1994 <https://github.com/pytest-dev/pytest/issues/1994>_)
  • Now test function objects have a pytestmark attribute containing a list
    of marks applied directly to the test function, as opposed to marks inherited
    from parent classes or modules. (2516 <https://github.com/pytest- dev/pytest/issues/2516>_)
  • Collection ignores local virtualenvs by default; --collect-in-virtualenv
    overrides this behavior. (2518 <https://github.com/pytest- dev/pytest/issues/2518>_)
  • Allow class methods decorated as staticmethod to be candidates for
    collection as a test function. (Only for Python 2.7 and above. Python 2.6
    will still ignore static methods.) (2528 <https://github.com/pytest- dev/pytest/issues/2528>_)
  • Introduce mark.with_args in order to allow passing functions/classes as
    sole argument to marks. (2540 <https://github.com/pytest- dev/pytest/issues/2540>_)
  • New cache_dir ini option: sets the directory where the contents of the
    cache plugin are stored. Directory may be relative or absolute path: if relative path, then
    directory is created relative to rootdir, otherwise it is used as is.
    Additionally path may contain environment variables which are expanded during
    runtime. (2543 <https://github.com/pytest-dev/pytest/issues/2543>_)
  • Introduce the PYTEST_CURRENT_TEST environment variable that is set with
    the nodeid and stage (setup, call and teardown) of the test
    being currently executed. See the documentation <https://docs.pytest.org/en/latest/example/simple.htmlpytest-current-test- environment-variable>_ for more info. (2583 <https://github.com/pytest- dev/pytest/issues/2583>_)
  • Introduced pytest.mark.filterwarnings mark which allows overwriting the
    warnings filter on a per test, class or module level. See the docs <https://docs.pytest.org/en/latest/warnings.htmlpytest-mark- filterwarnings>_ for more information. (2598 <https://github.com/pytest- dev/pytest/issues/2598>_)
  • --last-failed now remembers forever when a test has failed and only
    forgets it if it passes again. This makes it easy to fix a test suite by
    selectively running files and fixing tests incrementally. (2621 <https://github.com/pytest-dev/pytest/issues/2621>_)
  • New pytest_report_collectionfinish hook which allows plugins to add
    messages to the terminal reporting after collection has been finished
    successfully. (2622 <https://github.com/pytest-dev/pytest/issues/2622>_)
  • Added support for PEP-415's <https://www.python.org/dev/peps/pep-0415/>_
    Exception.__suppress_context__. Now if a raise exception from None is
    caught by pytest, pytest will no longer chain the context in the test report.
    The behavior now matches Python's traceback behavior. (2631 <https://github.com/pytest-dev/pytest/issues/2631>_)
  • Exceptions raised by pytest.fail, pytest.skip and pytest.xfail
    now subclass BaseException, making them harder to be caught unintentionally
    by normal code. (580 <https://github.com/pytest-dev/pytest/issues/580>_)

Bug Fixes

  • Set stdin to a closed PIPE in pytester.py.Testdir.popen() for
    avoid unwanted interactive pdb (2023 <https://github.com/pytest- dev/pytest/issues/2023>_)
  • Add missing encoding attribute to sys.std* streams when using
    capsys capture mode. (2375 <https://github.com/pytest- dev/pytest/issues/2375>_)
  • Fix terminal color changing to black on Windows if colorama is imported
    in a conftest.py file. (2510 <https://github.com/pytest- dev/pytest/issues/2510>_)
  • Fix line number when reporting summary of skipped tests. (2548 <https://github.com/pytest-dev/pytest/issues/2548>_)
  • capture: ensure that EncodedFile.name is a string. (2555 <https://github.com/pytest-dev/pytest/issues/2555>_)
  • The options --fixtures and --fixtures-per-test will now keep
    indentation within docstrings. (2574 <https://github.com/pytest- dev/pytest/issues/2574>_)
  • doctests line numbers are now reported correctly, fixing pytest-sugar122 <https://github.com/Frozenball/pytest-sugar/issues/122>. (2610 <https://github.com/pytest-dev/pytest/issues/2610>)
  • Fix non-determinism in order of fixture collection. Adds new dependency
    (ordereddict) for Python 2.6. (920 <https://github.com/pytest- dev/pytest/issues/920>_)

Improved Documentation

  • Clarify pytest_configure hook call order. (2539 <https://github.com/pytest-dev/pytest/issues/2539>_)
  • Extend documentation for testing plugin code with the pytester plugin.
    (971 <https://github.com/pytest-dev/pytest/issues/971>_)

Trivial/Internal Changes

  • Update help message for --strict to make it clear it only deals with
    unregistered markers, not warnings. (2444 <https://github.com/pytest- dev/pytest/issues/2444>_)
  • Internal code move: move code for pytest.approx/pytest.raises to own files in
    order to cut down the size of python.py (2489 <https://github.com/pytest- dev/pytest/issues/2489>_)
  • Renamed the utility function _pytest.compat._escape_strings to
    _ascii_escaped to better communicate the function's purpose. (2533 <https://github.com/pytest-dev/pytest/issues/2533>_)
  • Improve error message for CollectError with skip/skipif. (2546 <https://github.com/pytest-dev/pytest/issues/2546>_)
  • Emit warning about yield tests being deprecated only once per generator.
    (2562 <https://github.com/pytest-dev/pytest/issues/2562>_)
  • Ensure final collected line doesn't include artifacts of previous write.
    (2571 <https://github.com/pytest-dev/pytest/issues/2571>_)
  • Fixed all flake8 errors and warnings. (2581 <https://github.com/pytest- dev/pytest/issues/2581>_)
  • Added fix-lint tox environment to run automatic pep8 fixes on the code.
    (2582 <https://github.com/pytest-dev/pytest/issues/2582>_)
  • Turn warnings into errors in pytest's own test suite in order to catch
    regressions due to deprecations more promptly. (2588 <https://github.com/pytest-dev/pytest/issues/2588>_)
  • Show multiple issue links in CHANGELOG entries. (2620 <https://github.com/pytest-dev/pytest/issues/2620>_)

3.1.3

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

Bug Fixes

  • Fix decode error in Python 2 for doctests in docstrings. (2434 <https://github.com/pytest-dev/pytest/issues/2434>_)
  • Exceptions raised during teardown by finalizers are now suppressed until all
    finalizers are called, with the initial exception reraised. (2440 <https://github.com/pytest-dev/pytest/issues/2440>_)
  • Fix incorrect "collected items" report when specifying tests on the command-
    line. (2464 <https://github.com/pytest-dev/pytest/issues/2464>_)
  • deprecated_call in context-manager form now captures deprecation warnings
    even if the same warning has already been raised. Also, deprecated_call
    will always produce the same error message (previously it would produce
    different messages in context-manager vs. function-call mode). (2469 <https://github.com/pytest-dev/pytest/issues/2469>_)
  • Fix issue where paths collected by pytest could have triple leading /
    characters. (2475 <https://github.com/pytest-dev/pytest/issues/2475>_)
  • Fix internal error when trying to detect the start of a recursive traceback.
    (2486 <https://github.com/pytest-dev/pytest/issues/2486>_)

Improved Documentation

  • Explicitly state for which hooks the calls stop after the first non-None
    result. (2493 <https://github.com/pytest-dev/pytest/issues/2493>_)

Trivial/Internal Changes

  • Create invoke tasks for updating the vendored packages. (2474 <https://github.com/pytest-dev/pytest/issues/2474>_)
  • Update copyright dates in LICENSE, README.rst and in the documentation.
    (2499 <https://github.com/pytest-dev/pytest/issues/2499>_)

3.1.2

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

Bug Fixes

  • Required options added via pytest_addoption will no longer prevent using
    --help without passing them. (1999)
  • Respect python_files in assertion rewriting. (2121)
  • Fix recursion error detection when frames in the traceback contain objects
    that can't be compared (like numpy arrays). (2459)
  • UnicodeWarning is issued from the internal pytest warnings plugin only
    when the message contains non-ascii unicode (Python 2 only). (2463)
  • Added a workaround for Python 3.6 WindowsConsoleIO breaking due to Pytests's
    FDCapture. Other code using console handles might still be affected by the
    very same issue and might require further workarounds/fixes, i.e. colorama.
    (2467)

Improved Documentation

  • Fix internal API links to pluggy objects. (2331)
  • Make it clear that pytest.xfail stops test execution at the calling point
    and improve overall flow of the skipping docs. (810)

3.1.1

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

Bug Fixes

  • pytest warning capture no longer overrides existing warning filters. The
    previous behaviour would override all filters and caused regressions in test
    suites which configure warning filters to match their needs. Note that as a
    side-effect of this is that DeprecationWarning and
    PendingDeprecationWarning are no longer shown by default. (2430)
  • Fix issue with non-ascii contents in doctest text files. (2434)
  • Fix encoding errors for unicode warnings in Python 2. (2436)
  • pytest.deprecated_call now captures PendingDeprecationWarning in
    context manager form. (2441)

Improved Documentation

  • Addition of towncrier for changelog management. (2390)

3.1.0

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

New Features

  • The pytest-warnings plugin has been integrated into the core and now pytest automatically
    captures and displays warnings at the end of the test session.

.. warning::

This feature may disrupt test suites which apply and treat warnings themselves, and can be
disabled in your pytest.ini:

.. code-block:: ini

 [pytest]
 addopts = -p no:warnings

See the warnings documentation page <https://docs.pytest.org/en/latest/warnings.html>_ for more
information.

Thanks nicoddemus_ for the PR.

  • Added junit_suite_name ini option to specify root <testsuite> name for JUnit XML reports (533_).
  • Added an ini option doctest_encoding to specify which encoding to use for doctest files.
    Thanks wheerd_ for the PR (2101_).
  • pytest.warns now checks for subclass relationship rather than
    class equality. Thanks lesteve_ for the PR (2166_)
  • pytest.raises now asserts that the error message matches a text or regex
    with the match keyword argument. Thanks Kriechi_ for the PR.
  • pytest.param can be used to declare test parameter sets with marks and test ids.
    Thanks RonnyPfannschmidt_ for the PR.

Changes

  • remove all internal uses of pytest_namespace hooks,
    this is to prepare the removal of preloadconfig in pytest 4.0
    Thanks to RonnyPfannschmidt_ for the PR.
  • pytest now warns when a callable ids raises in a parametrized test. Thanks fogo_ for the PR.
  • It is now possible to skip test classes from being collected by setting a
    __test__ attribute to False in the class body (2007). Thanks
    to syre
    for the report and lwm_ for the PR.
  • Change junitxml.py to produce reports that comply with Junitxml schema.
    If the same test fails with failure in call and then errors in teardown
    we split testcase element into two, one containing the error and the other
    the failure. (2228) Thanks to kkoukiou for the PR.
  • Testcase reports with a url attribute will now properly write this to junitxml.
    Thanks fushi_ for the PR (1874_).
  • Remove common items from dict comparision output when verbosity=1. Also update
    the truncation message to make it clearer that pytest truncates all
    assertion messages if verbosity < 2 (1512).
    Thanks mattduck
    for the PR
  • --pdbcls no longer implies --pdb. This makes it possible to use
    addopts=--pdbcls=module.SomeClass on pytest.ini. Thanks davidszotten_ for
    the PR (1952_).
  • fix 2013_: turn RecordedWarning into namedtuple,
    to give it a comprehensible repr while preventing unwarranted modification.
  • fix 2208_: ensure a iteration limit for pytest.compat.get_real_func.
    Thanks RonnyPfannschmidt
    for the report and PR.
  • Hooks are now verified after collection is complete, rather than right after loading installed plugins. This
    makes it easy to write hooks for plugins which will be loaded during collection, for example using the
    pytest_plugins special variable (1821).
    Thanks nicoddemus
    for the PR.
  • Modify pytest_make_parametrize_id() hook to accept argname as an
    additional parameter.
    Thanks unsignedint_ for the PR.
  • Add venv to the default norecursedirs setting.
    Thanks The-Compiler_ for the PR.
  • PluginManager.import_plugin now accepts unicode plugin names in Python 2.
    Thanks reutsharabani_ for the PR.
  • fix 2308: When using both --lf and --ff, only the last failed tests are run.
    Thanks ojii
    for the PR.
  • Replace minor/patch level version numbers in the documentation with placeholders.
    This significantly reduces change-noise as different contributors regnerate
    the documentation on different platforms.
    Thanks RonnyPfannschmidt_ for the PR.
  • fix 2391: consider pytest_plugins on all plugin modules
    Thanks RonnyPfannschmidt
    for the PR.

Bug Fixes

  • Fix AttributeError on sys.stdout.buffer / sys.stderr.buffer
    while using capsys fixture in python 3. (1407).
    Thanks to asottile
    .
  • Change capture.py's DontReadFromInput class to throw io.UnsupportedOperation errors rather
    than ValueErrors in the fileno method (2276).
    Thanks metasyn
    and vlad-dragos_ for the PR.
  • Fix exception formatting while importing modules when the exception message
    contains non-ascii characters (2336).
    Thanks fabioz
    for the report and nicoddemus_ for the PR.
  • Added documentation related to issue (1937)
    Thanks skylarjhdownes
    for the PR.
  • Allow collecting files with any file extension as Python modules (2369).
    Thanks Kodiologist
    for the PR.
  • Show the correct error message when collect "parametrize" func with wrong args (2383).
    Thanks The-Compiler
    for the report and robin0371_ for the PR.

.. _davidszotten: https://github.com/davidszotten
.. _fabioz: https://github.com/fabioz
.. _fogo: https://github.com/fogo
.. _fushi: https://github.com/fushi
.. _Kodiologist: https://github.com/Kodiologist
.. _Kriechi: https://github.com/Kriechi
.. _mandeep: https://github.com/mandeep
.. _mattduck: https://github.com/mattduck
.. _metasyn: https://github.com/metasyn
.. _MichalTHEDUDE: https://github.com/MichalTHEDUDE
.. _ojii: https://github.com/ojii
.. _reutsharabani: https://github.com/reutsharabani
.. _robin0371: https://github.com/robin0371
.. _skylarjhdownes: https://github.com/skylarjhdownes
.. _unsignedint: https://github.com/unsignedint
.. _wheerd: https://github.com/wheerd

.. _1407: pytest-dev/pytest#1407
.. _1512: pytest-dev/pytest#1512
.. _1821: pytest-dev/pytest#1821
.. _1874: pytest-dev/pytest#1874
.. _1937: pytest-dev/pytest#1937
.. _1952: pytest-dev/pytest#1952
.. _2007: pytest-dev/pytest#2007
.. _2013: pytest-dev/pytest#2013
.. _2101: pytest-dev/pytest#2101
.. _2166: pytest-dev/pytest#2166
.. _2208: pytest-dev/pytest#2208
.. _2228: pytest-dev/pytest#2228
.. _2276: pytest-dev/pytest#2276
.. _2308: pytest-dev/pytest#2308
.. _2336: pytest-dev/pytest#2336
.. _2369: pytest-dev/pytest#2369
.. _2383: pytest-dev/pytest#2383
.. _2391: pytest-dev/pytest#2391
.. _533: pytest-dev/pytest#533

pytest-cov 2.4.0 -> 2.5.1

2.5.1


  • Fixed xdist breakage (regression in 2.5.0).
    Fixes 157 &lt;https://github.com/pytest-dev/pytest-cov/issues/157&gt;_.
  • Allow setting custom data_file name in .coveragerc.
    Fixes 145 &lt;https://github.com/pytest-dev/pytest-cov/issues/145&gt;.
    Contributed by Jannis Leidel & Ionel Cristian Mărieș in
    156 &lt;https://github.com/pytest-dev/pytest-cov/pull/156&gt;
    .

2.5.0


  • Always show a summary when --cov-fail-under is used. Contributed by Francis Niu in PR141 &lt;https://github.com/pytest-dev/pytest-cov/pull/141&gt;_.
  • Added --cov-branch option. Fixes 85 &lt;https://github.com/pytest-dev/pytest-cov/issues/85&gt;_.
  • Improve exception handling in subprocess setup. Fixes 144 &lt;https://github.com/pytest-dev/pytest-cov/issues/144&gt;_.
  • Fixed handling when --cov is used multiple times. Fixes 151 &lt;https://github.com/pytest-dev/pytest-cov/issues/151&gt;_.

six 1.10.0 -> 1.11.0

1.11.0


  • Pull request 178: with_metaclass now properly proxies __prepare__ to the
    underlying metaclass.
  • Pull request 191: Allow with_metaclass to work with metaclasses implemented
    in C.
  • Pull request 203: Add parse_http_list and parse_keqv_list to moved
    urllib.request.
  • Pull request 172 and issue 171: Add unquote_to_bytes to moved urllib.parse.
  • Pull request 167: Add six.moves.getoutput.
  • Pull request 80: Add six.moves.urllib_parse.splitvalue.
  • Pull request 75: Add six.moves.email_mime_image.
  • Pull request 72: Avoid creating reference cycles through tracebacks in
    reraise.

tox 2.6.0 -> 2.9.1

2.9.1


Misc
^^^^

  • integrated new release process and fixed changelog rendering for pypi.org -
    by obestwalter &lt;https://github.com/obestwalter&gt;_.

2.9

2.9.0


Features
^^^^^^^^

  • tox --version now shows information about all registered plugins - by
    obestwalter &lt;https://github.com/obestwalter&gt;_
    (544 &lt;https://github.com/tox-dev/tox/issues/544&gt;_)

Bugfixes
^^^^^^^^

  • skip_install overrides usedevelop (usedevelop is an option to
    choose the installation type if the package is installed and skip_install
    determines if it should be installed at all) - by ferdonline &lt;https://github.com/ferdonline&gt;_
    (571 &lt;https://github.com/tox-dev/tox/issues/571&gt;_)

Misc
^^^^

  • 635 &lt;https://github.com/tox-dev/tox/issues/635&gt;_ inherit from correct exception -
    by obestwalter &lt;https://github.com/obestwalter&gt;_
    (635 &lt;https://github.com/tox-dev/tox/issues/635&gt;_).
  • spelling and escape sequence fixes - by scoop &lt;https://github.com/scoop&gt;_
    (637 &lt;https://github.com/tox-dev/tox/issues/637&gt;_ and
    638 &lt;https://github.com/tox-dev/tox/issues/638&gt;_).
  • add a badge to show build status of documentation on readthedocs.io -
    by obestwalter &lt;https://github.com/obestwalter&gt;_.

Improved Documentation
^^^^^^^^^^^^^^^^^^^^^^

  • add towncrier &lt;https://github.com/hawkowl/towncrier&gt;_ to allow adding
    changelog entries with the pull requests without generating merge conflicts;
    with this release notes are now grouped into four distinct collections:
    Features, Bugfixes, Improved Documentation and Deprecations and Removals. (614 &lt;https://github.com/tox-dev/tox/issues/614&gt;_)

2.8.2


  • 466 &lt;https://github.com/tox-dev/tox/issues/466&gt;_: stop env var leakage if popen failed with resultjson or redirect

2.8.1


  • pull request 599 &lt;https://github.com/tox-dev/tox/pull/599&gt;: fix problems with implementation of 515 &lt;https://github.com/tox-dev/tox/issues/515&gt;.
    Substitutions from other sections were not made anymore if they were not in envlist.
    Thanks to Clark Boylan (cboylan &lt;https://github.com/cboylan&gt;) for helping to get this fixed (pull request 597 &lt;https://github.com/tox-dev/tox/pull/597&gt;).

2.8

..
Everything below here is generated by towncrier &lt;https://pypi.python.org/pypi/towncrier&gt;_.
It is generated once as part of the release process rendering fragments from the changelog
folder. If necessary, the generated text can be edited afterwards to e.g. merge rc changes
into the final release notes.

.. towncrier release notes start

2.8.0


  • 276 &lt;https://github.com/tox-dev/tox/issues/276&gt;: Remove easy_install from docs (TL;DR: use pip). Thanks Martin Andrysík (sifuraz &lt;https://github.com/sifuraz&gt;).
  • 301 &lt;https://github.com/tox-dev/tox/issues/301&gt;: Expand nested substitutions in tox.ini. Thanks vlaci &lt;https://github.com/vlaci&gt;. Thanks to Eli Collins
    (eli-collins &lt;https://github.com/eli-collins&gt;_) for creating a reproducer.
  • 315 &lt;https://github.com/tox-dev/tox/issues/315&gt;: add --help and --version to helptox-quickstart. Thanks vlaci &lt;https://github.com/vlaci&gt;.
  • 326 &lt;https://github.com/tox-dev/tox/issues/326&gt;: Fix OSError 'Not a directory' when creating env on Jython 2.7.0. Thanks Nick Douma (LordGaav &lt;https://github.com/LordGaav&gt;).
  • 429 &lt;https://github.com/tox-dev/tox/issues/429&gt;: Forward MSYSTEM by default on Windows. Thanks Marius Gedminas (mgedmin &lt;https://github.com/mgedmin&gt;) for reporting this.
  • 449 &lt;https://github.com/tox-dev/tox/issues/449&gt;: add multi platform example to the docs. Thanks Aleks Bunin (sashkab &lt;https://github.com/sashkab&gt;) and rndr &lt;https://github.com/rndr&gt;_.
  • 474 &lt;https://github.com/tox-dev/tox/issues/474&gt;_: Start using setuptools_scm for tag based versioning.
  • 484 &lt;https://github.com/tox-dev/tox/issues/484&gt;: Renamed py.test to pytest throughout the project. Thanks Slam (3lnc &lt;https://github.com/3lnc&gt;).
  • 504 &lt;https://github.com/tox-dev/tox/issues/504&gt;: With -a: do not show additional environments header if there are none. Thanks rndr &lt;https://github.com/rndr&gt;.
  • 515 &lt;https://github.com/tox-dev/tox/issues/515&gt;: Don't require environment variables in test environments where they are not used.
    Thanks André Caron (AndreLouisCaron &lt;https://github.com/AndreLouisCaron&gt;
    ).
  • 517 &lt;https://github.com/tox-dev/tox/issues/517&gt;: Forward NUMBER_OF_PROCESSORS by default on Windows to fix multiprocessor.cpu_count().
    Thanks André Caron (AndreLouisCaron &lt;https://github.com/AndreLouisCaron&gt;
    ).
  • 518 &lt;https://github.com/tox-dev/tox/issues/518&gt;: Forward USERPROFILE by default on Windows. Thanks André Caron (AndreLouisCaron &lt;https://github.com/AndreLouisCaron&gt;).
  • pull request 528 &lt;https://github.com/tox-dev/tox/pull/528&gt;: Fix some of the warnings displayed by pytest 3.1.0. Thanks Bruno Oliveira (nicoddemus &lt;https://github.com/nicoddemus&gt;).
  • pull request 547 &lt;https://github.com/tox-dev/tox/pull/547&gt;: Add regression test for 137 &lt;https://github.com/tox-dev/tox/issues/137&gt;. Thanks Martin Andrysík (sifuraz &lt;https://github.com/sifuraz&gt;_).
  • pull request 553 &lt;https://github.com/tox-dev/tox/pull/553&gt;: Add an XFAIL test to reproduce upstream bug 203 &lt;https://github.com/tox-dev/tox/issues/203&gt;. Thanks
    Bartolomé Sánchez Salado (bartsanchez &lt;https://github.com/bartsanchez&gt;_).
  • pull request 556 &lt;https://github.com/tox-dev/tox/pull/556&gt;: Report more meaningful errors on why virtualenv creation failed. Thanks vlaci &lt;https://github.com/vlaci&gt;.
    Also thanks to Igor Sadchenko (igor-sadchenko &lt;https://github.com/igor-sadchenko&gt;_) for pointing out a problem with that PR
    before it hit the masses ☺
  • pull request 575 &lt;https://github.com/tox-dev/tox/pull/575&gt;_: Add announcement doc to end all announcement docs
    (using only CHANGELOG and Github issues since 2.5 already).
  • pull request 580 &lt;https://github.com/tox-dev/tox/pull/580&gt;: Do not ignore Sphinx warnings anymore. Thanks Bernát Gábor (gaborbernat &lt;https://github.com/gaborbernat&gt;).
  • pull request 585 &lt;https://github.com/tox-dev/tox/pull/585&gt;: Expand documentation to explain pass through of flags from deps to pip
    (e.g. -rrequirements.txt, -cconstraints.txt). Thanks Alexander Loechel (loechel &lt;https://github.com/loechel&gt;
    ).
  • pull request 588 &lt;https://github.com/tox-dev/tox/pull/588&gt;_: Run pytest wit xfail_strict and adapt affected tests.

2.7.0


  • pull request 450 &lt;https://github.com/tox-dev/tox/pull/450&gt;: Stop after the first installdeps and first testenv create hooks
    succeed. This changes the default behaviour of tox_testenv_create
    and tox_testenv_install_deps to not execute other registered hooks when
    the first hook returns a result that is not None.
    Thanks Anthony Sottile (asottile &lt;https://github.com/asottile&gt;
    ).
  • 271 &lt;https://github.com/tox-dev/tox/issues/271&gt;_ and 464 &lt;https://github.com/tox-dev/tox/issues/464&gt;_: Improve environment information for users.

New command line parameter: -a show all defined environments -
not just the ones defined in (or generated from) envlist.

New verbosity settings for -l and -a: show user defined descriptions
of the environments. This also works for generated environments from factors
by concatenating factor descriptions into a complete description.

Note that for backwards compatibility with scripts using the output of -l
it's output remains unchanged.

Thanks Bernát Gábor (gaborbernat &lt;https://github.com/gaborbernat&gt;_).

  • 464 &lt;https://github.com/tox-dev/tox/issues/464&gt;: Fix incorrect egg-info location for modified package_dir in setup.py.
    Thanks Selim Belhaouane (selimb &lt;https://github.com/selimb&gt;
    ).
  • 431 &lt;https://github.com/tox-dev/tox/issues/431&gt;: Add 'LANGUAGE' to default passed environment variables.
    Thanks Paweł Adamczak (pawelad &lt;https://github.com/pawelad&gt;
    ).
  • 455 &lt;https://github.com/tox-dev/tox/issues/455&gt;: Add a Vagrantfile with a customized Arch Linux box for local testing.
    Thanks Oliver Bestwalter (obestwalter &lt;https://github.com/obestwalter&gt;
    ).
  • 454 &lt;https://github.com/tox-dev/tox/issues/454&gt;: Revert pull request 407 &lt;https://github.com/tox-dev/tox/pull/407&gt;, empty commands is not treated as an error.
    Thanks Anthony Sottile (asottile &lt;https://github.com/asottile&gt;_).
  • 446 &lt;https://github.com/tox-dev/tox/issues/446&gt;: (infrastructure) Travis CI tests for tox now also run on OS X now.
    Thanks Jason R. Coombs (jaraco &lt;https://github.com/jaraco&gt;
    ).

Once you have closed this pull request, I'll create separate pull requests for every update as soon as I find them.

That's it for now!

Happy merging! 🤖

@hellysmile hellysmile closed this Oct 5, 2017
@hellysmile hellysmile deleted the pyup-initial-update branch October 5, 2017 08:55
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