Generalize test to work non-Python 3.3