This socket object leaks and the garbage collector has to clean it up (which triggers a warning on some versions of Python).  `TestCase.addCleanup` to the rescue.