CI: fix test for SSL warning
follow up to #41083 to change test
any idea why str(actual_warning) doesnt work here? > any idea why str(actual_warning) doesnt work here?

No clue.  But I looked at output from one of my CI runs and saw that the message is what contains the string thanks @Dr-Irv 