diff options
Diffstat (limited to 'tests/twisted/tubes/tubetestutil.py')
-rw-r--r-- | tests/twisted/tubes/tubetestutil.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/twisted/tubes/tubetestutil.py b/tests/twisted/tubes/tubetestutil.py index 123bf298d..9a325be24 100644 --- a/tests/twisted/tubes/tubetestutil.py +++ b/tests/twisted/tubes/tubetestutil.py @@ -5,6 +5,7 @@ Helper functions for writing tubes tests import errno import os import socket +import sys import dbus @@ -360,8 +361,10 @@ def exec_tube_test(test, *args): def exec_stream_tube_test(test): exec_tube_test(test, cs.SOCKET_ADDRESS_TYPE_UNIX, cs.SOCKET_ACCESS_CONTROL_LOCALHOST, "") exec_tube_test(test, cs.SOCKET_ADDRESS_TYPE_IPV4, cs.SOCKET_ACCESS_CONTROL_LOCALHOST, "") - exec_tube_test(test, cs.SOCKET_ADDRESS_TYPE_UNIX, cs.SOCKET_ACCESS_CONTROL_CREDENTIALS, dbus.Byte(77)) exec_tube_test(test, cs.SOCKET_ADDRESS_TYPE_IPV4, cs.SOCKET_ACCESS_CONTROL_PORT, ('127.0.0.1', dbus.UInt16(8631))) + # we only guarantee to support credentials-passing on Linux + if sys.platform == 'linux2': + exec_tube_test(test, cs.SOCKET_ADDRESS_TYPE_UNIX, cs.SOCKET_ACCESS_CONTROL_CREDENTIALS, dbus.Byte(77)) def exec_dbus_tube_test(test): exec_tube_test(test, cs.SOCKET_ACCESS_CONTROL_CREDENTIALS) |