Skip to content

Commit

Permalink
Remove a doctest: +IGNORE_EXCEPTION_DETAIL directive
Browse files Browse the repository at this point in the history
It's worthwhile to test exceptions are actually formatted as intended.
  • Loading branch information
tsibley committed Aug 9, 2021
1 parent 0be8869 commit 562b0e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions augur/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 562b0e4

Please sign in to comment.