Rip out old testing code that was inlined in threading.
Rip out old testing code that was inlined in threading.

Partially closes issue 9346. Thanks Brian Brazil for the patch.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator