TST Improved testing logic in `tests/test_logistic.py` (#22314)
TST Improved testing logic in `tests/test_logistic.py` (#22314)



Co-authored-by: Thomas J. Fan <5e8796a332fafc9c261437cd1787ae2709a896a7@gmail.com>
Co-authored-by: Olivier Grisel <2debdaedc015a28b6d296a878ea9501beb58cbd4@ensta.org>
betatim/scikit-learn,ivannz/scikit-learn,jakirkham/scikit-learn,lesteve/scikit-learn,betatim/scikit-learn,jakirkham/scikit-learn,vinayak-mehta/scikit-learn,betatim/scikit-learn,manhhomienbienthuy/scikit-learn,lesteve/scikit-learn,manhhomienbienthuy/scikit-learn,anntzer/scikit-learn,AlexandreAbraham/scikit-learn,saiwing-yeung/scikit-learn,espg/scikit-learn,espg/scikit-learn,saiwing-yeung/scikit-learn,manhhomienbienthuy/scikit-learn,AlexandreAbraham/scikit-learn,saiwing-yeung/scikit-learn,anntzer/scikit-learn,jakirkham/scikit-learn,TomDLT/scikit-learn,scikit-learn/scikit-learn,lesteve/scikit-learn,vinayak-mehta/scikit-learn,espg/scikit-learn,vinayak-mehta/scikit-learn,TomDLT/scikit-learn,scikit-learn/scikit-learn,anntzer/scikit-learn,saiwing-yeung/scikit-learn,TomDLT/scikit-learn,anntzer/scikit-learn,jakirkham/scikit-learn,manhhomienbienthuy/scikit-learn,AlexandreAbraham/scikit-learn,ivannz/scikit-learn,ivannz/scikit-learn,vinayak-mehta/scikit-learn,TomDLT/scikit-learn,betatim/scikit-learn,lesteve/scikit-learn,scikit-learn/scikit-learn,ivannz/scikit-learn,AlexandreAbraham/scikit-learn,espg/scikit-learn,scikit-learn/scikit-learn