Merge pull request #45 from radarhere/to-pytest

Converted setup and teardown methods
This commit is contained in:
Hugo van Kemenade 2020-03-04 13:42:49 +02:00 committed by GitHub
commit 94d0c7c9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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