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

Fix handling of pkg init and test file via args #4745

Merged
merged 1 commit into from Feb 11, 2019

Conversation

Projects
None yet
2 participants
@blueyed
Copy link
Contributor

blueyed commented Feb 8, 2019

Ref: #4344 (comment)

TODO:

  • changelog
@blueyed

This comment has been minimized.

Copy link
Contributor Author

blueyed commented Feb 8, 2019

Likely not the best fix, but appears to work for the added test at least.

@@ -592,7 +592,7 @@ def filter_(f):
col = self._node_cache[argpath]
else:
collect_root = self._pkg_roots.get(argpath.dirname, self)
col = collect_root._collectfile(argpath)
col = collect_root._collectfile(argpath, handle_dupes=False)

This comment was marked as resolved.

@blueyed

blueyed Feb 8, 2019

Author Contributor

That's wrong.. and will not handle dupes at all then.
Also the output of the test should be matched (includes sub/test_file.py twice).

This comment has been minimized.

@blueyed

blueyed Feb 8, 2019

Author Contributor

Likely works better with add_to_dupes (#4748).

@blueyed blueyed changed the title Fix handling of pkg init and test file via args Fix handling of pkg init and test file via args[WIP] Feb 8, 2019

@blueyed blueyed changed the title Fix handling of pkg init and test file via args[WIP] [WIP] Fix handling of pkg init and test file via args Feb 8, 2019

@blueyed blueyed force-pushed the blueyed:test_collect_pkg_init_and_file_in_args branch from f795cf9 to 7a291b7 Feb 8, 2019

@codecov

This comment has been minimized.

Copy link

codecov bot commented Feb 8, 2019

Codecov Report

Merging #4745 into master will increase coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4745      +/-   ##
==========================================
+ Coverage   95.68%   95.77%   +0.08%     
==========================================
  Files         113      113              
  Lines       25001    25181     +180     
  Branches     2484     2613     +129     
==========================================
+ Hits        23923    24116     +193     
+ Misses        762      756       -6     
+ Partials      316      309       -7
Flag Coverage Δ
#docs 30.2% <0%> (+0.62%) ⬆️
#doctesting 30.2% <0%> (+0.62%) ⬆️
#linting 30.2% <0%> (+0.62%) ⬆️
#linux 95.6% <100%> (+0.08%) ⬆️
#nobyte 92.3% <100%> (-0.01%) ⬇️
#numpy 93.04% <100%> (-0.04%) ⬇️
#pexpect 42.54% <0%> (+0.48%) ⬆️
#pluggymaster ?
#py27 93.8% <100%> (+0.09%) ⬆️
#py34 91.78% <100%> (+0.07%) ⬆️
#py35 91.78% <100%> (+0.07%) ⬆️
#py36 91.8% <100%> (+0.07%) ⬆️
#py37 93.92% <100%> (+0.13%) ⬆️
#trial 93.04% <100%> (-0.04%) ⬇️
#windows 93.83% <100%> (ø) ⬆️
#xdist 93.83% <100%> (+0.11%) ⬆️
Impacted Files Coverage Δ
src/_pytest/main.py 95.93% <100%> (ø) ⬆️
testing/test_collection.py 99.8% <100%> (ø) ⬆️
src/_pytest/cacheprovider.py 95.75% <0%> (-1.42%) ⬇️
src/_pytest/python.py 92.79% <0%> (+0.12%) ⬆️
src/_pytest/logging.py 95.71% <0%> (+0.36%) ⬆️
src/_pytest/terminal.py 95.38% <0%> (+3.53%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 386e801...61b9246. Read the comment docs.

@blueyed

This comment has been minimized.

Copy link
Contributor Author

blueyed commented Feb 8, 2019

This fails with 3.9.3 also already:

============================= test session starts ==============================
platform linux -- Python 3.7.2, pytest-3.9.3, py-1.7.0, pluggy-0.8.1 -- /home/daniel/Vcs/pytest/.venv/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/daniel/Vcs/pytest/.hypothesis/examples')
rootdir: /tmp/pytest-of-daniel/pytest-270/test_collect_pkg_init_and_file_in_args0, inifile:
plugins: forked-1.0.1, hypothesis-4.0.0
collecting ... collected 3 items

sub/test_file.py::test_file PASSED                                       [ 33%]
sub/test_file.py::test_file PASSED                                       [ 33%]
sub/test_file.py::test_file PASSED                                       [ 33%]

=========================== 3 passed in 0.01 seconds ===========================

With 3.6.4 it looks better:

sub/__init__.py::test_init PASSED                                        [ 33%]
sub/test_file.py::test_file PASSED                                       [ 66%]
sub/test_file.py::test_file PASSED                                       [ 66%]

But percentage is still off there, and it should not run test_file twice (due to not using --keepduplicates) I assume?

@blueyed

This comment has been minimized.

Copy link
Contributor Author

blueyed commented Feb 8, 2019

Re collection the file twice: this is documented, but could be fixed/improved likely: https://github.com/pytest-dev/pytest/blame/5ca81596bbbb35da0b8b742afaf7ed2ef075ccda/doc/en/example/pythoncollection.rst#L76-L84

@blueyed blueyed force-pushed the blueyed:test_collect_pkg_init_and_file_in_args branch from 7a291b7 to e6d61e8 Feb 8, 2019

@blueyed

This comment has been minimized.

Copy link
Contributor Author

blueyed commented Feb 8, 2019

Needs -o python_files=*.py to handle __init__.py after all..

@blueyed blueyed changed the title [WIP] Fix handling of pkg init and test file via args Fix handling of pkg init and test file via args Feb 8, 2019

@blueyed

This comment has been minimized.

Copy link
Contributor Author

blueyed commented Feb 8, 2019

I think this is a good small fix for now.

@@ -1157,3 +1157,20 @@ def test_collectignore_via_conftest(testdir, monkeypatch):

result = testdir.runpytest()
assert result.ret == EXIT_NOTESTSCOLLECTED


def test_collect_pkg_init_and_file_in_args(testdir):

This comment has been minimized.

@nicoddemus

nicoddemus Feb 8, 2019

Member

Hmm this test is passing for me without your patch (master). Can you double check that this is reproducing the problem for you please?

This comment has been minimized.

@blueyed

blueyed Feb 8, 2019

Author Contributor

Oh, snap - thanks for catching.

The difference/fix is only without -o python_files=*.py then - extended the test.
Not sure if this is really expected, but better then not collection anything I guess.

This comment has been minimized.

@nicoddemus

nicoddemus Feb 8, 2019

Member

I see, thanks. I checked and the new test does fail with master. 👍

@blueyed blueyed force-pushed the blueyed:test_collect_pkg_init_and_file_in_args branch from e6d61e8 to 785ff8e Feb 8, 2019

@nicoddemus
Copy link
Member

nicoddemus left a comment

LGTM, just need to add the CHANGELOG

@blueyed

This comment has been minimized.

Copy link
Contributor Author

blueyed commented Feb 10, 2019

Added changelog entry.
Let me know if it is good and I'd like to squash it (or do so yourself).

@blueyed blueyed force-pushed the blueyed:test_collect_pkg_init_and_file_in_args branch from 2001e57 to 61b9246 Feb 11, 2019

@blueyed

This comment has been minimized.

Copy link
Contributor Author

blueyed commented Feb 11, 2019

Squashed.

added changelog

@nicoddemus
Copy link
Member

nicoddemus left a comment

👍

@blueyed blueyed merged commit dc8af18 into pytest-dev:master Feb 11, 2019

0 of 2 checks passed

continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details

@blueyed blueyed deleted the blueyed:test_collect_pkg_init_and_file_in_args branch Feb 11, 2019

peterbe added a commit to mozilla-services/tecken that referenced this pull request Feb 13, 2019

Update pytest to 4.2.1
This PR updates [pytest](https://pypi.org/project/pytest) from **4.2.0** to **4.2.1**.



<details>
  <summary>Changelog</summary>
  
  
   ### 4.2.1
   ```
   =========================

Bug Fixes
---------

- `2895 &lt;https://github.com/pytest-dev/pytest/issues/2895&gt;`_: The ``pytest_report_collectionfinish`` hook now is also called with ``--collect-only``.


- `3899 &lt;https://github.com/pytest-dev/pytest/issues/3899&gt;`_: Do not raise ``UsageError`` when an imported package has a ``pytest_plugins.py`` child module.


- `4347 &lt;https://github.com/pytest-dev/pytest/issues/4347&gt;`_: Fix output capturing when using pdb++ with recursive debugging.


- `4592 &lt;https://github.com/pytest-dev/pytest/issues/4592&gt;`_: Fix handling of ``collect_ignore`` via parent ``conftest.py``.


- `4700 &lt;https://github.com/pytest-dev/pytest/issues/4700&gt;`_: Fix regression where ``setUpClass`` would always be called in subclasses even if all tests
  were skipped by a ``unittest.skip()`` decorator applied in the subclass.


- `4739 &lt;https://github.com/pytest-dev/pytest/issues/4739&gt;`_: Fix ``parametrize(... ids=&lt;function&gt;)`` when the function returns non-strings.


- `4745 &lt;https://github.com/pytest-dev/pytest/issues/4745&gt;`_: Fix/improve collection of args when passing in ``__init__.py`` and a test file.


- `4770 &lt;https://github.com/pytest-dev/pytest/issues/4770&gt;`_: ``more_itertools`` is now constrained to &lt;6.0.0 when required for Python 2.7 compatibility.


- `526 &lt;https://github.com/pytest-dev/pytest/issues/526&gt;`_: Fix &quot;ValueError: Plugin already registered&quot; exceptions when running in build directories that symlink to actual source.



Improved Documentation
----------------------

- `3899 &lt;https://github.com/pytest-dev/pytest/issues/3899&gt;`_: Add note to ``plugins.rst`` that ``pytest_plugins`` should not be used as a name for a user module containing plugins.


- `4324 &lt;https://github.com/pytest-dev/pytest/issues/4324&gt;`_: Document how to use ``raises`` and ``does_not_raise`` to write parametrized tests with conditional raises.


- `4709 &lt;https://github.com/pytest-dev/pytest/issues/4709&gt;`_: Document how to customize test failure messages when using
  ``pytest.warns``.



Trivial/Internal Changes
------------------------

- `4741 &lt;https://github.com/pytest-dev/pytest/issues/4741&gt;`_: Some verbosity related attributes of the TerminalReporter plugin are now
  read only properties.
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/pytest
  - Changelog: https://pyup.io/changelogs/pytest/
  - Homepage: https://docs.pytest.org/en/latest/
</details>

bors bot added a commit to rehandalal/therapist that referenced this pull request Feb 19, 2019

Merge #61
61: Update pytest to 4.3.0 r=rehandalal a=pyup-bot


This PR updates [pytest](https://pypi.org/project/pytest) from **4.2.0** to **4.3.0**.



<details>
  <summary>Changelog</summary>
  
  
   ### 4.3.0
   ```
   =========================

Deprecations
------------

- `4724 &lt;https://github.com/pytest-dev/pytest/issues/4724&gt;`_: ``pytest.warns()`` now emits a warning when it receives unknown keyword arguments.

  This will be changed into an error in the future.



Features
--------

- `2753 &lt;https://github.com/pytest-dev/pytest/issues/2753&gt;`_: Usage errors from argparse are mapped to pytest&#39;s ``UsageError``.


- `3711 &lt;https://github.com/pytest-dev/pytest/issues/3711&gt;`_: Add the ``--ignore-glob`` parameter to exclude test-modules with Unix shell-style wildcards.
  Add the ``collect_ignore_glob`` for ``conftest.py`` to exclude test-modules with Unix shell-style wildcards.


- `4698 &lt;https://github.com/pytest-dev/pytest/issues/4698&gt;`_: The warning about Python 2.7 and 3.4 not being supported in pytest 5.0 has been removed.

  In the end it was considered to be more
  of a nuisance than actual utility and users of those Python versions shouldn&#39;t have problems as ``pip`` will not
  install pytest 5.0 on those interpreters.


- `4707 &lt;https://github.com/pytest-dev/pytest/issues/4707&gt;`_: With the help of new ``set_log_path()`` method there is a way to set ``log_file`` paths from hooks.



Bug Fixes
---------

- `4651 &lt;https://github.com/pytest-dev/pytest/issues/4651&gt;`_: ``--help`` and ``--version`` are handled with ``UsageError``.


- `4782 &lt;https://github.com/pytest-dev/pytest/issues/4782&gt;`_: Fix ``AssertionError`` with collection of broken symlinks with packages.
   ```
   
  
  
   ### 4.2.1
   ```
   =========================

Bug Fixes
---------

- `2895 &lt;https://github.com/pytest-dev/pytest/issues/2895&gt;`_: The ``pytest_report_collectionfinish`` hook now is also called with ``--collect-only``.


- `3899 &lt;https://github.com/pytest-dev/pytest/issues/3899&gt;`_: Do not raise ``UsageError`` when an imported package has a ``pytest_plugins.py`` child module.


- `4347 &lt;https://github.com/pytest-dev/pytest/issues/4347&gt;`_: Fix output capturing when using pdb++ with recursive debugging.


- `4592 &lt;https://github.com/pytest-dev/pytest/issues/4592&gt;`_: Fix handling of ``collect_ignore`` via parent ``conftest.py``.


- `4700 &lt;https://github.com/pytest-dev/pytest/issues/4700&gt;`_: Fix regression where ``setUpClass`` would always be called in subclasses even if all tests
  were skipped by a ``unittest.skip()`` decorator applied in the subclass.


- `4739 &lt;https://github.com/pytest-dev/pytest/issues/4739&gt;`_: Fix ``parametrize(... ids=&lt;function&gt;)`` when the function returns non-strings.


- `4745 &lt;https://github.com/pytest-dev/pytest/issues/4745&gt;`_: Fix/improve collection of args when passing in ``__init__.py`` and a test file.


- `4770 &lt;https://github.com/pytest-dev/pytest/issues/4770&gt;`_: ``more_itertools`` is now constrained to &lt;6.0.0 when required for Python 2.7 compatibility.


- `526 &lt;https://github.com/pytest-dev/pytest/issues/526&gt;`_: Fix &quot;ValueError: Plugin already registered&quot; exceptions when running in build directories that symlink to actual source.



Improved Documentation
----------------------

- `3899 &lt;https://github.com/pytest-dev/pytest/issues/3899&gt;`_: Add note to ``plugins.rst`` that ``pytest_plugins`` should not be used as a name for a user module containing plugins.


- `4324 &lt;https://github.com/pytest-dev/pytest/issues/4324&gt;`_: Document how to use ``raises`` and ``does_not_raise`` to write parametrized tests with conditional raises.


- `4709 &lt;https://github.com/pytest-dev/pytest/issues/4709&gt;`_: Document how to customize test failure messages when using
  ``pytest.warns``.



Trivial/Internal Changes
------------------------

- `4741 &lt;https://github.com/pytest-dev/pytest/issues/4741&gt;`_: Some verbosity related attributes of the TerminalReporter plugin are now
  read only properties.
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/pytest
  - Changelog: https://pyup.io/changelogs/pytest/
  - Homepage: https://docs.pytest.org/en/latest/
</details>



Co-authored-by: pyup-bot <github-bot@pyup.io>

bors bot added a commit to mozilla/normandy that referenced this pull request Feb 20, 2019

Merge #1743 #1744
1743: Update dependency webpack to v4.29.5 r=mythmon a=renovate[bot]

This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| webpack | devDependencies | patch | `4.29.3` -> `4.29.5` | [source](https://togithub.com/webpack/webpack) |


1744: Scheduled weekly dependency update for week 07 r=mythmon a=pyup-bot






### Update [botocore](https://pypi.org/project/botocore) from **1.12.91** to **1.12.96**.


<details>
  <summary>Changelog</summary>
  
  
   ### 1.12.96
   ```
   =======

* api-change:``chime``: Update chime client to latest version
* api-change:``application-autoscaling``: Update application-autoscaling client to latest version
* api-change:``iot``: Update iot client to latest version
   ```
   
  
  
   ### 1.12.95
   ```
   =======

* api-change:``kinesisvideo``: Update kinesisvideo client to latest version
* api-change:``ec2``: Update ec2 client to latest version
   ```
   
  
  
   ### 1.12.94
   ```
   =======

* api-change:``rekognition``: Update rekognition client to latest version
* api-change:``mediatailor``: Update mediatailor client to latest version
* api-change:``efs``: Update efs client to latest version
   ```
   
  
  
   ### 1.12.93
   ```
   =======

* api-change:``lambda``: Update lambda client to latest version
   ```
   
  
  
   ### 1.12.92
   ```
   =======

* api-change:``appstream``: Update appstream client to latest version
* api-change:``codebuild``: Update codebuild client to latest version
* api-change:``mediapackage``: Update mediapackage client to latest version
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/botocore
  - Changelog: https://pyup.io/changelogs/botocore/
  - Repo: https://github.com/boto/botocore
</details>





### Update [cffi](https://pypi.org/project/cffi) from **1.11.5** to **1.12.1**.


<details>
  <summary>Changelog</summary>
  
  
   ### 1.12.1
   ```
   =======

* CPython 3 on Windows: we again no longer compile with ``Py_LIMITED_API``
  by default because such modules *still* cannot be used with virtualenv.
  The problem is that it doesn&#39;t work in CPython &lt;= 3.4, and for
  technical reason we can&#39;t enable this flag automatically based on the
  version of Python.

  Like before, `Issue 350`_ mentions a workaround if you still want
  the ``Py_LIMITED_API`` flag and *either* you are not concerned about
  virtualenv *or* you are sure your module will not be used on CPython
  &lt;= 3.4: pass ``define_macros=[(&quot;Py_LIMITED_API&quot;, None)]`` to the
  ``ffibuilder.set_source()`` call.
   ```
   
  
  
   ### 1.12
   ```
   =====

* `Direct support for pkg-config`__.

* ``ffi.from_buffer()`` takes a new optional *first* argument that gives
  the array type of the result.  It also takes an optional keyword argument
  ``require_writable`` to refuse read-only Python buffers.

* ``ffi.new()``, ``ffi.gc()`` or ``ffi.from_buffer()`` cdata objects
  can now be released at known times, either by using the ``with``
  keyword or by calling the new ``ffi.release()``.

* Windows, CPython 3.x: cffi modules are linked with ``python3.dll``
  again.  This makes them independant on the exact CPython version,
  like they are on other platforms.  **It requires virtualenv 16.0.0.**

* Accept an expression like ``ffi.new(&quot;int[4]&quot;, p)`` if ``p`` is itself
  another cdata ``int[4]``.

* CPython 2.x: ``ffi.dlopen()`` failed with non-ascii file names on Posix

* CPython: if a thread is started from C and then runs Python code (with
  callbacks or with the embedding solution), then previous versions of
  cffi would contain possible crashes and/or memory leaks.  Hopefully,
  this has been fixed (see `issue 362`_).

* Support for ``ffi.cdef(..., pack=N)`` where N is a power of two.
  Means to emulate ``pragma pack(N)`` on MSVC.  Also, the default on
  Windows is now ``pack=8``, like on MSVC.  This might make a difference
  in corner cases, although I can&#39;t think of one in the context of CFFI.
  The old way ``ffi.cdef(..., packed=True)`` remains and is equivalent
  to ``pack=1`` (saying e.g. that fields like ``int`` should be aligned
  to 1 byte instead of 4).

.. __: cdef.htmlpkgconfig
.. _`issue 362`: https://bitbucket.org/cffi/cffi/issues/362/


Older Versions
==============
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/cffi
  - Changelog: https://pyup.io/changelogs/cffi/
  - Docs: http://cffi.readthedocs.org
</details>





### Update [more-itertools](https://pypi.org/project/more-itertools) from **5.0.0** to **6.0.0**.


<details>
  <summary>Changelog</summary>
  
  
   ### 6.0.0
   ```
   This is the first Python 3-only release.

Python 2 users may use [version 5.0.0](https://github.com/erikrose/more-itertools/releases/tag/5.0.0).

See [the release notes](https://github.com/erikrose/more-itertools/blob/e36eeebc9d01d2dbbe232880741e88585a95bf7d/docs/versions.rst600) for the full list of changes.
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/more-itertools
  - Changelog: https://pyup.io/changelogs/more-itertools/
  - Repo: https://github.com/erikrose/more-itertools
  - Docs: https://pythonhosted.org/more-itertools/
</details>





### Update [googleapis-common-protos](https://pypi.org/project/googleapis-common-protos) from **1.5.6** to **1.5.8**.


*The bot wasn't able to find a changelog for this release. [Got an idea?](https://github.com/pyupio/changelogs/issues/new)*

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/googleapis-common-protos
  - Repo: https://github.com/googleapis/googleapis
</details>





### Update [boto3](https://pypi.org/project/boto3) from **1.9.91** to **1.9.96**.


<details>
  <summary>Changelog</summary>
  
  
   ### 1.9.96
   ```
   ======

* api-change:``chime``: [``botocore``] Update chime client to latest version
* api-change:``application-autoscaling``: [``botocore``] Update application-autoscaling client to latest version
* api-change:``iot``: [``botocore``] Update iot client to latest version
   ```
   
  
  
   ### 1.9.95
   ```
   ======

* api-change:``kinesisvideo``: [``botocore``] Update kinesisvideo client to latest version
* api-change:``ec2``: [``botocore``] Update ec2 client to latest version
   ```
   
  
  
   ### 1.9.94
   ```
   ======

* api-change:``rekognition``: [``botocore``] Update rekognition client to latest version
* api-change:``mediatailor``: [``botocore``] Update mediatailor client to latest version
* api-change:``efs``: [``botocore``] Update efs client to latest version
   ```
   
  
  
   ### 1.9.93
   ```
   ======

* api-change:``lambda``: [``botocore``] Update lambda client to latest version
   ```
   
  
  
   ### 1.9.92
   ```
   ======

* api-change:``appstream``: [``botocore``] Update appstream client to latest version
* api-change:``codebuild``: [``botocore``] Update codebuild client to latest version
* api-change:``mediapackage``: [``botocore``] Update mediapackage client to latest version
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/boto3
  - Changelog: https://pyup.io/changelogs/boto3/
  - Repo: https://github.com/boto/boto3
</details>





### Update [Django](https://pypi.org/project/Django) from **2.0.12** to **2.0.13**.


<details>
  <summary>Changelog</summary>
  
  
   ### 2.0.13
   ```
   ===========================

*February 12, 2019*

Django 2.0.13 fixes a regression in 2.0.12/2.0.11.

Bugfixes
========

* Fixed crash in ``django.utils.numberformat.format_number()`` when the number
  has over 200 digits (🎫`30177`).


===========================
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/django
  - Changelog: https://pyup.io/changelogs/django/
  - Homepage: https://www.djangoproject.com/
</details>





### Update [django-countries](https://pypi.org/project/django-countries) from **5.3.2** to **5.3.3**.


<details>
  <summary>Changelog</summary>
  
  
   ### 5.3.3
   ```
   ========================

- Add test coverage for Django Rest Framework 3.9.
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/django-countries
  - Changelog: https://pyup.io/changelogs/django-countries/
  - Repo: https://github.com/SmileyChris/django-countries/
</details>





### Update [newrelic](https://pypi.org/project/newrelic) from **4.12.0.113** to **4.14.0.115**.


<details>
  <summary>Changelog</summary>
  
  
   ### 4.14.0.115
   ```
   This release of the Python agent adds support for native coroutines and generators with the background task API and adds support for Kubernetes detection.

The agent can be installed using easy_install/pip/distribute via the Python Package Index or can be downloaded directly from the New Relic download site.

Features


background_task can now be used with coroutines

The background_task decorator API can now be used with native coroutines and generators.

background_task(name=&#39;my_coroutine&#39;)
 async def my_coroutine():
   await asyncio.sleep(0.1)

Add support for collection of Kubernetes metadata

The agent will now collect environment variables prefixed by NEW_RELIC_METADATA_ as additional metadata. Some of this metadata may be added to Transaction events to provide context between your Kubernetes cluster and your services. For details on the benefits (currently in beta) see this blog post.

The agent now also collects the KUBERNETES_SERVICE_HOST environment variable to detect when the application is running on Kubernetes. The data is used to link the application to the host machine when using the New Relic infrastructure product.


Bug Fixes


Using time trace decorators allowed coroutines to become Iterables and generators to become awaitables

When using time trace decorators native coroutines were converted to iterables. Additionally generators were converted to awaitables. The behavior of generators, native coroutines, and awaitable generators is now unchanged when using time trace decorators.
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/newrelic
  - Changelog: https://pyup.io/changelogs/newrelic/
  - Homepage: http://newrelic.com/docs/python/new-relic-for-python
</details>





### Update [pytest](https://pypi.org/project/pytest) from **4.2.0** to **4.2.1**.


<details>
  <summary>Changelog</summary>
  
  
   ### 4.2.1
   ```
   =========================

Bug Fixes
---------

- `2895 &lt;https://github.com/pytest-dev/pytest/issues/2895&gt;`_: The ``pytest_report_collectionfinish`` hook now is also called with ``--collect-only``.


- `3899 &lt;https://github.com/pytest-dev/pytest/issues/3899&gt;`_: Do not raise ``UsageError`` when an imported package has a ``pytest_plugins.py`` child module.


- `4347 &lt;https://github.com/pytest-dev/pytest/issues/4347&gt;`_: Fix output capturing when using pdb++ with recursive debugging.


- `4592 &lt;https://github.com/pytest-dev/pytest/issues/4592&gt;`_: Fix handling of ``collect_ignore`` via parent ``conftest.py``.


- `4700 &lt;https://github.com/pytest-dev/pytest/issues/4700&gt;`_: Fix regression where ``setUpClass`` would always be called in subclasses even if all tests
  were skipped by a ``unittest.skip()`` decorator applied in the subclass.


- `4739 &lt;https://github.com/pytest-dev/pytest/issues/4739&gt;`_: Fix ``parametrize(... ids=&lt;function&gt;)`` when the function returns non-strings.


- `4745 &lt;https://github.com/pytest-dev/pytest/issues/4745&gt;`_: Fix/improve collection of args when passing in ``__init__.py`` and a test file.


- `4770 &lt;https://github.com/pytest-dev/pytest/issues/4770&gt;`_: ``more_itertools`` is now constrained to &lt;6.0.0 when required for Python 2.7 compatibility.


- `526 &lt;https://github.com/pytest-dev/pytest/issues/526&gt;`_: Fix &quot;ValueError: Plugin already registered&quot; exceptions when running in build directories that symlink to actual source.



Improved Documentation
----------------------

- `3899 &lt;https://github.com/pytest-dev/pytest/issues/3899&gt;`_: Add note to ``plugins.rst`` that ``pytest_plugins`` should not be used as a name for a user module containing plugins.


- `4324 &lt;https://github.com/pytest-dev/pytest/issues/4324&gt;`_: Document how to use ``raises`` and ``does_not_raise`` to write parametrized tests with conditional raises.


- `4709 &lt;https://github.com/pytest-dev/pytest/issues/4709&gt;`_: Document how to customize test failure messages when using
  ``pytest.warns``.



Trivial/Internal Changes
------------------------

- `4741 &lt;https://github.com/pytest-dev/pytest/issues/4741&gt;`_: Some verbosity related attributes of the TerminalReporter plugin are now
  read only properties.
   ```
   
  
</details>


 

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/pytest
  - Changelog: https://pyup.io/changelogs/pytest/
  - Homepage: https://docs.pytest.org/en/latest/
</details>





### Update [sphinx_rtd_theme](https://pypi.org/project/sphinx_rtd_theme) from **0.4.2** to **0.4.3**.


*The bot wasn't able to find a changelog for this release. [Got an idea?](https://github.com/pyupio/changelogs/issues/new)*

<details>
  <summary>Links</summary>
  
  - PyPI: https://pypi.org/project/sphinx-rtd-theme
  - Repo: https://github.com/rtfd/sphinx_rtd_theme/
</details>







Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: pyup-bot <github-bot@pyup.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.