Ticket #1235: skip-on-unbuilt-egg-noise.darcs.patch

File skip-on-unbuilt-egg-noise.darcs.patch, 6.4 KB (added by davidsarah, at 2010-10-29T06:18:01Z)

test_runner.py: if the only noise is 'UserWarning?: Unbuilt egg for setuptools', skip instead of failing the no_noise tests. refs #1235

Line 
11 patch for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk:
2
3Fri Oct 29 06:52:53 GMT Daylight Time 2010  david-sarah@jacaranda.org
4  * test_runner.py: if the only noise is 'UserWarning: Unbuilt egg for setuptools', skip instead of failing the no_noise tests. refs #1235
5
6New patches:
7
8[test_runner.py: if the only noise is 'UserWarning: Unbuilt egg for setuptools', skip instead of failing the no_noise tests. refs #1235
9david-sarah@jacaranda.org**20101029055253
10 Ignore-this: 4f40529e80604f47318228f9762c0a27
11] {
12hunk ./src/allmydata/test/test_runner.py 160
13             self.failUnlessEqual(rc_or_sig, 0, str(res))
14             self.failUnless(out.startswith(allmydata.__appname__+':'), str(res))
15             self.failIfIn("DeprecationWarning", out, str(res))
16-            self.failUnlessEqual(err, "", str(res))
17+            errlines = err.split("\n")
18+            self.failIf(any([line != "" and ("UserWarning: Unbuilt egg for setuptools" not in line) for line in errlines]), str(res))
19+            if err != "":
20+                raise unittest.SkipTest("This test is known not to pass on Ubuntu Lucid; see #1235.")
21         d.addCallback(_cb)
22         return d
23 
24hunk ./src/allmydata/test/test_runner.py 445
25             open(HOTLINE_FILE, "w").write("")
26             self.failUnlessEqual(rc_or_sig, 0, errstr)
27             self.failUnlessEqual(out, "", errstr) # If you emit noise, you fail this test.
28-            self.failUnlessEqual(err, "", errstr)
29+            errlines = err.split("\n")
30+            self.failIf(any([line != "" and ("UserWarning: Unbuilt egg for setuptools" not in line) for line in errlines]), errstr)
31+            if err != "":
32+                raise unittest.SkipTest("This test is known not to pass on Ubuntu Lucid; see #1235.")
33 
34             # the parent (twistd) has exited. However, twistd writes the pid
35             # from the child, not the parent, so we can't expect twistd.pid
36}
37
38Context:
39
40[startstop_node.py: pyflakes import fix. refs #1190
41david-sarah@jacaranda.org**20101028014805
42 Ignore-this: 369ef5022c8ee5a0d8341af01553bcef
43]
44['tahoe start': use import+call rather than find+spawn
45"Brian Warner <warner@lothar.com>"**20101027061342
46 
47 This removes the need to use a locally-built (dependency) bin/twistd, and
48 removes a big chunk of behavior differences between unix and windows. It
49 also happens to resolve the "client node probably started" uncertainty.
50 Might help with #1190, #602, and #71.
51]
52[docs/known_issues.rst: Add section on traffic analysis. Fix URL for current version of file.
53david-sarah@jacaranda.org**20101024234259
54 Ignore-this: f3416e79d3bb833f5118da23e85723ad
55]
56[test_mutable.py: add test for ResponseCache memory leak. refs #1045, #1129
57david-sarah@jacaranda.org**20101024193409
58 Ignore-this: 3aee7f0677956cc6deaccb4d5b8e415f
59]
60[docs/running.html: fix missing end-quote, and change frontends/ doc references to .rst.
61david-sarah@jacaranda.org**20101024171500
62 Ignore-this: 47c645a6595e1790b1d1adfa71af0e1d
63]
64[docs/running.html: 'tahoe create-client' now creates a node with storage disabled. Also change configuration.txt references to configuration.rst.
65david-sarah@jacaranda.org**20101024170431
66 Ignore-this: e5b048055494ba3505bb8a506610681c
67]
68[test_encodingutil.py: test_argv_to_unicode modified the wrong encoding variable. fixes #1214
69david-sarah@jacaranda.org**20101023035810
70 Ignore-this: e5f1f849931b96939facc53d93ff61c5
71]
72[doc: add explanation of the motivation for the surprising and awkward API to erasure coding
73zooko@zooko.com**20101015060202
74 Ignore-this: 428913ff6e1bf5b393deffb1f20b949b
75]
76[setup: catch and log ValueError from locale.getdefaultlocale() in show-tool-versions.py
77zooko@zooko.com**20101015054440
78 Ignore-this: 827d91490562c32ed7cf6526dfded773
79 I got a bug report from Mathias Baert showing that locale.getdefaultlocale() raises an exception on his Mac OS X system. Heh.
80]
81[docs: update how-to-make-a-release doc with a few tweaks from the 1.8.0 process
82zooko@zooko.com**20101015054413
83 Ignore-this: ca5e9478531a3393792ae283239549dd
84]
85[docs: update NEWS ref: #1216
86zooko@zooko.com**20101015053719
87 Ignore-this: 2e0b92e4145d667cdf075e64b7965530
88]
89[docs: fix tab-vs-spaces, make some CLI examples <tt>/"literal", wrap some to
90Brian Warner <warner@lothar.com>**20101015060606
91 Ignore-this: eae08bdf0afb19a2fbf41c31e70a8122
92 80-cols, remove spurious whitespace. Add rst2html.py rule to Makefile.
93]
94[docs: add Peter Secor, Shawn Willden, and Terrell Russell as signatories to docs/backdoors.rst
95zooko@zooko.com**20101015053242
96 Ignore-this: c77adf819d664f673e17c4aaeb353f33
97]
98[docs: convert all .txt docs to .rst thanks to Ravi Pinjala
99zooko@zooko.com**20101015052913
100 Ignore-this: 178a5122423189ecfc45b142314a78ec
101 fixes #1225
102]
103[docs: add statement on our refusal to insert backdoors
104zooko@zooko.com**20101006051147
105 Ignore-this: 644d308319a7b80c4434bdff9760404a
106]
107[setup: add --multi-version to the "setup.py develop" command-line
108zooko@zooko.com**20101005182350
109 Ignore-this: 709155cc21caff29826b8d41a8c8d63d
110 fixes #530. I earlier tried this twice (see #530 for history) and then twice rolled it back due to some problems that arose. However, I didn't write down what the problems were in enough detail on the ticket that I can tell today whether those problems are still issues, so here goes the third attempt. (I did write down on the ticket that it would not create site.py or .pth files in the target directory with --multi-version mode, but I didn't explain why *that* was a problem.)
111]
112[setup: use execfile to access _auto_deps.py in its proper location of src/allmydata/ instead of copying it into place when setup.py is executed
113zooko@zooko.com**20100906055714
114 Ignore-this: c179b42672d775580afad40121f86812
115]
116[trivial: M-x whitespace-cleanup
117zooko@zooko.com**20100903144712
118 Ignore-this: 1bb764d11ac69b4a35ea091cfb13158a
119]
120[minor: remove unused interface declaration, change allmydata.org to tahoe-lafs.org in email address, fix wording in relnotes.txt
121zooko@zooko.com**20100930153708
122 Ignore-this: a452969228afed2774de375e29fa3048
123]
124[immutable/repairer.py: don't use the default happiness setting when repairing
125Kevan Carstensen <kevan@isnotajoke.com>**20100927200102
126 Ignore-this: bd704d9744b970849da8d46a16b8089a
127]
128[NEWS: note dependency updates to pycryptopp and pycrypto.
129david-sarah@jacaranda.org**20100924191207
130 Ignore-this: eeaf5c9c9104f24c450c2ec4482ac1ee
131]
132[TAG allmydata-tahoe-1.8.0
133zooko@zooko.com**20100924021631
134 Ignore-this: 494ca0a885c5e20c883845fc53e7ab5d
135]
136Patch bundle hash:
1372e9f9913161abb9c045e4eb884ab14900eedc27c