Merge lp:~maxb/udd/natty-test-fail into lp:udd

Proposed by Max Bowsher
Status: Merged
Approved by: Martin Pool
Approved revision: 454
Merged at revision: 454
Proposed branch: lp:~maxb/udd/natty-test-fail
Merge into: lp:udd
Diff against target: 14 lines (+0/-5)
1 file modified
tests/test_mass_import.py (+0/-5)
To merge this branch: bzr merge lp:~maxb/udd/natty-test-fail
Reviewer Review Type Date Requested Status
Martin Pool Approve
Review via email: mp+64098@code.launchpad.net

Description of the change

Fix test failure on natty by deleting the test concerned.

The behaviour change was caused by the subprocess module changing in Python 2.7. You may validate this by copying Python 2.6's subprocess.py to the udd directory, and observing that the test now passes.

Looking carefully at the asserts which fail, it turns out they were testing an unspecified characteristic of how some subprocess.py versions represented an early failure to read any data from the subprocess.

As they did not seem to have any bearing on the situation actually under test, I simply deleted the problem asserts.

To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/test_mass_import.py'
2--- tests/test_mass_import.py 2011-05-23 12:16:01 +0000
3+++ tests/test_mass_import.py 2011-06-09 23:07:36 +0000
4@@ -117,11 +117,6 @@
5 # report None, whilst Python 2.7 will default the retcode to 0 if a
6 # process exits but its own waitpid fails with ECHILD.
7
8- # Nothing in stdout/stderr. This means that subprocesses should
9- # handled SIGTERM to allow us to collect their data.
10- self.assertIs(None, sub.out)
11- self.assertIs(None, sub.err)
12-
13
14 class TestSubprocessMonitorWithScript(tests.TestCaseInTempDir):
15

Subscribers

People subscribed via source and target branches