Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9db17df

Browse files
Update lib/matplotlib/tests/test_style.py
Co-Authored-By: Elliott Sales de Andrade <[email protected]>
1 parent 643b08c commit 9db17df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_single_path(tmpdir):
7272
mpl.rcParams[PARAM] = 'gray'
7373
temp_file = f'text.{STYLE_EXTENSION}'
7474
path = Path(tmpdir, temp_file)
75-
path.write_text("{} : {}".format(PARAM, VALUE))
75+
path.write_text(f'{PARAM} : {VALUE}')
7676
with style.context(path):
7777
assert mpl.rcParams[PARAM] == VALUE
7878
assert mpl.rcParams[PARAM] == 'gray'

0 commit comments

Comments
 (0)