Merge lp:~jamesh/ubuntu-scopes/tomboy-tests into lp:~submarine/ubuntu-scopes/tomboy

Proposed by James Henstridge
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: 17
Merged at revision: 16
Proposed branch: lp:~jamesh/ubuntu-scopes/tomboy-tests
Merge into: lp:~submarine/ubuntu-scopes/tomboy
Diff against target: 16 lines (+6/-0)
1 file modified
tests/test_tomboy.py (+6/-0)
To merge this branch: bzr merge lp:~jamesh/ubuntu-scopes/tomboy-tests
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+153748@code.launchpad.net

Commit message

Shut down the mock tomboy server explicitly in the tearDownClass() method so we don't leave any stale processes hanging around.

Description of the change

Shut down the mock tomboy server explicitly in the tearDownClass() method so we don't leave any stale processes hanging around.

I had assumed that the spawned process would exit automatically, since the docs say it will when the bus it is connected to closes.

To post a comment you must log in.
17. By James Henstridge

Chain up to base class implementation of tearDownClass()

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Looking good, thanks :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/test_tomboy.py'
2--- tests/test_tomboy.py 2013-03-18 07:23:06 +0000
3+++ tests/test_tomboy.py 2013-03-18 11:05:25 +0000
4@@ -65,6 +65,12 @@
5 tomboy.AddMethod(TOMBOY_IFACE, 'GetNoteContents', 's', 's',
6 '''ret = '{} contents'.format(args[0])''')
7
8+ @classmethod
9+ def tearDownClass(cls):
10+ cls.tomboy_proc.terminate()
11+ cls.tomboy_proc.wait()
12+ super(TestTomboy, cls).tearDownClass()
13+
14 def test_valid_search(self):
15 result_set = self.perform_query('foo')
16 self.assertEqual(len(result_set.results), 1)

Subscribers

People subscribed via source and target branches

to all changes: