This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients dmalcolm, loewis, pitrou, vstinner
Date 2010-04-17.21:40:11
SpamBayes Score 1.0467263e-06
Marked as misclassified No
Message-id <1271540414.35.0.96841363618.issue8281@psf.upfronthosting.co.za>
In-reply-to
Content
test_gdb.py refers to test_gdb_sample.py instead of gdb_sample.py. Attached patch fixes that.

But then I get new errors:
---------------
...
Verify the pretty-printing of unicode values ... ok                        
test_basic_command (__main__.PyListTests)                                  
Verify that the "py-list" command works ... FAIL                           
test_one_abs_arg (__main__.PyListTests)                                    
Verify the "py-list" command with one absolute argument ... FAIL           
test_two_abs_args (__main__.PyListTests)                                   
Verify the "py-list" command with two absolute arguments ... FAIL          
test_down_at_bottom (__main__.StackNavigationTests)                        
Verify handling of "py-down" at the bottom of the stack ... FAIL           
test_pyup_command (__main__.StackNavigationTests)                          
Verify that the "py-up" command works ... FAIL                             
test_up_at_top (__main__.StackNavigationTests)                             
Verify handling of "py-up" at the top of the stack ... FAIL                
test_up_then_down (__main__.StackNavigationTests)                          
Verify "py-up" followed by "py-down" ... FAIL                              
test_basic_command (__main__.PyBtTests)                                    
Verify that the "py-bt" command works ... FAIL                             
test_basic_command (__main__.PyPrintTests)                                 
Verify that the "py-print" command works ... FAIL                          
test_print_after_up (__main__.PyPrintTests) ... FAIL                       
test_printing_builtin (__main__.PyPrintTests) ... FAIL                     
test_printing_global (__main__.PyPrintTests) ... FAIL                      
test_basic_command (__main__.PyLocalsTests) ... FAIL                       
test_locals_after_up (__main__.PyLocalsTests) ... FAIL                     

======================================================================
FAIL: test_basic_command (__main__.PyListTests)                       
Verify that the "py-list" command works                               
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 535, in test_basic_command        
    cmds_after_breakpoint=['py-list'])                                
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_one_abs_arg (__main__.PyListTests)                         
Verify the "py-list" command with one absolute argument               
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 552, in test_one_abs_arg          
    cmds_after_breakpoint=['py-list 9'])                              
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_two_abs_args (__main__.PyListTests)                        
Verify the "py-list" command with two absolute arguments              
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 565, in test_two_abs_args         
    cmds_after_breakpoint=['py-list 1,3'])                            
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_down_at_bottom (__main__.StackNavigationTests)             
Verify handling of "py-down" at the bottom of the stack               
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 588, in test_down_at_bottom       
    cmds_after_breakpoint=['py-down'])                                
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_pyup_command (__main__.StackNavigationTests)               
Verify that the "py-up" command works                                 
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 578, in test_pyup_command         
    cmds_after_breakpoint=['py-up'])                                  
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_up_at_top (__main__.StackNavigationTests)                  
Verify handling of "py-up" at the top of the stack                    
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 595, in test_up_at_top            
    cmds_after_breakpoint=['py-up'] * 4)                              
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\nError occurred in Python command: 'gdb.Frame' object has no attribute 'function'\nError occurred in Python command: 'gdb.Frame' object has no attribute 'function'\nError occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''                                                                                

======================================================================
FAIL: test_up_then_down (__main__.StackNavigationTests)               
Verify "py-up" followed by "py-down"                                  
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 602, in test_up_then_down         
    cmds_after_breakpoint=['py-up', 'py-down'])                       
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\nError occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''                                                                                                    

======================================================================
FAIL: test_basic_command (__main__.PyBtTests)                         
Verify that the "py-bt" command works                                 
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 615, in test_basic_command        
    cmds_after_breakpoint=['py-bt'])                                  
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_basic_command (__main__.PyPrintTests)                      
Verify that the "py-print" command works                              
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 630, in test_basic_command        
    cmds_after_breakpoint=['py-print args'])                          
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_print_after_up (__main__.PyPrintTests)                     
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 636, in test_print_after_up       
    cmds_after_breakpoint=['py-up', 'py-print c', 'py-print b', 'py-print a'])
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace                   
    self.assertEquals(err, '')                                                
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\nError occurred in Python command: 'gdb.Frame' object has no attribute 'function'\nError occurred in Python command: 'gdb.Frame' object has no attribute 'function'\nError occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''                                                                                

======================================================================
FAIL: test_printing_builtin (__main__.PyPrintTests)                   
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 648, in test_printing_builtin     
    cmds_after_breakpoint=['py-print len'])                           
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_printing_global (__main__.PyPrintTests)                    
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 642, in test_printing_global      
    cmds_after_breakpoint=['py-print __name__'])                      
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_basic_command (__main__.PyLocalsTests)                     
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 655, in test_basic_command        
    cmds_after_breakpoint=['py-locals'])                              
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''

======================================================================
FAIL: test_locals_after_up (__main__.PyLocalsTests)                   
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "Lib/test/test_gdb.py", line 661, in test_locals_after_up      
    cmds_after_breakpoint=['py-up', 'py-locals'])                     
  File "Lib/test/test_gdb.py", line 111, in get_stack_trace           
    self.assertEquals(err, '')                                        
AssertionError: "Error occurred in Python command: 'gdb.Frame' object has no attribute 'function'\nError occurred in Python command: 'gdb.Frame' object has no attribute 'function'\n" != ''                                                                                                    
---------------

I tried with pydebug and without pydebug.
History
Date User Action Args
2010-04-17 21:40:14vstinnersetrecipients: + vstinner, loewis, pitrou, dmalcolm
2010-04-17 21:40:14vstinnersetmessageid: <1271540414.35.0.96841363618.issue8281@psf.upfronthosting.co.za>
2010-04-17 21:40:13vstinnerlinkissue8281 messages
2010-04-17 21:40:12vstinnercreate