mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 02:15:10 +00:00 
			
		
		
		
	 8f324b7ecd
			
		
	
	
		8f324b7ecd
		
			
		
	
	
	
	
		
			
			Split test_gdb.py file into a test_gdb package made of multiple tests, so tests can now be run in parallel. * Create Lib/test/test_gdb/ directory. * Split test_gdb.py into multiple files in Lib/test/test_gdb/ directory. * Move Lib/test/gdb_sample.py to Lib/test/test_gdb/ directory. Update get_sample_script(): use __file__ to locate gdb_sample.py. * Move gdb_has_frame_select() and HAS_PYUP_PYDOWN to test_misc.py. * Explicitly skip test_gdb on Windows. Previously, test_gdb was skipped even if gdb was available because of gdb_has_frame_select().
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			156 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			156 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Sample script for use by test_gdb
 | |
| 
 | |
| def foo(a, b, c):
 | |
|     bar(a=a, b=b, c=c)
 | |
| 
 | |
| def bar(a, b, c):
 | |
|     baz(a, b, c)
 | |
| 
 | |
| def baz(*args):
 | |
|     id(42)
 | |
| 
 | |
| foo(1, 2, 3)
 |