Closed
Description
- _skip_if_32bit (Converted windows / 32bit skips into decorators #18693)
- _skip_if_no_mpl (TST: Skipif decorator for matplotlib #18190 #18427)
- _skip_if_mpl_1_5 (Added mpl_15 decorator #18682)
- _skip_if_no_scipy (Skipif no scipy #18794)
- _skip_if_no_lzma (Skipif no lzma ne #18820)
- _skip_if_no_xarray (Removed old xarr and ipython decorators #18814)
- _skip_if_windows_python_3 (Converted windows / 32bit skips into decorators #18693)
- _skip_if_windows (Converted windows / 32bit skips into decorators #18693)
- _skip_if_no_pathlib (TST: Skip if Decorators for Localpath and Pathlib #18765)
- _skip_if_no_localpath (TST: Skip if Decorators for Localpath and Pathlib #18765)
- skip_if_no_ne (Skipif no lzma ne #18820)
- _skip_if_has_locale (Created decorators for skip_if locale functions #18745)
- _skip_if_not_us_locale (Created decorators for skip_if locale functions #18745)
- _skip_if_no_mock
- _skip_if_no_ipython (Removed old xarr and ipython decorators #18814)
- skip_if_no_package
we should move the _skip_if_*
functions out of pandas.util.testing
to another (private module)
then we can add skipif decorators
and use like this
@skip_if_windows_py3
def test_.......():
rather than calling tm._skip_if_windows_py390
in the body of the function (sometimes you also need to do that, so we leave the functions themselves as well).
this makes much more idiomatic and readable pytest code and removes the need to roll your own when using the decorator.