]> granicus.if.org Git - python/commitdiff
Issue #27736: Improve the existing embedded interpreter init/fini test
authorNed Deily <nad@python.org>
Tue, 16 Aug 2016 04:17:42 +0000 (00:17 -0400)
committerNed Deily <nad@python.org>
Tue, 16 Aug 2016 04:17:42 +0000 (00:17 -0400)
by increasing the number of iterations.  That appears sufficient to
expose the ref count problem fixed in this issue.
Patch suggested by Xiang Zhang

Programs/_testembed.c

index ab6a8c75073ca99039872e7b9fa9382d96d5ef00..39683993ea06ef25135bc7e84f6b275203cd6a3d 100644 (file)
@@ -41,7 +41,7 @@ static void test_repeated_init_and_subinterpreters(void)
 #endif
     int i, j;
 
-    for (i=0; i<3; i++) {
+    for (i=0; i<15; i++) {
         printf("--- Pass %d ---\n", i);
         _testembed_Py_Initialize();
         mainstate = PyThreadState_Get();