Skip to content

Commit

Permalink
A herp and a derp (and an import shuffle)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Sep 18, 2014
1 parent 0999fda commit e279642
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
do test file operations in (so no existing files will be harmed).
"""

from binascii import hexlify
import os
import socket
import sys
import warnings
import threading
import unittest
import warnings
from binascii import hexlify
from tempfile import mkstemp

import paramiko
Expand Down Expand Up @@ -205,7 +206,7 @@ def test_2_sftp_can_be_used_as_context_manager(self):
try:
sftp.open(FOLDER + '/test2', 'w')
self.fail('expected exception')
except EOFError, socket.error:
except (EOFError, socket.error):
pass
finally:
sftp = paramiko.SFTP.from_transport(tc)
Expand Down

0 comments on commit e279642

Please sign in to comment.