From 973fcdf494f8e82b44d20f6e396340e362d1fd94 Mon Sep 17 00:00:00 2001 From: telamonian Date: Tue, 23 Jun 2020 23:35:02 -0400 Subject: [PATCH] temp disable smb test on mac CI; until actions/virtual-environments#1042 - ref: https://github.com/actions/virtual-environments/issues/1042 --- jupyterfs/tests/test_fsmanager.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jupyterfs/tests/test_fsmanager.py b/jupyterfs/tests/test_fsmanager.py index af461a9d..2296bb25 100644 --- a/jupyterfs/tests/test_fsmanager.py +++ b/jupyterfs/tests/test_fsmanager.py @@ -28,7 +28,11 @@ test_name_port_smb_docker_share = 3669 test_direct_tcp_smb_os_share = False -test_host_smb_os_share = socket.gethostbyname_ex(socket.gethostname())[2][-1] +#TODO: remove the try/except once https://github.com/actions/virtual-environments/issues/1042 is resolved +try: + test_host_smb_os_share = socket.gethostbyname_ex(socket.gethostname())[2][-1] +except socket.gaierror: + test_host_smb_os_share = 'this_computer' test_smb_port_smb_os_share = 139 _test_file_model = { @@ -136,8 +140,8 @@ def _createContentsManager(self): return FSManager.open_fs(uri) - -@pytest.mark.darwin +#TODO: reenable darwin once https://github.com/actions/virtual-environments/issues/1042 is resolved +# @pytest.mark.darwin @pytest.mark.linux class Test_FSManager_smb_docker_share(_TestBase): """(mac/linux only. future: windows) runs its own samba server via