[Jython-checkins] jython: Don't try to disable gc on Jython.

frank.wierzbicki jython-checkins at python.org
Fri Mar 23 00:37:16 CET 2012


http://hg.python.org/jython/rev/470044aae3a4
changeset:   6486:470044aae3a4
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Thu Mar 22 16:37:09 2012 -0700
summary:
  Don't try to disable gc on Jython.

files:
  Lib/test/test_trace.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py
--- a/Lib/test/test_trace.py
+++ b/Lib/test/test_trace.py
@@ -268,7 +268,8 @@
     # deallocators may be traced as well.
     def setUp(self):
         self.using_gc = gc.isenabled()
-        gc.disable()
+        if not test_support.is_jython:
+            gc.disable()
 
     def tearDown(self):
         if self.using_gc:

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list