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

Sort parametrize params to test_external_plugins_integrated #5563

Merged
merged 2 commits into from
Jul 8, 2019

Conversation

nicoddemus
Copy link
Member

This might cause problems during collection with pytest-xdist; we
didn't see any so far mostly by luck I think.

Shame on me for letting that slip in. 😓

This might cause problems during collection with pytest-xdist; we
didn't see any so far mostly by luck I think.

Shame on me for letting that slip in.
tox.ini Outdated
@@ -131,6 +131,7 @@ filterwarnings =
ignore:yield tests are deprecated, and scheduled to be removed in pytest 4.0:pytest.RemovedInPytest4Warning
ignore:Metafunc.addcall is deprecated and scheduled to be removed in pytest 4.0:pytest.RemovedInPytest4Warning
ignore::pytest.RemovedInPytest4Warning
default:Using or importing the ABCs:DeprecationWarning
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to the main purpose of the PR, but Travis is now issuing this warning:

/home/travis/build/pytest-dev/pytest/.tox/py37-lsof-numpy-twisted-xdist/lib/python3.7/site-packages/unittest2/compatibility.py:143: in <module>
    class ChainMap(collections.MutableMapping):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
name = 'MutableMapping'
    def __getattr__(name):
        # For backwards compatibility, continue to make the collections ABCs
        # through Python 3.6 available through the collections module.
        # Note, no new collections ABCs were added in Python 3.7
        if name in _collections_abc.__all__:
            obj = getattr(_collections_abc, name)
            import warnings
            warnings.warn("Using or importing the ABCs from 'collections' instead "
                          "of from 'collections.abc' is deprecated, "
                          "and in 3.8 it will stop working",
>                         DeprecationWarning, stacklevel=2)
E           DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is redundant with #5565, right? In which case I'd rather wait for that rather than suppress the warning, since it could indicate a real problem somewhere else!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this to be specific to unittest2 now, given that we won't be actually dropping unittest2 until 6.0.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zac-HD can you please approve if this looks good to you now? Thanks! 🙇

@codecov
Copy link

codecov bot commented Jul 5, 2019

Codecov Report

Merging #5563 into master will increase coverage by 2.27%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5563      +/-   ##
==========================================
+ Coverage   93.83%   96.11%   +2.27%     
==========================================
  Files         117      117              
  Lines       25713    25713              
  Branches     2493     2493              
==========================================
+ Hits        24128    24714     +586     
+ Misses       1256      695     -561     
+ Partials      329      304      -25
Impacted Files Coverage Δ
testing/deprecated_test.py 100% <100%> (ø) ⬆️
src/_pytest/fixtures.py 97.52% <0%> (+0.13%) ⬆️
src/_pytest/python.py 93% <0%> (+0.24%) ⬆️
testing/test_config.py 99.83% <0%> (+0.33%) ⬆️
src/_pytest/config/__init__.py 94.62% <0%> (+0.48%) ⬆️
src/_pytest/assertion/rewrite.py 96.08% <0%> (+0.53%) ⬆️
testing/test_pytester.py 89.27% <0%> (+0.57%) ⬆️
testing/test_runner.py 96.27% <0%> (+0.65%) ⬆️
src/_pytest/nodes.py 95.5% <0%> (+1%) ⬆️
testing/test_terminal.py 99.84% <0%> (+1.4%) ⬆️
... and 20 more

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 2180d9e...7aff51e. Read the comment docs.

This is being raised by `unittest2.compatibility`:

DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@nicoddemus nicoddemus merged commit b77c876 into pytest-dev:master Jul 8, 2019
@nicoddemus nicoddemus deleted the sort-fix branch July 8, 2019 22:24
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.

None yet

2 participants