Skip to content

Use context manager for assertWarns and fix DeprecationWarning#824

Merged
bors[bot] merged 2 commits intohgrecco:masterfrom
tirkarthi:fix-runtime-assertion
Aug 30, 2019
Merged

Use context manager for assertWarns and fix DeprecationWarning#824
bors[bot] merged 2 commits intohgrecco:masterfrom
tirkarthi:fix-runtime-assertion

Conversation

@tirkarthi
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

The test failures seem to be unrelated to this PR.

@hgrecco
Copy link
Copy Markdown
Owner

hgrecco commented Aug 9, 2019

Why is this failing?

@tirkarthi
Copy link
Copy Markdown
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
Copy Markdown
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 <[email protected]>
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Aug 30, 2019

Build succeeded

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

Thanks @hgrecco :)

@tirkarthi tirkarthi deleted the fix-runtime-assertion branch August 30, 2019 14:44
@hgrecco
Copy link
Copy Markdown
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.

2 participants