I don't think get_indexes() returns UNIQUE constraints in any version, it's always been just indexes.  the get_unique_constraints() part would just have to be skipped if the inspector itself doesn't have that attribute (I'd do it that way so that we can decide to backport the method to 0.8).