Remove unused code in resolver test
This commit is contained in:
parent
7dacd51c1d
commit
32e23ff58b
|
@ -26,20 +26,14 @@ class TestResolver(unittest.TestCase):
|
||||||
network connection.
|
network connection.
|
||||||
'''
|
'''
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.idlequeue_thread = IdleQueueThread()
|
|
||||||
self.idlequeue_thread.start()
|
|
||||||
self.main_context = GLib.MainContext()
|
self.main_context = GLib.MainContext()
|
||||||
self.main_context.push_thread_default()
|
self.main_context.push_thread_default()
|
||||||
self.main_loop = GLib.MainLoop(self.main_context)
|
self.main_loop = GLib.MainLoop(self.main_context)
|
||||||
|
|
||||||
self.iq = self.idlequeue_thread.iq
|
|
||||||
self._reset()
|
self._reset()
|
||||||
self.resolver = None
|
self.resolver = None
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.main_context.pop_thread_default()
|
self.main_context.pop_thread_default()
|
||||||
self.idlequeue_thread.stop_thread()
|
|
||||||
self.idlequeue_thread.join()
|
|
||||||
|
|
||||||
def _reset(self):
|
def _reset(self):
|
||||||
self.expect_results = False
|
self.expect_results = False
|
||||||
|
|
Loading…
Reference in New Issue