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

[ENH] in check_estimator and run_tests replace return_exceptions arg with raise_exceptions, with deprecation #4030

Merged
merged 8 commits into from
Jan 10, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Dec 31, 2022

This PR changes the return_exceptions argument in some testing utilities to raise_exceptions, with deprecation (for 0.17.0).

Affected functions are check_estimator, and QuickTester.run_tests.

The reason for the change is that an argument raise_exceptions is much clearer to the user in semantics and function than return_exceptions. Since, in common user perception, raise_exceptions is "what happens" in comparison to a baseline case of it not happening.

It also becomes consistent with arguments in the testing module, e.g., conditional fixture generation functionality such as create_conditional_fixtures_and_names where the argument is already called raise_exceptions.

Also changes any internal references to the argument to the post-deprecation state.

@fkiraly fkiraly added module:tests test framework functionality - only framework, excl specific tests enhancement Adding new functionality labels Dec 31, 2022
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@fkiraly fkiraly changed the title [ENH] in check_estimator and run_tests replace return_exceptions with raise_exceptions, with deprecation [ENH] in check_estimator and run_tests replace return_exceptionsarg with raise_exceptions, with deprecation Jan 1, 2023
@fkiraly fkiraly changed the title [ENH] in check_estimator and run_tests replace return_exceptionsarg with raise_exceptions, with deprecation [ENH] in check_estimator and run_tests replace return_exceptions arg with raise_exceptions, with deprecation Jan 1, 2023
@fkiraly fkiraly merged commit 4a8ba8b into main Jan 10, 2023
@fkiraly fkiraly deleted the deprec-check_estimator-return_exceptions branch January 10, 2023 11:37
klam-data pushed a commit to CodeSmithDSMLProjects/sktime that referenced this pull request Jan 18, 2023
…` arg with `raise_exceptions`, with deprecation (sktime#4030)

This PR changes the `return_exceptions` argument in some testing utilities to `raise_exceptions`, with deprecation (for 0.17.0).

Affected functions are `check_estimator`, and `QuickTester.run_tests`.

The reason for the change is that an argument `raise_exceptions` is much clearer to the user in semantics and function than `return_exceptions`. Since, in common user perception, `raise_exceptions` is "what happens" in comparison to a baseline case of it not happening.

It also becomes consistent with arguments in the testing module, e.g., conditional fixture generation functionality such as `create_conditional_fixtures_and_names` where the argument is already called `raise_exceptions`.

Also changes any internal references to the argument to the post-deprecation state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality module:tests test framework functionality - only framework, excl specific tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant