From 24900ec95f1f1c929641b8e16912424d7d86ad73 Mon Sep 17 00:00:00 2001 From: Manuel Gunther <siebenkopf@googlemail.com> Date: Thu, 21 Jan 2016 12:26:10 -0700 Subject: [PATCH] Fixed preprocessor test that modified the configuration object and made bob.bio.vide tests fail. --- bob/bio/face/test/test_preprocessors.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bob/bio/face/test/test_preprocessors.py b/bob/bio/face/test/test_preprocessors.py index 2b78eca4..ae5f2a70 100644 --- a/bob/bio/face/test/test_preprocessors.py +++ b/bob/bio/face/test/test_preprocessors.py @@ -109,6 +109,8 @@ def test_face_crop(): assert cropped.shape[1:] == ref_image.shape assert numpy.allclose(bob.ip.color.rgb_to_gray(cropped), ref_image, atol = 1., rtol = 1.) + # reset the configuration, so that later tests don't get screwed. + cropper.channel = 'gray' def test_face_detect(): -- GitLab