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):
18
18
def __init__ (self , path : Path ) -> None :
19
19
super ().__init__ (path )
20
20
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 )
22
23
23
24
24
25
__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
65
65
project = tox_project ({})
66
66
outcome = project .run ("le" , "-l" )
67
67
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 "
71
69
assert not outcome .err
72
70
assert outcome .out == out
73
71
You can’t perform that action at this time.
0 commit comments