Rev 5605: Revert the medium check, since it isn't necessary, and vila is worried about confusing people. in http://bazaar.launchpad.net/~jameinel/bzr/2.3-connection-reset-581311

John Arbash Meinel john at arbash-meinel.com
Wed Jan 12 22:21:11 UTC 2011


At http://bazaar.launchpad.net/~jameinel/bzr/2.3-connection-reset-581311

------------------------------------------------------------
revno: 5605
revision-id: john at arbash-meinel.com-20110112222105-spcqof5g3neg1iuq
parent: john at arbash-meinel.com-20110112212839-lfzo8o183tw10gnd
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.3-connection-reset-581311
timestamp: Wed 2011-01-12 16:21:05 -0600
message:
  Revert the medium check, since it isn't necessary, and vila is worried about confusing people.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_http.py'
--- a/bzrlib/tests/test_http.py	2011-01-12 21:27:00 +0000
+++ b/bzrlib/tests/test_http.py	2011-01-12 22:21:05 +0000
@@ -1821,10 +1821,9 @@
         t = self.get_readonly_transport()
         # No need to build a valid smart request here, the server will not even
         # try to interpret it.
-        medium = t.get_smart_medium()
         self.assertRaises(errors.SmartProtocolError,
-                          medium.send_http_smart_request, 'whatever')
-        medium.disconnect()
+                          t.get_smart_medium().send_http_smart_request,
+                          'whatever')
 
 
 class Test_redirected_to(tests.TestCase):



More information about the bazaar-commits mailing list