Merge lp:~cjwatson/launchpad/txfixtures-0.4.2 into lp:launchpad

Proposed by Colin Watson
Status: Merged
Merged at revision: 18604
Proposed branch: lp:~cjwatson/launchpad/txfixtures-0.4.2
Merge into: lp:launchpad
Diff against target: 58 lines (+7/-16)
2 files modified
constraints.txt (+1/-1)
lib/lp/services/daemons/tests/test_tachandler.py (+6/-15)
To merge this branch: bzr merge lp:~cjwatson/launchpad/txfixtures-0.4.2
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+342444@code.launchpad.net

Commit message

Upgrade to txfixtures 0.4.2, fixing occasional test failures on buildbot.

Description of the change

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'constraints.txt'
--- constraints.txt 2018-02-26 14:16:17 +0000
+++ constraints.txt 2018-03-30 10:11:02 +0000
@@ -348,7 +348,7 @@
348timeline==0.0.3348timeline==0.0.3
349Twisted[conch,tls]==16.5.0349Twisted[conch,tls]==16.5.0
350txAMQP==0.6.2350txAMQP==0.6.2
351txfixtures==0.4.1351txfixtures==0.4.2
352txlongpoll==0.2.12352txlongpoll==0.2.12
353txlongpollfixture==0.1.3353txlongpollfixture==0.1.3
354txpkgupload==0.2354txpkgupload==0.2
355355
=== modified file 'lib/lp/services/daemons/tests/test_tachandler.py'
--- lib/lp/services/daemons/tests/test_tachandler.py 2014-04-25 12:31:15 +0000
+++ lib/lp/services/daemons/tests/test_tachandler.py 2018-03-30 10:11:02 +0000
@@ -108,11 +108,8 @@
108 def test_missingTac(self):108 def test_missingTac(self):
109 """TacTestSetup raises TacException if the tacfile doesn't exist"""109 """TacTestSetup raises TacException if the tacfile doesn't exist"""
110 fixture = SimpleTac("missing", "/file/does/not/exist")110 fixture = SimpleTac("missing", "/file/does/not/exist")
111 try:111 self.assertRaises(TacException, fixture.setUp)
112 self.assertRaises(TacException, fixture.setUp)112 self.assertThat(fixture, Not(IsRunning()))
113 self.assertThat(fixture, Not(IsRunning()))
114 finally:
115 fixture.cleanUp()
116113
117 def test_couldNotListenTac(self):114 def test_couldNotListenTac(self):
118 """If the tac fails due to not being able to listen on the needed115 """If the tac fails due to not being able to listen on the needed
@@ -120,11 +117,8 @@
120 """117 """
121 tempdir = self.useFixture(TempDir()).path118 tempdir = self.useFixture(TempDir()).path
122 fixture = SimpleTac("cannotlisten", tempdir)119 fixture = SimpleTac("cannotlisten", tempdir)
123 try:120 self.assertRaises(TacException, fixture.setUp)
124 self.assertRaises(TacException, fixture.setUp)121 self.assertThat(fixture, Not(IsRunning()))
125 self.assertThat(fixture, Not(IsRunning()))
126 finally:
127 fixture.cleanUp()
128122
129 def test_stalePidFile(self):123 def test_stalePidFile(self):
130 """TacTestSetup complains about stale pid files."""124 """TacTestSetup complains about stale pid files."""
@@ -142,11 +136,8 @@
142136
143 # Fire up the fixture, capturing warnings.137 # Fire up the fixture, capturing warnings.
144 with warnings.catch_warnings(record=True) as warnings_log:138 with warnings.catch_warnings(record=True) as warnings_log:
145 try:139 self.assertRaises(TacException, fixture.setUp)
146 self.assertRaises(TacException, fixture.setUp)140 self.assertThat(fixture, Not(IsRunning()))
147 self.assertThat(fixture, Not(IsRunning()))
148 finally:
149 fixture.cleanUp()
150141
151 # One deprecation warning is emitted.142 # One deprecation warning is emitted.
152 self.assertEqual(143 self.assertEqual(