Skip to content

Commit

Permalink
Fixing SSL test
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed May 3, 2016
1 parent bf7ed35 commit b36dd75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amqpstorm/tests/io_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ def test_io_simple_ssl_receive(self):

self.assertTrue(io.use_ssl)

if compatibility.PYTHON3:
if hasattr(ssl, 'SSLObject'):
io.socket = MagicMock(name='socket', spec=ssl.SSLObject)
else:
elif hasattr(ssl, 'SSLSocket'):
io.socket = MagicMock(name='socket', spec=ssl.SSLSocket)

io.socket.read.return_value = '12345'
Expand Down

0 comments on commit b36dd75

Please sign in to comment.