Make tests pass for Python 3.4/3.5 and pypy3.
- Use 'sys.maxsize' rather than 'sys.maxint' for Py3k compatibility. - Define it as a module constant, and patch it locally in tests, rather than patching 'sys'. - Call 'c.__hash__()' directly in 'test_hash_equal_constants' to work around odd truncation behavior of 'hash()' builtin in pypy3.
Showing
Please register or sign in to comment