diff --git a/kivy/tests/test_widget.py b/kivy/tests/test_widget.py index af978eada..73108188d 100644 --- a/kivy/tests/test_widget.py +++ b/kivy/tests/test_widget.py @@ -82,9 +82,9 @@ class WidgetTestCase(unittest.TestCase): wid.export_to_png(join(tmp, 'b.png'), scale=.5) wid.export_to_png(join(tmp, 'c.png'), scale=2) - CoreImage(join(tmp, 'a.png')).size == (200, 100) - CoreImage(join(tmp, 'b.png')).size == (100, 50) - CoreImage(join(tmp, 'c.png')).size == (400, 200) + self.assertEqual(CoreImage(join(tmp, 'a.png')).size, (200, 100)) + self.assertEqual(CoreImage(join(tmp, 'b.png')).size, (100, 50)) + self.assertEqual(CoreImage(join(tmp, 'c.png')).size, (400, 200)) rmtree(tmp) self.root.remove_widget(wid) diff --git a/kivy/uix/widget.py b/kivy/uix/widget.py index 88e8b7cc2..1ab251441 100644 --- a/kivy/uix/widget.py +++ b/kivy/uix/widget.py @@ -720,7 +720,7 @@ class Widget(WidgetBase): .. versionadded:: 1.11.0 ''' - self.export_as_image().save(filename, flipped=False) + self.export_as_image(*args, **kwargs).save(filename, flipped=False) def export_as_image(self, *args, **kwargs): '''Return an core :class:`~kivy.core.image.Image` of the actual