Effects of toroidicity on resistive tearing modes