fix for test failure in StressTest of tests/unit/py2/numpic/encoders/nonuniformscalar_test.py