File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ class SetupCfg(IniSource):
1818    def  __init__ (self , path : Path ) ->  None :
1919        super ().__init__ (path )
2020        if  not  self ._parser .has_section (self .CORE_SECTION .key ):
21-             raise  ValueError (f"section { self .CORE_SECTION .key }   not found" )
21+             msg  =  f"section { self .CORE_SECTION .key }   not found" 
22+             raise  ValueError (msg )
2223
2324
2425__all__  =  ("SetupCfg" ,)
Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ def test_legacy_list_env_with_no_tox_file(tox_project: ToxProjectCreator) -> Non
6565    project  =  tox_project ({})
6666    outcome  =  project .run ("le" , "-l" )
6767    outcome .assert_success ()
68-     out  =  (
69-         f"ROOT: No loadable tox.ini or setup.cfg or pyproject.toml or tox.toml found, assuming empty tox.ini at { project .path } \n " 
70-     )
68+     out  =  f"ROOT: No loadable tox.ini or setup.cfg or pyproject.toml or tox.toml found, assuming empty tox.ini at { project .path } \n " 
7169    assert  not  outcome .err 
7270    assert  outcome .out  ==  out 
7371
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments