~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: John Arbash Meinel
  • Date: 2007-04-26 18:53:33 UTC
  • mfrom: (2465 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2466.
  • Revision ID: john@arbash-meinel.com-20070426185333-i1xlyaeyf049kdxc
[merge] bzr.dev 2465

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004, 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2004, 2005, 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
1150
1150
        transport = self.get_transport()
1151
1151
        try:
1152
1152
            p = transport.local_abspath('.')
1153
 
        except NotLocalUrl:
1154
 
            pass # This is not a local transport
 
1153
        except (errors.NotLocalUrl, TransportNotPossible), e:
 
1154
            # should be formattable
 
1155
            s = str(e)
1155
1156
        else:
1156
1157
            self.assertEqual(getcwd(), p)
1157
1158