From ec81eca6b0205043ea7df1ecfb8bf726ea094516 Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Tue, 8 Dec 2020 18:12:48 -0800 Subject: [PATCH] [TEST] Fix Ray windows build for debugger (#12671) * Fix Ray windows build for debugger * update --- python/ray/_raylet.pyx | 2 +- python/ray/tests/test_ray_debugger.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python/ray/_raylet.pyx b/python/ray/_raylet.pyx index 15e5d3aff..18ecb7c19 100644 --- a/python/ray/_raylet.pyx +++ b/python/ray/_raylet.pyx @@ -1434,7 +1434,7 @@ cdef class CoreWorker: metadata = serialized_object.metadata if ray.worker.global_worker.debugger_get_breakpoint: breakpoint = ( - ray.worker.global_worker.debugger_get_breakpoint()) + ray.worker.global_worker.debugger_get_breakpoint) metadata += ( b"," + ray_constants.OBJECT_METADATA_DEBUG_PREFIX + breakpoint.encode()) diff --git a/python/ray/tests/test_ray_debugger.py b/python/ray/tests/test_ray_debugger.py index df9954995..8007f8a7a 100644 --- a/python/ray/tests/test_ray_debugger.py +++ b/python/ray/tests/test_ray_debugger.py @@ -1,9 +1,11 @@ import json import os +import platform import sys from telnetlib import Telnet import pexpect +import pytest import ray @@ -35,6 +37,8 @@ def test_ray_debugger_breakpoint(shutdown_only): ray.get(result) +@pytest.mark.skipif( + platform.system() == "Windows", reason="Failing on Windows.") def test_ray_debugger_stepping(shutdown_only): ray.init(num_cpus=1) @@ -64,6 +68,8 @@ def test_ray_debugger_stepping(shutdown_only): ray.get(result) +@pytest.mark.skipif( + platform.system() == "Windows", reason="Failing on Windows.") def test_ray_debugger_recursive(shutdown_only): ray.init(num_cpus=1)