示例#1
0
 def tearDownClass(cls):
     #Jython-specific block:
     try:
         gc.setJythonGCFlags(cls.savedJythonGCFlags)
         gc.stopMonitoring()
     except Exception:
         pass
示例#2
0
文件: test_gc.py 项目: isaiah/jython3
 def tearDownClass(cls):
     #Jython-specific block:
     try:
         gc.setJythonGCFlags(cls.savedJythonGCFlags)
         gc.stopMonitoring()
     except Exception:
         pass
示例#3
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         #the finalizer-related tests need this flag to pass in Jython:
         gc.stopMonitoring()
         #gc.addJythonGCFlags(gc.VERBOSE_DELAYED)
     except Exception:
         pass
示例#4
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         #the finalizer-related tests need this flag to pass in Jython:
         gc.addJythonGCFlags(gc.DONT_FINALIZE_CYCLIC_GARBAGE)
         gc.stopMonitoring()
     except Exception:
         pass
示例#5
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         #the finalizer-related tests need this flag to pass in Jython:
         gc.addJythonGCFlags(gc.DONT_FINALIZE_CYCLIC_GARBAGE)
         gc.stopMonitoring()
     except Exception:
         pass
示例#6
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         #the finalizer-related tests need this flag to pass in Jython:
         gc.stopMonitoring()
         #gc.addJythonGCFlags(gc.VERBOSE_DELAYED)
     except Exception:
         pass
示例#7
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         #the finalizer-related tests need this flag to pass in Jython:
         gc.addJythonGCFlags(gc.DONT_FINALIZE_RESURRECTED_OBJECTS)
         gc.addJythonGCFlags(gc.FORCE_DELAYED_FINALIZATION)
         gc.stopMonitoring()
     except Exception:
         pass
示例#8
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         #the finalizer-related tests need this flag to pass in Jython:
         gc.addJythonGCFlags(gc.DONT_FINALIZE_RESURRECTED_OBJECTS)
         gc.addJythonGCFlags(gc.FORCE_DELAYED_FINALIZATION)
         gc.stopMonitoring()
     except Exception:
         pass