What is the black and white film with a witch who traps someone in a bottle?

The 1942 movie, I Married a Witch, has such an incident. Fredric March, the male romantic lead, plays Jonathan Wooley, Nathaniel Wooley, Samuel Wooley, and Wallace Wooley. Veronica Lake, the female romantic lead, plays Jennifer, the witch.

Cecil Kellaway plays Daniel, Jennifer's father, the one whom Jennifer traps in the bottle.