From be0f279f5563551664cc5b260fe7f4d443d4e95a Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Mon, 30 Dec 2024 13:41:34 +0800 Subject: [PATCH] [tsv-utils/common/getopt_inorder.d] Fix unittest for dlang/phobos#10593 dlang/phobos#10593 changes the thrown exception type from `ConvException` to `GetOptException` to provide more context on failed conversion. --- common/src/tsv_utils/common/getopt_inorder.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/tsv_utils/common/getopt_inorder.d b/common/src/tsv_utils/common/getopt_inorder.d index 26fcf53..5e59472 100644 --- a/common/src/tsv_utils/common/getopt_inorder.d +++ b/common/src/tsv_utils/common/getopt_inorder.d @@ -716,7 +716,7 @@ unittest // Dashes assertThrown!GetOptException(getoptInorder(args, "abc", &abc)); args = ["prog", "--abc=string"]; - assertThrown!ConvException(getoptInorder(args, "abc", &abc)); + assertThrown(getoptInorder(args, "abc", &abc)); } @system unittest // From bugzilla 7693