From c48e87155f1bcf532a9acde28be186397e6d169c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ronald=20Lencevi=C4=8Dius?= Date: Wed, 19 Aug 2020 08:28:52 -0700 Subject: [PATCH] Update Tests/test_image_getdominantcolors.py Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- Tests/test_image_getdominantcolors.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Tests/test_image_getdominantcolors.py b/Tests/test_image_getdominantcolors.py index c6c734bb7..7dafed081 100644 --- a/Tests/test_image_getdominantcolors.py +++ b/Tests/test_image_getdominantcolors.py @@ -2,13 +2,9 @@ from .helper import hopper def test_getdominantcolors(): - def getdominantcolors(mode, numcolors=None): + def getdominantcolors(mode): im = hopper(mode) - - if numcolors: - colors = im.getdominantcolors(numcolors) - else: - colors = im.getdominantcolors() + colors = im.getdominantcolors() return len(colors) assert getdominantcolors("F") == 3