[Pydev-cvs] org.python.pydev.debug/pysrc/tests_python test_debugger.py, 1.8, 1.9 _debugger_case1.py
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-02-16 12:15:59
|
Update of /cvsroot/pydev/org.python.pydev.debug/pysrc/tests_python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1849/pysrc/tests_python Modified Files: test_debugger.py _debugger_case1.py Log Message: Optimized debugger (can also use psyco now). Index: test_debugger.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.debug/pysrc/tests_python/test_debugger.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** test_debugger.py 15 Feb 2008 00:35:24 -0000 1.8 --- test_debugger.py 16 Feb 2008 12:15:59 -0000 1.9 *************** *** 289,293 **** 'python', PYDEVD_FILE, ! '--RECORD_SOCKET_READS', '--client', 'localhost', --- 289,293 ---- 'python', PYDEVD_FILE, ! '--DEBUG_RECORD_SOCKET_READS', '--client', 'localhost', *************** *** 306,310 **** 'org.python.util.jython', PYDEVD_FILE, ! '--RECORD_SOCKET_READS', '--client', 'localhost', --- 306,310 ---- 'org.python.util.jython', PYDEVD_FILE, ! '--DEBUG_RECORD_SOCKET_READS', '--client', 'localhost', Index: _debugger_case1.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.debug/pysrc/tests_python/_debugger_case1.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** _debugger_case1.py 27 May 2007 13:27:08 -0000 1.1 --- _debugger_case1.py 16 Feb 2008 12:15:59 -0000 1.2 *************** *** 24,30 **** if o is not None: print 'still observing', o - import gc print 'number of referrers:', len(gc.get_referrers(o)) frame = gc.get_referrers(o)[0] --- 24,34 ---- + try: + import gc + except ImportError: + o = None #jython does not have gc, so, there's no sense testing this in it + if o is not None: print 'still observing', o print 'number of referrers:', len(gc.get_referrers(o)) frame = gc.get_referrers(o)[0] |