Commit 55126860 authored by Harish Fulara's avatar Harish Fulara Committed by Alexandru Băluț

tests: Fix isolation by clearing Zoomable._instances

parent 0420e891
Pipeline #6136 passed with stage
in 15 minutes and 19 seconds
......@@ -181,6 +181,10 @@ class TestCase(unittest.TestCase, Loggable):
del self._tracked
def setUp(self):
# TODO: Get rid of Zoomable._instances.
from pitivi.utils.timeline import Zoomable
del Zoomable._instances[:]
self._num_failures = len(getattr(self._result, 'failures', []))
self._num_errors = len(getattr(self._result, 'errors', []))
if detect_leaks:
......@@ -293,4 +297,4 @@ def create_test_clip(clip_type):
clip = clip_type()
clip.selected = Selected()
clip.ui = None
return clip
\ No newline at end of file
return clip
......@@ -266,9 +266,6 @@ class TestRender(BaseTestMediaLibrary):
def check_simple_rendering_profile(self, profile_name):
"""Checks that rendering with the specified profile works."""
# TODO: Get rid of Zoomable._instances.
from pitivi.utils.timeline import Zoomable
del Zoomable._instances[:]
project = self.create_simple_project()
dialog = self.create_rendering_dialog(project)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment