test-bundle2-format: force gc so a GeneratorExit will be thrown
PyPy has looser semantics than CPython for when a generator's close
method will be called. Forcing the gc causes it to be called at
the right moment.
--- a/tests/test-bundle2-format.t Wed Dec 23 16:22:20 2015 -0800
+++ b/tests/test-bundle2-format.t Wed Dec 23 16:22:20 2015 -0800
@@ -13,7 +13,7 @@
> code. We still need to be able to test it while it grow up.
> """
>
- > import sys, os
+ > import sys, os, gc
> from mercurial import cmdutil
> from mercurial import util
> from mercurial import bundle2
@@ -158,6 +158,7 @@
> # too zealous. It's important for this test that the break
> # occur while we're in the middle of a part.
> break
+ > gc.collect()
> ui.write('fake timeout complete.\n')
> return
> try: