Skip to content

bpo-41003: Fix test_copyreg when numpy is installed#20935

Merged
vstinner merged 2 commits into
python:masterfrom
vstinner:save_restore_warnings_filters
Jun 17, 2020
Merged

bpo-41003: Fix test_copyreg when numpy is installed#20935
vstinner merged 2 commits into
python:masterfrom
vstinner:save_restore_warnings_filters

Conversation

@vstinner

@vstinner vstinner commented Jun 17, 2020

Copy link
Copy Markdown
Member

Fix test_copyreg when numpy is installed: test.pickletester now
saves/restores warnings.filters when importing numpy, to ignore
filters installed by numpy.

Add the save_restore_warnings_filters() function to the
test.support.warnings_helper module.

https://bugs.python.org/issue41003

Fix test_copyreg when numpy is installed: test.pickletester now
saves/restores warnings.filters when importing numpy, to ignore
filters installed by numpy.

Add the save_restore_warnings_filters() function to the
test.support.warnings_helper module.
@vstinner

Copy link
Copy Markdown
Member Author

This change should be backport to 3.8 and 3.9 branches, but 3.9 doesn't have the test.support.warnings_helper module. I will backport the change manually.

@vstinner
vstinner merged commit 8362893 into python:master Jun 17, 2020
@vstinner
vstinner deleted the save_restore_warnings_filters branch June 17, 2020 16:07
@vstinner
vstinner restored the save_restore_warnings_filters branch June 17, 2020 16:16
@vstinner
vstinner deleted the save_restore_warnings_filters branch June 17, 2020 16:17
vstinner added a commit that referenced this pull request Jun 17, 2020
)

Fix test_copyreg when numpy is installed: test.pickletester now
saves/restores warnings.filters when importing numpy, to ignore
filters installed by numpy.

Add the save_restore_warnings_filters() function to the
test.support.warnings_helper module.

(cherry picked from commit 8362893)
vstinner added a commit that referenced this pull request Jun 17, 2020
) (GH-20946)

Fix test_copyreg when numpy is installed: test.pickletester now
saves/restores warnings.filters when importing numpy, to ignore
filters installed by numpy.

Add the save_restore_warnings_filters() function to the
test.support.warnings_helper module.

(cherry picked from commit 8362893)
(cherry picked from commit b39d41b)
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