TST Replaces pytest.warns(None) in test_pls (#22832)
TST Replaces pytest.warns(None) in test_pls (#22832)

Co-authored-by: Thomas J. Fan <5e8796a332fafc9c261437cd1787ae2709a896a7@gmail.com>
Co-authored-by: Shan-Deng <ea283917343b816e77f7df7df41fbe7b49f974c9@users.noreply.github.com>
TomDLT/scikit-learn,anntzer/scikit-learn,vinayak-mehta/scikit-learn,saiwing-yeung/scikit-learn,vinayak-mehta/scikit-learn,manhhomienbienthuy/scikit-learn,jakirkham/scikit-learn,AlexandreAbraham/scikit-learn,saiwing-yeung/scikit-learn,lesteve/scikit-learn,scikit-learn/scikit-learn,jakirkham/scikit-learn,saiwing-yeung/scikit-learn,jakirkham/scikit-learn,TomDLT/scikit-learn,anntzer/scikit-learn,ivannz/scikit-learn,espg/scikit-learn,saiwing-yeung/scikit-learn,scikit-learn/scikit-learn,vinayak-mehta/scikit-learn,anntzer/scikit-learn,anntzer/scikit-learn,AlexandreAbraham/scikit-learn,betatim/scikit-learn,manhhomienbienthuy/scikit-learn,betatim/scikit-learn,manhhomienbienthuy/scikit-learn,TomDLT/scikit-learn,espg/scikit-learn,lesteve/scikit-learn,ivannz/scikit-learn,scikit-learn/scikit-learn,ivannz/scikit-learn,espg/scikit-learn,scikit-learn/scikit-learn,AlexandreAbraham/scikit-learn,betatim/scikit-learn,lesteve/scikit-learn,betatim/scikit-learn,ivannz/scikit-learn,espg/scikit-learn,jakirkham/scikit-learn,lesteve/scikit-learn,TomDLT/scikit-learn,vinayak-mehta/scikit-learn,AlexandreAbraham/scikit-learn,manhhomienbienthuy/scikit-learn