diff --git a/test/transform_test.py b/test/transform_test.py index f22ce1d6c0..f9f4bb4900 100644 --- a/test/transform_test.py +++ b/test/transform_test.py @@ -1238,6 +1238,14 @@ def change(): filter_type = pygame.transform.get_smoothscale_backend() self.assertEqual(filter_type, original_type) + try: + with self.assertWarns(DeprecationWarning): + pygame.transform.set_smoothscale_backend("MMX") + with self.assertWarns(DeprecationWarning): + pygame.transform.set_smoothscale_backend("SSE") + except ValueError: + pass # Backends not supported on this CPU, also valid + def test_chop(self): original_surface = pygame.Surface((20, 20)) pygame.draw.rect(original_surface, (255, 0, 0), (0, 0, 10, 10))