From 562b0e416a0283a5cc086b78e646d28f3ab66d0d Mon Sep 17 00:00:00 2001 From: Thomas Sibley Date: Mon, 9 Aug 2021 11:08:33 -0700 Subject: [PATCH] Remove a doctest: +IGNORE_EXCEPTION_DETAIL directive It's worthwhile to test exceptions are actually formatted as intended. --- augur/filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/augur/filter.py b/augur/filter.py index 9a853d537..62df3b551 100644 --- a/augur/filter.py +++ b/augur/filter.py @@ -843,10 +843,10 @@ def get_groups_for_subsampling(strains, metadata, group_by=None): If we try to group by columns that don't exist, we get an error. >>> group_by = ["missing_column"] - >>> get_groups_for_subsampling(strains, metadata, group_by) # doctest: +IGNORE_EXCEPTION_DETAIL + >>> get_groups_for_subsampling(strains, metadata, group_by) Traceback (most recent call last): ... - FilterException: The specified group-by categories (["missing_column"]) were not found. + augur.filter.FilterException: The specified group-by categories (['missing_column']) were not found. No sequences-per-group sampling will be done. If we try to group by some columns that exist and some that don't, we allow grouping to continue and print a warning message to stderr.