[pitivi] tests/common: Be more verbose when we have a leak.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] tests/common: Be more verbose when we have a leak.
- Date: Thu, 11 Jun 2009 12:41:04 -0400 (EDT)
commit 991c8887219a89b1aa1f41b519386ecc27924778
Author: Edward Hervey <bilboed bilboed com>
Date: Thu Jun 11 18:38:51 2009 +0200
tests/common: Be more verbose when we have a leak.
tests/common.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/common.py b/tests/common.py
index e4ae89f..97542dd 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -37,6 +37,11 @@ class TestCase(unittest.TestCase):
del objs
gc.collect()
+ for elt in new:
+ print elt
+ for i in gc.get_referrers(elt):
+ print " ", i
+
self.failIf(new, new)
del self._tracked
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]