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

Use context manager for assertWarns and fix DeprecationWarning #824

Merged
merged 2 commits into from Aug 30, 2019
Merged

Use context manager for assertWarns and fix DeprecationWarning #824

merged 2 commits into from Aug 30, 2019

Conversation

tirkarthi
Copy link
Contributor

This fix unblock fedora to package the library for Python 3.8 : https://bugzilla.redhat.com/show_bug.cgi?id=1706212

Thanks

@tirkarthi
Copy link
Contributor Author

The test failures seem to be unrelated to this PR.

@hgrecco
Copy link
Owner

hgrecco commented Aug 9, 2019

Why is this failing?

@tirkarthi
Copy link
Contributor Author

I have fixed the issue regarding assertWarns being not present in Python 2. I am still not sure of the CI failure though.

@hgrecco
Copy link
Owner

hgrecco commented Aug 30, 2019

bors r+

bors bot added a commit that referenced this pull request Aug 30, 2019
824: Use context manager for assertWarns and fix DeprecationWarning r=hgrecco a=tirkarthi

* Fix `DeprecationWarning` to use collections.abc
* Starting from Python 3.8 `assertRaises` no longer accepts a None with python/cpython#8623 . So use a context manager and assert for `RuntimeWarning`

This fix unblock fedora to package the library for Python 3.8 : https://bugzilla.redhat.com/show_bug.cgi?id=1706212

Thanks

Co-authored-by: xtreak <tir.karthi@gmail.com>
@bors
Copy link
Contributor

bors bot commented Aug 30, 2019

Build succeeded

@bors bors bot merged commit 69ef39e into hgrecco:master Aug 30, 2019
@tirkarthi
Copy link
Contributor Author

Thanks @hgrecco :)

@tirkarthi tirkarthi deleted the fix-runtime-assertion branch August 30, 2019 14:44
@hgrecco
Copy link
Owner

hgrecco commented Aug 30, 2019

Sorry for the delay, testing in travis was problematic.

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