diff --git a/trytond/tests/test_res.py b/trytond/tests/test_res.py index 6c6786385e..245ada09f7 100644 --- a/trytond/tests/test_res.py +++ b/trytond/tests/test_res.py @@ -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 @@ class ResTestCase(ModuleTestCase): 'Test res module' module = 'res' + @unittest.skipUnless(PIL, "Avatars are not generated without PIL") @with_transaction() def test_user_avatar(self): pool = Pool()