8000 TST Change rstrip() to truncation in test function (#8237) · scikit-learn/scikit-learn@9f6b849 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f6b849

Browse files
pgansslejnothman
authored andcommitted
TST Change rstrip() to truncation in test function (#8237)
1 parent fdfdbf0 commit 9f6b849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/gaussian_process/tests/test_kernels.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_kernel_theta():
8080
# Determine kernel parameters that contribute to theta
8181
init_sign = signature(kernel.__class__.__init__).parameters.values()
8282
args = [p.name for p in init_sign if p.name != 'self']
83-
theta_vars = map(lambda s: s.rstrip("_bounds"),
83+
theta_vars = map(lambda s: s[0:-len("_bounds")],
8484
filter(lambda s: s.endswith("_bounds"), args))
8585
assert_equal(
8686
set(hyperparameter.name

0 commit comments

Comments
 (0)
0