/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-15 21:16:20 UTC
  • mto: This revision was merged to the branch mainline in revision 1785.
  • Revision ID: john@arbash-meinel.com-20060615211620-9d2f0dc44a297f1a
opening a dir instead of a file raises an IOError, not OSError

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
            fstr = 'rb'
144
144
        try:
145
145
            f = os.fdopen(fd, fstr)
146
 
        except OSError, e:
 
146
        except (IOError, OSError), e:
147
147
            return SFTPServer.convert_errno(e.errno)
148
148
        fobj = StubSFTPHandle()
149
149
        fobj.filename = path