I merged #20192 #20193 too quickly and now we have random failure in check_complex_data for OutputCodeClassifier in the main branch.
The ValueError is not always raised for complex data for this estimator. It seems to be more frequent on Windows but can also happen on Linux...