File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11using  ModelingToolkit, OrdinaryDiffEq, StochasticDiffEq, SymbolicIndexingInterface
2+ import  Logging
23using  ModelingToolkit:  t_nounits as t, D_nounits as D, ASSERTION_LOG_VARIABLE
34
45@variables  x (t)
2829        sol =  @test_logs  (:error , r" ohno"  ) match_mode= :any  solve (prob, alg)
2930        @test  ! SciMLBase. successful_retcode (sol)
3031        prob. ps[ASSERTION_LOG_VARIABLE] =  false 
31-         sol =  @test_nowarn   solve (prob, alg)
32+         sol =  @test_logs   min_level = Logging . Error  solve (prob, alg)
3233        @test  ! SciMLBase. successful_retcode (sol)
3334    end 
3435end 
4445        sol =  @test_logs  (:error , r" ohno"  ) match_mode= :any  solve (prob, alg)
4546        @test  ! SciMLBase. successful_retcode (sol)
4647        prob. ps[ASSERTION_LOG_VARIABLE] =  false 
47-         sol =  @test_nowarn   solve (prob, alg)
48+         sol =  @test_logs   min_level = Logging . Error  solve (prob, alg)
4849        @test  ! SciMLBase. successful_retcode (sol)
4950    end 
5051end 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments