Wouldn't you want your tests to be run against the same DB family (and version) as production anyway?
Where possible I much prefer to spin up a version of my target database in a tempdir but "faster test cycles" is sometimes worth accepting the trade-offs.