CLN: Change long literals to long function
add compat import in pandas/util/testing