From 2a5447691af2acf905e6d56a3ebdb670b0e8e7b3 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 30 May 2017 19:55:35 +1000 Subject: [PATCH] Replaced deprecated assert_ --- Tests/test_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/test_image.py b/Tests/test_image.py index 27f5ad885..156396451 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -390,7 +390,7 @@ class TestRegistry(PillowTestCase): def test_encode_registry(self): Image.register_encoder('MOCK', mock_encode) - self.assert_('MOCK' in Image.ENCODERS) + self.assertIn('MOCK', Image.ENCODERS) enc = Image._getencoder('RGB', 'MOCK', ('args',), extra=('extra',))