Converted setup and teardown methods

This commit is contained in:
Andrew Murray 2020-03-04 21:31:50 +11:00
parent 2cc6a9a974
commit 76734573f0

View File

@ -27,11 +27,11 @@ class AccessTest:
_need_cffi_access = False
@classmethod
def setUpClass(cls):
def setup_class(cls):
Image.USE_CFFI_ACCESS = cls._need_cffi_access
@classmethod
def tearDownClass(cls):
def teardown_class(cls):
Image.USE_CFFI_ACCESS = cls._init_cffi_access