~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_transport.py

  • Committer: Vincent Ladeuil
  • Date: 2010-08-30 07:42:12 UTC
  • mfrom: (5247.2.39 catch-them-all)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100830074212-y0vj6t3sm1zr706y
Fix most of the leaking tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
 
252
252
    def test_get_bytes_unknown_file(self):
253
253
        t = self.get_transport()
254
 
 
255
254
        self.assertRaises(NoSuchFile, t.get_bytes, 'c')
256
255
 
257
256
    def test_get_with_open_write_stream_sees_all_content(self):
1266
1265
        self.assertIs(t._get_connection(), c._get_connection())
1267
1266
 
1268
1267
        # Temporary failure, we need to create a new dummy connection
1269
 
        new_connection = object()
 
1268
        new_connection = None
1270
1269
        t._set_connection(new_connection)
1271
1270
        # Check that both transports use the same connection
1272
1271
        self.assertIs(new_connection, t._get_connection())