Reduce expectations on thrown exception

Change-Id: Ic1421c7d3164c581d1f69f6c032edd6ca0b9f519
Reviewed-on: https://dart-review.googlesource.com/c/89504
Reviewed-by: Jens Johansen <jensj@google.com>
diff --git a/pkg/front_end/tool/_fasta/resolve_input_uri_test.dart b/pkg/front_end/tool/_fasta/resolve_input_uri_test.dart
index 7ade6d5..0d66637 100644
--- a/pkg/front_end/tool/_fasta/resolve_input_uri_test.dart
+++ b/pkg/front_end/tool/_fasta/resolve_input_uri_test.dart
@@ -22,9 +22,9 @@
     expect(resolveInputUri('c:/foo').scheme, 'file');
     if (Platform.isWindows) {
       /// : is an invalid path character in windows.
-      expect(() => resolveInputUri('test:foo').scheme, throwsArgumentError);
+      expect(() => resolveInputUri('test:foo').scheme, throwsA(anything));
       expect(() => resolveInputUri('org-dartlang-foo:bar').scheme,
-          throwsArgumentError);
+          throwsA(anything));
     } else {
       expect(resolveInputUri('test:foo').scheme, 'file');
       expect(resolveInputUri('org-dartlang-foo:bar').scheme, 'file');