TST: skip sql tests if connection to server fails
Merge pull request #6651 from jorisvandenbossche/sql-skiptests

TST: skip sql tests if connection to server fails