The import is needed, although it is never used (and a code checker will complain about that). But this is to check if `pymyslq` is installed, and otherwise the tests are skipped. This is the reason that the tests for your last update failed, because pymysql is not installed for all test runs.