tests: fix error message on error_test (for curl >= 7.83)
tests: fix error message on error_test (for curl >= 7.83)

curl 7.83.0 removed exclamation marks from a few error messages, curl commit:
https://github.com/curl/curl/commit/6968fb9d54dc3a1aaa1b16088f038eaf5dd8b2d7

This commit adds support for the new curl release while also supporting the previous ones.
pycurl/pycurl,pycurl/pycurl,pycurl/pycurl