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

------------------------------------------------------------
revno: 6578
revision-id: v.ladeuil...@free.fr-20130524235040-2wcup9uokmbn346p
parent: v.ladeuil...@free.fr-20130524234555-3z0fvi457ndite4j
committer: Vincent Ladeuil <v.ladeuil...@free.fr>
branch nick: 1184021
timestamp: Sat 2013-05-25 01:50:40 +0200
message:
  Simpler.
=== 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):

-- 
bazaar-commits mailing list
bazaar-commits@lists.canonical.com
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits

Reply via email to