mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 04:07:01 +08:00
Skip failing tests on Windows. (#10139)
This commit is contained in:
@@ -83,6 +83,7 @@ def test_actor_class_methods(ray_start_regular):
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get("RAY_USE_NEW_GCS") == "on",
|
||||
reason="Failing with new GCS API on Linux.")
|
||||
@pytest.mark.skipif(sys.platform == "win32", reason="Failing on Windows.")
|
||||
def test_actor_gpus(ray_start_cluster):
|
||||
cluster = ray_start_cluster
|
||||
num_nodes = 3
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import jsonschema
|
||||
import os
|
||||
import unittest
|
||||
import yaml
|
||||
import urllib
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
import urllib
|
||||
import yaml
|
||||
|
||||
from ray.autoscaler.util import prepare_config, validate_config
|
||||
from ray.test_utils import recursive_fnmatch
|
||||
@@ -51,6 +52,7 @@ class AutoscalingConfigTest(unittest.TestCase):
|
||||
except jsonschema.ValidationError:
|
||||
pass
|
||||
|
||||
@unittest.skipIf(sys.platform == "win32", "Failing on Windows.")
|
||||
def testInvalidConfig(self):
|
||||
self._test_invalid_config(
|
||||
os.path.join("tests", "additional_property.yaml"))
|
||||
|
||||
@@ -59,7 +59,7 @@ def test_uses_resources(ray_start_regular):
|
||||
@pytest.mark.skipif(
|
||||
pytest_timeout is None,
|
||||
reason="Timeout package not installed; skipping test that may hang.")
|
||||
@pytest.mark.timeout(20)
|
||||
@pytest.mark.timeout(120)
|
||||
def test_add_remove_cluster_resources(ray_start_cluster_head):
|
||||
"""Tests that Global State API is consistent with actual cluster."""
|
||||
cluster = ray_start_cluster_head
|
||||
|
||||
@@ -7,6 +7,7 @@ import ray
|
||||
from ray.test_utils import run_string_as_driver_nonblocking
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.platform == "win32", reason="Failing on Windows.")
|
||||
def test_worker_stdout():
|
||||
script = """
|
||||
import ray
|
||||
|
||||
@@ -7,12 +7,14 @@ import pytest
|
||||
TYPING_TEST_DIRS = os.path.join(os.path.dirname(__file__), "typing_files")
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.platform == "win32", reason="Failing on Windows.")
|
||||
def test_typing_good():
|
||||
script = os.path.join(TYPING_TEST_DIRS, "check_typing_good.py")
|
||||
msg, _, status_code = mypy_api.run([script])
|
||||
assert status_code == 0, msg
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.platform == "win32", reason="Failing on Windows.")
|
||||
def test_typing_bad():
|
||||
script = os.path.join(TYPING_TEST_DIRS, "check_typing_bad.py")
|
||||
msg, _, status_code = mypy_api.run([script])
|
||||
|
||||
Reference in New Issue
Block a user