You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			354 B
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			17 lines
		
	
	
		
			354 B
		
	
	
	
		
			Python
		
	
import sys
 | 
						|
 | 
						|
 | 
						|
 | 
						|
def is_pytest_compatible() -> bool:
 | 
						|
    """ returns true if executing can be used for expressions inside assert statements which are rewritten by pytest
 | 
						|
    """
 | 
						|
    if sys.version_info < (3, 11):
 | 
						|
        return False
 | 
						|
 | 
						|
    try:
 | 
						|
        import pytest
 | 
						|
    except ImportError:
 | 
						|
        return False
 | 
						|
 | 
						|
    return pytest.version_tuple >= (8, 3, 4)
 |