Fix warnings during final GC of the test suite in python 3.4a1.

3.4 can GC things that were uncollectable before, like abandoned generators.
It also seems generates ResourceWarnings for unclosed files in places
where older versions did not.