Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kwarg for attr.ib to use 'converter' as 'convert' is due to be deprecated. #4795

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

ramatevish
Copy link
Contributor

@ramatevish ramatevish commented Feb 14, 2019

The attrs package is in the process of deprecating the convert kwarg for Atrribute in favor of converter for consistency (see python-attrs/attrs#307). Ironically this removal is stalled as attrs uses pytest, which of course fails when the convert kwarg is removed.

Support for both presently exists in attrs>=15.2.0.

@RonnyPfannschmidt
Copy link
Member

good catch, thanks

@codecov
Copy link

codecov bot commented Feb 14, 2019

Codecov Report

Merging #4795 into master will increase coverage by 0.19%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4795      +/-   ##
==========================================
+ Coverage   95.47%   95.67%   +0.19%     
==========================================
  Files         113      113              
  Lines       25041    25041              
  Branches     2486     2486              
==========================================
+ Hits        23908    23958      +50     
+ Misses        800      767      -33     
+ Partials      333      316      -17
Flag Coverage Δ
#docs 29.63% <ø> (+0.17%) ⬆️
#doctesting 29.63% <ø> (+0.17%) ⬆️
#linting 29.63% <ø> (+0.17%) ⬆️
#linux 95.49% <ø> (+0.01%) ⬆️
#nobyte 92.22% <ø> (+0.63%) ⬆️
#numpy 93.06% <ø> (+50.99%) ⬆️
#pexpect 42.09% <ø> (+0.02%) ⬆️
#pluggymaster 93.73% <ø> (+0.23%) ⬆️
#py27 93.7% <ø> (+0.15%) ⬆️
#py34 91.69% <ø> (+0.18%) ⬆️
#py35 91.69% <ø> (+0.18%) ⬆️
#py36 91.71% <ø> (+0.23%) ⬆️
#py37 93.8% <ø> (+0.18%) ⬆️
#trial 93.06% <ø> (+50.99%) ⬆️
#windows 93.75% <ø> (?)
#xdist 93.63% <ø> (+0.15%) ⬆️
Impacted Files Coverage Δ
src/_pytest/tmpdir.py 100% <ø> (ø) ⬆️
src/_pytest/fixtures.py 97.91% <0%> (+0.27%) ⬆️
testing/test_capture.py 99.23% <0%> (+0.3%) ⬆️
src/_pytest/pytester.py 87.44% <0%> (+0.42%) ⬆️
src/_pytest/terminal.py 91.85% <0%> (+0.81%) ⬆️
src/_pytest/nodes.py 95.52% <0%> (+0.99%) ⬆️
testing/acceptance_test.py 97.86% <0%> (+1.06%) ⬆️
src/_pytest/cacheprovider.py 97.16% <0%> (+1.41%) ⬆️
src/_pytest/pathlib.py 90.65% <0%> (+2.19%) ⬆️
src/_pytest/capture.py 93.66% <0%> (+3.16%) ⬆️
... and 2 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 c84ae0b...40cec63. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Feb 14, 2019

Codecov Report

Merging #4795 into master will increase coverage by 0.19%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4795      +/-   ##
==========================================
+ Coverage   95.47%   95.67%   +0.19%     
==========================================
  Files         113      113              
  Lines       25041    25041              
  Branches     2486     2486              
==========================================
+ Hits        23908    23958      +50     
+ Misses        800      767      -33     
+ Partials      333      316      -17
Flag Coverage Δ
#docs 29.63% <ø> (+0.17%) ⬆️
#doctesting 29.63% <ø> (+0.17%) ⬆️
#linting 29.63% <ø> (+0.17%) ⬆️
#linux 95.49% <ø> (+0.01%) ⬆️
#nobyte 92.22% <ø> (+0.63%) ⬆️
#numpy 93.06% <ø> (+50.99%) ⬆️
#pexpect 42.09% <ø> (+0.02%) ⬆️
#pluggymaster 93.73% <ø> (+0.23%) ⬆️
#py27 93.7% <ø> (+0.15%) ⬆️
#py34 91.69% <ø> (+0.18%) ⬆️
#py35 91.69% <ø> (+0.18%) ⬆️
#py36 91.71% <ø> (+0.23%) ⬆️
#py37 93.8% <ø> (+0.18%) ⬆️
#trial 93.06% <ø> (+50.99%) ⬆️
#windows 93.75% <ø> (?)
#xdist 93.63% <ø> (+0.15%) ⬆️
Impacted Files Coverage Δ
src/_pytest/tmpdir.py 100% <ø> (ø) ⬆️
src/_pytest/fixtures.py 97.91% <0%> (+0.27%) ⬆️
testing/test_capture.py 99.23% <0%> (+0.3%) ⬆️
src/_pytest/pytester.py 87.44% <0%> (+0.42%) ⬆️
src/_pytest/terminal.py 91.85% <0%> (+0.81%) ⬆️
src/_pytest/nodes.py 95.52% <0%> (+0.99%) ⬆️
testing/acceptance_test.py 97.86% <0%> (+1.06%) ⬆️
src/_pytest/cacheprovider.py 97.16% <0%> (+1.41%) ⬆️
src/_pytest/pathlib.py 90.65% <0%> (+2.19%) ⬆️
src/_pytest/capture.py 93.66% <0%> (+3.16%) ⬆️
... and 2 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 c84ae0b...40cec63. Read the comment docs.

@nicoddemus nicoddemus merged commit 0b69604 into pytest-dev:master Feb 14, 2019
kolyshkin added a commit to kolyshkin/docker-py that referenced this pull request Oct 2, 2019
Pytest 4.3.1 includes the fix from

	pytest-dev/pytest#4795

which should fix the following failure:

> INFO: Building docker-sdk-python3:4.0.2...
> sha256:c7a40413c985b6e75df324fae39b1c30cb78a25df71b7892f1a4a15449537fb3
> INFO: Starting docker-py tests...
> Traceback (most recent call last):
>   File "/usr/local/bin/pytest", line 10, in <module>
>     sys.exit(main())
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 61, in main
>     config = _prepareconfig(args, plugins)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 182, in _prepareconfig
>     config = get_config()
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 156, in get_config
>     pluginmanager.import_plugin(spec)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 530, in import_plugin
>     __import__(importspec)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 25, in <module>
>     class TempPathFactory(object):
>   File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory
>     lambda p: Path(os.path.abspath(six.text_type(p)))
> TypeError: attrib() got an unexpected keyword argument 'convert'
> Sending interrupt signal to process
> Terminated
> script returned exit code 143

Signed-off-by: Kir Kolyshkin <[email protected]>
chris-crone pushed a commit to docker/docker-py that referenced this pull request Oct 3, 2019
Pytest 4.3.1 includes the fix from

	pytest-dev/pytest#4795

which should fix the following failure:

> INFO: Building docker-sdk-python3:4.0.2...
> sha256:c7a40413c985b6e75df324fae39b1c30cb78a25df71b7892f1a4a15449537fb3
> INFO: Starting docker-py tests...
> Traceback (most recent call last):
>   File "/usr/local/bin/pytest", line 10, in <module>
>     sys.exit(main())
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 61, in main
>     config = _prepareconfig(args, plugins)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 182, in _prepareconfig
>     config = get_config()
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 156, in get_config
>     pluginmanager.import_plugin(spec)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 530, in import_plugin
>     __import__(importspec)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 25, in <module>
>     class TempPathFactory(object):
>   File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory
>     lambda p: Path(os.path.abspath(six.text_type(p)))
> TypeError: attrib() got an unexpected keyword argument 'convert'
> Sending interrupt signal to process
> Terminated
> script returned exit code 143

Signed-off-by: Kir Kolyshkin <[email protected]>
thaJeztah added a commit to thaJeztah/compose that referenced this pull request Oct 7, 2019
Pytest 4.3.1 includes the fix from

	pytest-dev/pytest#4795

Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah added a commit to thaJeztah/compose that referenced this pull request Oct 16, 2019
Pytest 4.3.1 includes the fix from

	pytest-dev/pytest#4795

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Skazza94 pushed a commit to tcaiazzi/docker-py that referenced this pull request Feb 19, 2020
Pytest 4.3.1 includes the fix from

	pytest-dev/pytest#4795

which should fix the following failure:

> INFO: Building docker-sdk-python3:4.0.2...
> sha256:c7a40413c985b6e75df324fae39b1c30cb78a25df71b7892f1a4a15449537fb3
> INFO: Starting docker-py tests...
> Traceback (most recent call last):
>   File "/usr/local/bin/pytest", line 10, in <module>
>     sys.exit(main())
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 61, in main
>     config = _prepareconfig(args, plugins)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 182, in _prepareconfig
>     config = get_config()
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 156, in get_config
>     pluginmanager.import_plugin(spec)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 530, in import_plugin
>     __import__(importspec)
>   File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 25, in <module>
>     class TempPathFactory(object):
>   File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory
>     lambda p: Path(os.path.abspath(six.text_type(p)))
> TypeError: attrib() got an unexpected keyword argument 'convert'
> Sending interrupt signal to process
> Terminated
> script returned exit code 143

Signed-off-by: Kir Kolyshkin <[email protected]>
Signed-off-by: Mariano Scazzariello <[email protected]>
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.

3 participants