net/url: fail TestParseErrors test when getting an unwanted error
net/url: fail TestParseErrors test when getting an unwanted error

The TestParseErrors test function was not strict with unwanted errors
received from url.Parse(). It was not failing in such cases, now it does

Fixes #33646
Updates #29098

Change-Id: I069521093e2bff8b1fcd41ffd3f9799f3108bc61
GitHub-Last-Rev: e6844c57f979ddb8418643d9c5244a5d1b4578ba
GitHub-Pull-Request: golang/go#33876
Reviewed-on: https://go-review.googlesource.com/c/go/+/191966
Run-TryBot: Filippo Valsorda <4f40cda291c5f9634e1affd3db44947af61f705c@golang.org>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Filippo Valsorda <4f40cda291c5f9634e1affd3db44947af61f705c@golang.org>

golang/go,nawawi/go,akutz/go,golang/go,nawawi/go,nawawi/go,CAFxX/go,cloudflare/go,CAFxX/go,golang/go,akutz/go,nawawi/go,nawawi/go,cloudflare/go,CAFxX/go,CAFxX/go,golang/go,golang/go,cloudflare/go,CAFxX/go,nawawi/go,akutz/go,CAFxX/go,golang/go,cloudflare/go,golang/go,akutz/go,akutz/go,nawawi/go,nawawi/go,golang/go,cloudflare/go,cloudflare/go,akutz/go,akutz/go,akutz/go,CAFxX/go,cloudflare/go,CAFxX/go,cloudflare/go