File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 99from  _pytest .doctest  import  DoctestItem 
1010from  _pytest .main  import  Session 
1111from  _pytest .nodes  import  File , Item 
12- from  _pytest .python  import  Class , Function , Instance , Module 
1312from  _pytest .unittest  import  TestCaseFunction , UnitTestCase 
1413from  _pytest .warning_types  import  PytestWarning 
14+ from  pytest  import  Class , Function , Module 
15+ 
16+ try :
17+     from  pytest  import  Instance 
18+ except  ImportError :
19+     # in pytest >= 7.0 this type was removed 
20+     Instance  =  type ('dummy' , (), {})
1521from  reportportal_client  import  ReportPortalService 
1622from  reportportal_client .external .google_analytics  import  send_event 
1723from  reportportal_client .helpers  import  (
1824    gen_attributes ,
1925    get_launch_sys_attrs ,
2026    get_package_version 
2127)
28+ 
2229from  reportportal_client .service  import  _dict_to_payload 
2330from  six  import  with_metaclass 
2431
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments