77fac8b
From 593cf090dacc230cd28aee1993d86b2b83b414f9 Mon Sep 17 00:00:00 2001
0a2fc21
From: Kamil Dudka <kdudka@redhat.com>
0a2fc21
Date: Mon, 25 Feb 2013 19:50:18 +0100
77fac8b
Subject: [PATCH 1/4] test_internals.py: add a test for ref-counting of reset()
0a2fc21
0a2fc21
---
0a2fc21
 tests/test_internals.py |    5 +++++
0a2fc21
 1 files changed, 5 insertions(+), 0 deletions(-)
0a2fc21
0a2fc21
diff --git a/tests/test_internals.py b/tests/test_internals.py
0a2fc21
index afcc53d..d026952 100644
0a2fc21
--- a/tests/test_internals.py
0a2fc21
+++ b/tests/test_internals.py
0a2fc21
@@ -245,6 +245,11 @@ if 1 and gc:
0a2fc21
     if opts.verbose >= 1:
0a2fc21
         print "Tracked objects:", len(gc.get_objects())
0a2fc21
 
0a2fc21
+if 1:
0a2fc21
+    # Ensure that the refcounting error in "reset" is fixed:
0a2fc21
+    for i in xrange(100000):
0a2fc21
+        c = Curl()
0a2fc21
+        c.reset()
0a2fc21
 
0a2fc21
 # /***********************************************************************
0a2fc21
 # // done
0a2fc21
-- 
0a2fc21
1.7.1
0a2fc21