From 9c5b72147ed97ecdbe3aa79cf0d3010a56c5b710 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 23 May 2019 16:51:28 -0500 Subject: [PATCH] Validate types before asserting lengths (#56882) --- test/sanity/validate-modules/schema.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sanity/validate-modules/schema.py b/test/sanity/validate-modules/schema.py index e00c7f6843c..858e1d7e4d3 100644 --- a/test/sanity/validate-modules/schema.py +++ b/test/sanity/validate-modules/schema.py @@ -25,13 +25,13 @@ def sequence_of_sequences(min=None, max=None): return All( Any( None, - [Length(min=min, max=max)], - tuple([Length(min=min, max=max)]), + [Any(list, tuple)], + tuple([Any(list, tuple)]), ), Any( None, - [Any(list, tuple)], - tuple([Any(list, tuple)]), + [Length(min=min, max=max)], + tuple([Length(min=min, max=max)]), ), )