コード例 #1
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         gc.setMonitorGlobal(True)
     except Exception:
         pass
コード例 #2
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         gc.addJythonGCFlags(gc.PRESERVE_WEAKREFS_ON_RESURRECTION)
     except Exception:
         pass
コード例 #3
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         gc.setMonitorGlobal(True)
     except Exception:
         pass
コード例 #4
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         gc.addJythonGCFlags(gc.PRESERVE_WEAKREFS_ON_RESURRECTION)
     except Exception:
         pass
コード例 #5
0
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         gc.addJythonGCFlags(gc.SUPPRESS_TRAVERSE_BY_REFLECTION_WARNING)
         gc.setMonitorGlobal(True)
     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_CYCLIC_GARBAGE)
         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_CYCLIC_GARBAGE)
         gc.stopMonitoring()
     except Exception:
         pass
コード例 #9
0
ファイル: test_gc_jy.py プロジェクト: jythontools/jython
 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
コード例 #10
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
コード例 #11
0
ファイル: test_gc_jy.py プロジェクト: jythontools/jython
 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
コード例 #12
0
ファイル: test_gc.py プロジェクト: ShinyArceus1/ROS-Code
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         gc.setMonitorGlobal(True)
         #since gc module already exists, it would not be caught by monitorGlobal.
         #so we have to monitor it manually:
         gc.monitorObject(gc)
         #the finalizer-related tests need this flag to pass in Jython:
         gc.addJythonGCFlags(gc.DONT_FINALIZE_CYCLIC_GARBAGE)
     except Exception:
         pass
コード例 #13
0
ファイル: test_gc.py プロジェクト: isaiah/jython3
 def setUpClass(cls):
     #Jython-specific block:
     try:
         cls.savedJythonGCFlags = gc.getJythonGCFlags()
         gc.setMonitorGlobal(True)
         #since gc module already exists, it would not be caught by monitorGlobal.
         #so we have to monitor it manually:
         gc.monitorObject(gc)
         #the finalizer-related tests need this flag to pass in Jython:
         gc.addJythonGCFlags(gc.DONT_FINALIZE_CYCLIC_GARBAGE)
     except Exception:
         pass