Application Stress Tests (#3612)

This commit is contained in:
Richard Liaw
2019-01-16 02:05:16 -08:00
committed by GitHub
parent c28e6d41f5
commit fa99fda2b4
5 changed files with 269 additions and 0 deletions
+3
View File
@@ -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,