diff --git a/kivy/tests/test_module_inspector.py b/kivy/tests/test_module_inspector.py index e4c1ee7ad6..a1d8ac51f0 100644 --- a/kivy/tests/test_module_inspector.py +++ b/kivy/tests/test_module_inspector.py @@ -60,12 +60,12 @@ def setUp(self): builder.trace = lambda *_, **__: None super(InspectorTestCase, self).setUp() - def tearDown(self): + def tearDown(self, *args, **kwargs): # add the logging back import kivy.lang.builder as builder builder.Builder.unload_file("InspectorTestCase.KV") builder.trace = self._trace - super(InspectorTestCase, self).tearDown() + super(InspectorTestCase, self).tearDown(*args, **kwargs) def clean_garbage(self, *args): for child in self._win.children[:]: diff --git a/kivy/tests/test_mouse_hover_event.py b/kivy/tests/test_mouse_hover_event.py index ad170948d9..a676fa0f87 100644 --- a/kivy/tests/test_mouse_hover_event.py +++ b/kivy/tests/test_mouse_hover_event.py @@ -34,7 +34,7 @@ def setUp(self): self.old_on_close = win.on_close win.on_close = lambda *args: None - def tearDown(self, fake=False): + def tearDown(self, *args, **kwargs): self.etype = None self.motion_event = None self.touch_event = None @@ -58,7 +58,7 @@ def tearDown(self, fake=False): if not (platform == 'win' and 'CI' in os.environ): win.on_close = self.old_on_close self.old_on_close = None - super().tearDown(fake) + super().tearDown(*args, **kwargs) def on_window_flip(self, window): # Not rendering widgets in tests so don't do screenshots diff --git a/kivy/tests/test_uix_actionbar.py b/kivy/tests/test_uix_actionbar.py index 92b5d6fd8a..e8f1f1d1fc 100644 --- a/kivy/tests/test_uix_actionbar.py +++ b/kivy/tests/test_uix_actionbar.py @@ -96,11 +96,11 @@ def setUp(self): builder.trace = lambda *_, **__: None super(ActionBarTestCase, self).setUp() - def tearDown(self): + def tearDown(self, *args, **kwargs): # add the logging back import kivy.lang.builder as builder builder.trace = self._trace - super(ActionBarTestCase, self).tearDown() + super(ActionBarTestCase, self).tearDown(*args, **kwargs) def move_frames(self, t): for i in range(t): diff --git a/kivy/tests/test_uix_slider.py b/kivy/tests/test_uix_slider.py index 5e04c0b2fe..9c88fe9bc6 100644 --- a/kivy/tests/test_uix_slider.py +++ b/kivy/tests/test_uix_slider.py @@ -41,11 +41,11 @@ def setUp(self): builder.trace = lambda *_, **__: None super(SliderMoveTestCase, self).setUp() - def tearDown(self): + def tearDown(self, *args, **kwargs): # add the logging back import kivy.lang.builder as builder builder.trace = self._trace - super(SliderMoveTestCase, self).tearDown() + super(SliderMoveTestCase, self).tearDown(*args, **kwargs) def test_slider_move(self): EventLoop.ensure_window()