Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MAINT: Do not use private Python function in testing #15203

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

Merged
merged 1 commit into from
Jan 5, 2020

Conversation

mattip
Copy link
Member

@mattip mattip commented Dec 30, 2019

Fixes #15202

As @pv pointed out, the test module is not to be used outside stdlib tests. Copy-pasting seems the best idea to resolve this.

@mattip mattip added 03 - Maintenance 09 - Backport-Candidate PRs tagged should be backported labels Dec 30, 2019
@mattip mattip added this to the 1.18.1 release. milestone Dec 30, 2019
@charris
Copy link
Member

charris commented Dec 30, 2019

Maybe we should make the decorator public and available from numpy.testing?

@mattip
Copy link
Member Author

mattip commented Dec 30, 2019

Is this a common problem?

@charris
Copy link
Member

charris commented Dec 30, 2019

Is this a common problem?

I doubt it, but when needed it is needed. The memory checks aren't all that different in that regard. Might want to run it by the mailing list for comment.

@pv
Copy link
Member

pv commented Dec 30, 2019 via email

@charris charris merged commit b5739e8 into numpy:master Jan 5, 2020
@charris
Copy link
Member

charris commented Jan 5, 2020

Thanks Matti. We should look into @pv 's suggestion of setting up a place for private numpy testing functions.

@charris charris changed the title MAINT: refactor function out of test module MAINT: Dpm function out of test module Jan 5, 2020
@charris charris changed the title MAINT: Dpm function out of test module MAINT: Do not use private Python function in testing Jan 5, 2020
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 5, 2020
@charris charris removed this from the 1.18.1 release. milestone Jan 5, 2020
@h6197627
Copy link
Contributor

There is one more

from test.support import no_tracing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failures on Fedora
4 participants