Skip to content

Fix test_conflicting_post_params to work on pytest 5#5305

Merged
nateprewitt merged 3 commits intopsf:masterfrom
hroncok:pytest5
May 9, 2020
Merged

Fix test_conflicting_post_params to work on pytest 5#5305
nateprewitt merged 3 commits intopsf:masterfrom
hroncok:pytest5

Conversation

@hroncok
Copy link
Contributor

@hroncok hroncok commented Jan 2, 2020

The non-contextmanager form of pytest.raises was removed in pytest 5.
http://doc.pytest.org/en/latest/deprecations.html#raises-warns-with-a-string-as-the-second-argument

It was used here to support Python < 2.7, but that is no longer needed.
#1503 (comment)

Fixes #5304

The non-contextmanager form of pytest.raises was removed in pytest 5.
http://doc.pytest.org/en/latest/deprecations.html#raises-warns-with-a-string-as-the-second-argument

It was used here to support Python < 2.7, but that is no longer needed.
psf#1503 (comment)

Fixes psf#5304
@hroncok
Copy link
Contributor Author

hroncok commented Apr 14, 2020

What can I do to help getting this merged? I consider the change fairly trivial, self contained and easy to grasp. But the more this remains open, the chances of diverging are getting higher.

If there is anything else required from my side, please do let me know.

@nateprewitt
Copy link
Member

Thanks @hroncok!

@nateprewitt nateprewitt merged commit 427e8eb into psf:master May 9, 2020
@hroncok hroncok deleted the pytest5 branch May 9, 2020 11:59
@hroncok
Copy link
Contributor Author

hroncok commented May 9, 2020

Thanks for merging @nateprewitt.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pytest.raises with a string as the second argument removed in pytest 5

2 participants