Unverified Commit 9143003d authored by Weston King-Leatham's avatar Weston King-Leatham Committed by GitHub
Browse files

[python-package] change to f-strings in test_plotting.py (#4359)

parent 063e7317
...@@ -89,7 +89,7 @@ def test_plot_split_value_histogram(params, breast_cancer_split, train_data): ...@@ -89,7 +89,7 @@ def test_plot_split_value_histogram(params, breast_cancer_split, train_data):
title='Histogram for feature @index/name@ @feature@', title='Histogram for feature @index/name@ @feature@',
xlabel='x', ylabel='y', color='r') xlabel='x', ylabel='y', color='r')
assert isinstance(ax1, matplotlib.axes.Axes) assert isinstance(ax1, matplotlib.axes.Axes)
title = 'Histogram for feature name {}'.format(gbm1.booster_.feature_name()[27]) title = f'Histogram for feature name {gbm1.booster_.feature_name()[27]}'
assert ax1.get_title() == title assert ax1.get_title() == title
assert ax1.get_xlabel() == 'x' assert ax1.get_xlabel() == 'x'
assert ax1.get_ylabel() == 'y' assert ax1.get_ylabel() == 'y'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment