Commit dad1817d authored by Harish Fulara's avatar Harish Fulara

tests: Fix isolation by clearing Zoomable._instances

parent a9058c74
......@@ -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