Use a low level undead nuke and cast it on your pet in a non-city zone like Butcherblock or something. The DD won't hit your pet cause he can't be hit by PC spells, but you will still get skill-ups even if you don't do damage because the spell actually casts.
This is how I skilled my necro.