Rev 3074: Fix bogus test. in file:///v/home/vila/src/bzr/bugs/173010/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Sat Dec 8 14:50:59 GMT 2007
At file:///v/home/vila/src/bzr/bugs/173010/
------------------------------------------------------------
revno: 3074
revision-id:v.ladeuil+lp at free.fr-20071208145052-nq3evn50kvqkvp1t
parent: v.ladeuil+lp at free.fr-20071208143101-8tfliktokavo2ytd
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 173010
timestamp: Sat 2007-12-08 15:50:52 +0100
message:
Fix bogus test.
* bzrlib/tests/test_http.py:
(TestRanges._file_tail): Fix the test that was hiding the bug in
RangeFile.seek.
modified:
bzrlib/tests/test_http.py testhttp.py-20051018020158-b2eef6e867c514d9
-------------- next part --------------
=== modified file 'bzrlib/tests/test_http.py'
--- a/bzrlib/tests/test_http.py 2007-12-03 09:03:16 +0000
+++ b/bzrlib/tests/test_http.py 2007-12-08 14:50:52 +0000
@@ -987,7 +987,7 @@
def _file_tail(self, relpath, tail_amount):
code, data = self.transport._get(relpath, [], tail_amount)
self.assertTrue(code in (200, 206),'_get returns: %d' % code)
- data.seek(-tail_amount + 1, 2)
+ data.seek(-tail_amount, 2)
return data.read(tail_amount)
def test_range_header(self):
More information about the bazaar-commits
mailing list