changeset 651cf66e25ae in trytond:6.0 details: https://hg.tryton.org/trytond?cmd=changeset&node=651cf66e25ae description: Skip avatar test if PIL is not installed (grafted from 4d216b768a9c802ddd8c285c278dc9c2df50112c) diffstat:
trytond/tests/test_res.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diffs (23 lines): diff -r 31bfe25903c2 -r 651cf66e25ae trytond/tests/test_res.py --- a/trytond/tests/test_res.py Wed May 05 12:03:41 2021 +0200 +++ b/trytond/tests/test_res.py Wed May 05 18:09:08 2021 +0200 @@ -2,6 +2,11 @@ # this repository contains the full copyright notices and license terms. import unittest +try: + import PIL +except ImportError: + PIL = None + from trytond.pool import Pool from .test_tryton import ModuleTestCase, with_transaction @@ -11,6 +16,7 @@ 'Test res module' module = 'res' + @unittest.skipUnless(PIL, "Avatars are not generated without PIL") @with_transaction() def test_user_avatar(self): pool = Pool()