mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
gdb 9.2 on Fedora Rawhide is not reliable, see:
* https://bugs.python.org/issue41473
* https://bugzilla.redhat.com/show_bug.cgi?id=1866884
(cherry picked from commit e27a51c11e)
Co-authored-by: Victor Stinner <vstinner@python.org>
			
			
This commit is contained in:
		
							parent
							
								
									b2514c4934
								
							
						
					
					
						commit
						5e12a5b822
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -51,6 +51,11 @@ def get_gdb_version():
 | 
				
			||||||
                            "embedding. Saw %s.%s:\n%s"
 | 
					                            "embedding. Saw %s.%s:\n%s"
 | 
				
			||||||
                            % (gdb_major_version, gdb_minor_version,
 | 
					                            % (gdb_major_version, gdb_minor_version,
 | 
				
			||||||
                               gdb_version))
 | 
					                               gdb_version))
 | 
				
			||||||
 | 
					if (gdb_major_version, gdb_minor_version) >= (9, 2):
 | 
				
			||||||
 | 
					    # gdb 9.2 on Fedora Rawhide is not reliable, see:
 | 
				
			||||||
 | 
					    # * https://bugs.python.org/issue41473
 | 
				
			||||||
 | 
					    # * https://bugzilla.redhat.com/show_bug.cgi?id=1866884
 | 
				
			||||||
 | 
					    raise unittest.SkipTest("https://bugzilla.redhat.com/show_bug.cgi?id=1866884")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if not sysconfig.is_python_build():
 | 
					if not sysconfig.is_python_build():
 | 
				
			||||||
    raise unittest.SkipTest("test_gdb only works on source builds at the moment.")
 | 
					    raise unittest.SkipTest("test_gdb only works on source builds at the moment.")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue