[SciPy-dev] Testing for powers of two