[TEST] Fix Ray windows build for debugger (#12671)

* Fix Ray windows build for debugger

* update
This commit is contained in:
Philipp Moritz 2020-12-08 18:12:48 -08:00 committed by GitHub
parent e40b14d255
commit 343b479ae2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -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())

View file

@ -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)