Ticket #1055: WHAT.dpatch

File WHAT.dpatch, 2.1 KB (added by jacoblyles, at 2010-07-29T21:37:26Z)

Added unit test to show bug in allmydata.web.common.abbreviate_time in python 2.5

Line 
11 patch for repository http://allmydata.org/source/tahoe-lafs/trunk:
2
3Thu Jul 29 14:06:38 PDT 2010  jacob.lyles@gmail.com
4  * abbreviate time edge case python2.5 unit test
5
6New patches:
7
8[abbreviate time edge case python2.5 unit test
9jacob.lyles@gmail.com**20100729210638
10 Ignore-this: 80f9b1dc98ee768372a50be7d0ef66af
11] hunk ./src/allmydata/test/test_web.py 3130
12         self.failUnlessReallyEqual(common.abbreviate_time(0.123), "123ms")
13         self.failUnlessReallyEqual(common.abbreviate_time(0.00123), "1.2ms")
14         self.failUnlessReallyEqual(common.abbreviate_time(0.000123), "123us")
15+        self.failUnlessReallyEqual(common.abbreviate_time(-123000), "-123000000000us")
16 
17     def test_abbreviate_rate(self):
18         self.failUnlessReallyEqual(common.abbreviate_rate(None), "")
19
20Context:
21
22[misc/build_helpers/run-with-pythonpath.py: fix stale comment, and remove 'trial' example that is not the right way to run trial.
23david-sarah@jacaranda.org**20100726225729
24 Ignore-this: a61f55557ad69a1633bfb2b8172cce97
25] 
26[docs/specifications/dirnodes.txt: 'mesh'->'grid'.
27david-sarah@jacaranda.org**20100723061616
28 Ignore-this: 887bcf921ef00afba8e05e9239035bca
29] 
30[docs/specifications/dirnodes.txt: bring layer terminology up-to-date with architecture.txt, and a few other updates (e.g. note that the MAC is no longer verified, and that URIs can be unknown). Also 'Tahoe'->'Tahoe-LAFS'.
31david-sarah@jacaranda.org**20100723054703
32 Ignore-this: f3b98183e7d0a0f391225b8b93ac6c37
33] 
34[docs: use current cap to Zooko's wiki page in example text
35zooko@zooko.com**20100721010543
36 Ignore-this: 4f36f36758f9fdbaf9eb73eac23b6652
37 fixes #1134
38] 
39[__init__.py: silence DeprecationWarning about BaseException.message globally. fixes #1129
40david-sarah@jacaranda.org**20100720011939
41 Ignore-this: 38808986ba79cb2786b010504a22f89
42] 
43[test_runner: test that 'tahoe --version' outputs no noise (e.g. DeprecationWarnings).
44david-sarah@jacaranda.org**20100720011345
45 Ignore-this: dd358b7b2e5d57282cbe133e8069702e
46] 
47[TAG allmydata-tahoe-1.7.1
48zooko@zooko.com**20100719131352
49 Ignore-this: 6942056548433dc653a746703819ad8c
50] 
51Patch bundle hash:
52293e9e9016665e7213e1909ec04012a4e4ef0554