The logic to delete __pycache__ directories only checked their existence on the top level tempdir. If pycache also existed inside a subdirectory (which could happen through interactive debugging sessions through Jaques Lucke's Visual Studio Code addon), running the tests tried to clean up the .pyc file from within __pycache_\, Instead of removing the subdirs before zipping, this patch just skips over them while iterating the directory structure.
The logic to delete __pycache__ directories only checked their existence on the top level tempdir. If pycache also existed inside a subdirectory (which could happen through interactive debugging sessions through Jaques Lucke's Visual Studio Code addon), running the tests tried to clean up the .pyc file from within __pycache_\, Instead of removing the subdirs before zipping, this patch just skips over them while iterating the directory structure.