jakeret / hope

HOPE: A Python Just-In-Time compiler for astrophysical computations
GNU General Public License v3.0
382 stars 28 forks source link

Update test_control_structures.py #29

Closed xantares closed 9 years ago

xantares commented 9 years ago

should work ?

cosmo-ethz commented 9 years ago

Could you explain what you'd like to achive with this change? I think this unit test was written to test the ability of HOPE to handle a for-loop with a xrange definition.

xantares commented 9 years ago

oh i thought it couldn not run on python3 because of deprecated xrange.

cosmo-ethz commented 9 years ago

It wouldn't work with py3 indeed. But the test is skipped with @pytest.mark.skipif if we're not on python 2