[Jython-checkins] jython: Skip gc bound test.
frank.wierzbicki
jython-checkins at python.org
Thu May 19 05:10:23 CEST 2011
http://hg.python.org/jython/rev/593addebd500
changeset: 6221:593addebd500
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Wed May 18 09:56:21 2011 -0700
summary:
Skip gc bound test.
files:
Lib/test/test_class.py | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py
--- a/Lib/test/test_class.py
+++ b/Lib/test/test_class.py
@@ -466,16 +466,19 @@
self.assertCallStack([('__delattr__', (testme, "cardinal"))])
def testDel(self):
- x = []
+ #XXX: gc.collect is not deterministic on Jython, but it would be nice
+ # to find a way to test this.
+ if not test_support.is_jython:
+ x = []
- class DelTest:
- def __del__(self):
- x.append("crab people, crab people")
- testme = DelTest()
- del testme
- import gc
- gc.collect()
- self.assertEquals(["crab people, crab people"], x)
+ class DelTest:
+ def __del__(self):
+ x.append("crab people, crab people")
+ testme = DelTest()
+ del testme
+ import gc
+ gc.collect()
+ self.assertEquals(["crab people, crab people"], x)
def testBadTypeReturned(self):
# return values of some method are type-checked
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list