The Black Witch Wasn't Build in a Day
After learning a time control spell from Gyubid, Chiyoko attempts to use it to skip a PE lesson. However, after a bug messes up her finger motions, she ends up stuck in an infinite loop where she must do her PE lesson over and over. After going through multiple loops, she manages to break out of it after managing to do a successful vault.
Aired 09/01/2013EP 26 - The Black Witch Wasn't Build in a Day

Kuromajo-san ga Tooru!!
Kurotori Chiyoko, a 5th-grader in elementary school, loves the occult. One day, a friend requests her to do a love fortune-telling. Chiyoko tries to summon Cupid, but thanks to a stuffy nose, accidentally summons a witch named Gyubid instead!
From that day on, Chiyoko starts learning witchcraft from Gyubid, the self-proclaimed hottest instructor of the magic world. The training regimen is tough, and punishment for slacking is harsh. Fortunately, Chiyoko is able to keep her extra-curricular studies secret, aided by the fact that no one else can see Gyubid.
(Source: AnimeNfo.com)