2001 Honda CR-V bad gas cap - automatic reset code?

I have a 2001 Honda CR-V that I need to have a smog check and the check engine light just turned on. Previously, the code was for a Gas leak, so I re-tightened the gas cap. Again, the check engine light turned on and when I got out of the car, I smelled has fumes. Checked the gas cap and the o-ring has a crack.

I do not want to reset the code, due to not wanting to complete a full drive cycle for the smog check. Will the 2001 Honda CR-V automatically erase the code when it senses the problem has been fixed? Or does this car require me to erase the code manually?

Thank you for your help

Read more: 2001 Honda CR-V bad gas cap - automatic reset code?