The invention relates to the cooling of a stator (3) of an electric machine (1), the stator (3) comprising an autonomous cooling circuit, that is to say distinct from another cooling circuit such as that of a rotor of the electric machine (1), for example. The invention is particularly suitable for cooling an electric machine operating at high temperature and cooled by oil circulation. According to the invention, a fluidtight shell (9) is sandwiched in the magnetic circuit (7, 8). This shell (9) is subjected to considerably fewer mechanical stresses than a shell placed in the gap (25) of the electric machine (1).