##// END OF EJS Templates
test-bundle2-format: force gc so a GeneratorExit will be thrown...
Bryan O'Sullivan -
r27539:23541bdd default
parent child Browse files
Show More
@@ -13,7 +13,7 b' Create an extension to test bundle2 API'
13 > code. We still need to be able to test it while it grow up.
13 > code. We still need to be able to test it while it grow up.
14 > """
14 > """
15 >
15 >
16 > import sys, os
16 > import sys, os, gc
17 > from mercurial import cmdutil
17 > from mercurial import cmdutil
18 > from mercurial import util
18 > from mercurial import util
19 > from mercurial import bundle2
19 > from mercurial import bundle2
@@ -158,6 +158,7 b' Create an extension to test bundle2 API'
158 > # too zealous. It's important for this test that the break
158 > # too zealous. It's important for this test that the break
159 > # occur while we're in the middle of a part.
159 > # occur while we're in the middle of a part.
160 > break
160 > break
161 > gc.collect()
161 > ui.write('fake timeout complete.\n')
162 > ui.write('fake timeout complete.\n')
162 > return
163 > return
163 > try:
164 > try:
General Comments 0
You need to be logged in to leave comments. Login now