Skip to content

Commit 76ff957

Browse files
committed
MNT avoid comparing to string with is
1 parent 85dc3a7 commit 76ff957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/cluster/tests/test_k_means.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_kmeans_results(representation, algo, dtype):
7777
def test_elkan_results(distribution):
7878
# check that results are identical between lloyd and elkan algorithms
7979
rnd = np.random.RandomState(0)
80-
if distribution is 'normal':
80+
if distribution == 'normal':
8181
X = rnd.normal(size=(50, 10))
8282
else:
8383
X, _ = make_blobs(random_state=rnd)

0 commit comments

Comments
 (0)