Fix py3k warnings in 1/0 in tests. (#4072)

3 files changed