mirror of
https://github.com/wassname/ray.git
synced 2026-07-27 11:26:41 +08:00
Application Stress Tests (#3612)
This commit is contained in:
@@ -9,6 +9,7 @@ import hashlib
|
||||
import logging
|
||||
import math
|
||||
import os
|
||||
from six import string_types
|
||||
from six.moves import queue
|
||||
import subprocess
|
||||
import threading
|
||||
@@ -633,6 +634,8 @@ def check_extraneous(config, schema):
|
||||
continue
|
||||
elif isinstance(v, type):
|
||||
if not isinstance(config[k], v):
|
||||
if v is str and isinstance(config[k], string_types):
|
||||
continue
|
||||
raise ValueError(
|
||||
"Config key `{}` has wrong type {}, expected {}".format(
|
||||
k,
|
||||
|
||||
Reference in New Issue
Block a user