Skip to content

Commit

Permalink
pipe: test open on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Feb 13, 2016
1 parent 932dc66 commit a564919
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

from __future__ import print_function, unicode_literals, division, absolute_import

import socket

import common

import uv
Expand Down Expand Up @@ -75,5 +77,9 @@ def test_closed(self):
self.assert_raises(uv.error.ClosedHandleError, self.pipe.bind, '')
self.assert_raises(uv.error.ClosedHandleError, self.pipe.connect, '')



@common.skip_platform('win32')
def test_pipe_open(self):
unix_socket = socket.socket(family=socket.AF_UNIX)
self.pipe = uv.Pipe()
self.pipe.open(unix_socket.fileno())
self.assert_equal(self.pipe.fileno(), unix_socket.fileno())

0 comments on commit a564919

Please sign in to comment.