Rev 6578: Simpler. in file:///home/vila/src/bzr/bugs/1184021/

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri May 24 23:50:40 UTC 2013


At file:///home/vila/src/bzr/bugs/1184021/

------------------------------------------------------------
revno: 6578
revision-id: v.ladeuil+lp at free.fr-20130524235040-2wcup9uokmbn346p
parent: v.ladeuil+lp at free.fr-20130524234555-3z0fvi457ndite4j
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 1184021
timestamp: Sat 2013-05-25 01:50:40 +0200
message:
  Simpler.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_http_response.py'
--- a/bzrlib/tests/test_http_response.py	2013-05-24 23:45:55 +0000
+++ b/bzrlib/tests/test_http_response.py	2013-05-24 23:50:40 +0000
@@ -78,13 +78,12 @@
 class TestResponseFileIter(tests.TestCase):
 
     def test_iter_empty(self):
-        self._file = response.ResponseFile('empty', StringIO())
-        self.assertEqual([], list(self._file))
+        f = response.ResponseFile('empty', StringIO())
+        self.assertEqual([], list(f))
 
     def test_iter_many(self):
-        self._file = response.ResponseFile(
-            'many', StringIO('0\n1\nboo!\n'))
-        self.assertEqual(['0\n', '1\n', 'boo!\n'], list(self._file))
+        f = response.ResponseFile('many', StringIO('0\n1\nboo!\n'))
+        self.assertEqual(['0\n', '1\n', 'boo!\n'], list(f))
 
 
 class TestHTTPConnection(tests.TestCase):



More information about the bazaar-commits mailing list