An electric motor , comprising: a rotor ; a stator disposed around the rotor ; a housing that has a storage space (P1) for storing the rotor and the stator , an opening (A1) for opening the storage space to one side in an axial direction along a central axis of rotation of the rotor , an edge surface (S2) surrounding the opening (A1), and a notch that is concaved from an edge surface (S2) toward the other side in the axial direction; a cover attachable to the housing from the one side in the axial direction; a lead wire connected to the stator ; a sealing space (P2) formed inside of the housing ; a partition wall that is provided inside of the notch of the housing in order to separate the sealing space (P2) for injecting a sealant (M1) for covering at least a part of the stator and a space outside the sealing space (P2) from each other, and comprises a through-hole for allowing the lead wire to be extended to the outside of the sealing space (P2); an elastic member inside of the notch , wherein the elastic member is sandwiched between the partition wall and the housing , or the partition wall is sandwiched between the elastic member and the housing in the axial direction; and a side elastic member that is more elastic than the partition wall and provided between an internal surface of the housing that faces the inside of the notch and the partition wall ; wherein the cover has a flat contact surface contactable with the end surface of the partition wall or of the elastic member and the edge surface (S2) of the housing , wherein the elastic member is more elastic than the partition wall , and wherein an end surface of the partition wall or of the elastic member that is disposed on the one side in the axial direction is disposed on a plane surface including the edge surface (S2) of the housing , or is disposed on the one side in the axial direction with respect to the plane surface. a rotor ; a stator disposed around the rotor ; a housing that has a storage space (P1) for storing the rotor and the stator , an opening (A1) for opening the storage space to one side in an axial direction along a central axis of rotation of the rotor , an edge surface (S2) surrounding the opening (A1), and a notch that is concaved from an edge surface (S2) toward the other side in the axial direction; a cover attachable to the housing from the one side in the axial direction; a lead wire connected to the stator ; a sealing space (P2) formed inside of the housing ; a partition wall that is provided inside of the notch of the housing in order to separate the sealing space (P2) for injecting a sealant (M1) for covering at least a part of the stator and a space outside the sealing space (P2) from each other, and comprises a through-hole for allowing the lead wire to be extended to the outside of the sealing space (P2); an elastic member inside of the notch , wherein the elastic member is sandwiched between the partition wall and the housing , or the partition wall is sandwiched between the elastic member and the housing in the axial direction; and a side elastic member that is more elastic than the partition wall and provided between an internal surface of the housing that faces the inside of the notch and the partition wall ; wherein the cover has a flat contact surface contactable with the end surface of the partition wall or of the elastic member and the edge surface (S2) of the housing , wherein the elastic member is more elastic than the partition wall , and wherein an end surface of the partition wall or of the elastic member that is disposed on the one side in the axial direction is disposed on a plane surface including the edge surface (S2) of the housing , or is disposed on the one side in the axial direction with respect to the plane surface. <EOS>