From 7a224f85b2e342e3f8ae70af765c05d935b3056f Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Thu, 2 Nov 2023 14:09:37 +0100 Subject: [PATCH] Python: Ignore any captured info with tests in it --- python/ql/src/meta/ClassHierarchy/Find.ql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ql/src/meta/ClassHierarchy/Find.ql b/python/ql/src/meta/ClassHierarchy/Find.ql index 869f3ebf07e..40a63d004be 100644 --- a/python/ql/src/meta/ClassHierarchy/Find.ql +++ b/python/ql/src/meta/ClassHierarchy/Find.ql @@ -513,5 +513,6 @@ where newModel(subclass, newModelFullyQualified, _, mod, _) ) and fullyQualifiedToYamlFormat(newModelFullyQualified, type2, path) and - not Extensions::typeModel(spec, type2, path) + not Extensions::typeModel(spec, type2, path) and + not newModelFullyQualified.regexpMatch("(?i).*tests?_?.*") select spec.(string), type2, path