The Tony Randall Show
Case: The People Speak (1x22)
:
Walter runs for Superior Court judge against a former rival. Franklin runs for Superior Court Judge, his opponent dies during the election but too late for his name to be removed from the ballot. Lo and behold, he wins. Franklin is beaten by a dead man.