Close #18945: Add tests for tempfile name collision handling.
Close #18945: Add tests for tempfile name collision handling.

Patch by Vlad Shcherbina

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