◐ Shell
clean mode source ↗

Message 98939 - Python tracker

It looks fine.

Few comments:
 - "{}_python_{}" could be better, to identify the culprit for leftover directories.
 - the warning message may be more specific:
   "warnings.warn('tests may fail, unable to switch to ' + name,
                  RuntimeWarning, stacklevel=3)"
 - style guide recommends two spaces after a sentence-ending period