We should all say this ;
... I told him to figure it out or quit.
I mean, quitting a dojo is surely no big thing, there are plenty.
(Assuming the original story is even true) : the guy should have cunningly 'arranged' to partner up with just males durin practice ... subtly, and if pushed he could quietly explain to the Sensei without drama and they could both consipre to arrange male partners.
It just takes intelligence, common sense and cooperation.
Not got? Bye.