Axelrod icon indicating copy to clipboard operation
Axelrod copied to clipboard

Update hypothesis dep version for dev env

Open hodgesmr opened this issue 2 months ago • 1 comments

When doing:

pip install .[development]
python -m pytest axelrod/tests/strategies/test_grudger.py

Tests exit with an error:

============================= test session starts ==============================
platform darwin -- Python 3.13.7, pytest-9.0.2, pluggy-1.6.0
rootdir: /Users/hodgesmr/Desktop/Axelrod
configfile: pyproject.toml
plugins: hypothesis-5.19.3
collected 0 items / 1 error

============================================ ERRORS ============================================
__________________ ERROR collecting axelrod/tests/strategies/test_grudger.py ___________________
axelrod/tests/strategies/test_grudger.py:5: in <module>
    from .test_player import TestPlayer
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
ax2/lib/python3.13/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
    exec(co, module.__dict__)
axelrod/tests/strategies/test_player.py:364: in <module>
    class TestPlayer(unittest.TestCase):
axelrod/tests/strategies/test_player.py:428: in TestPlayer
    suppress_health_check=(HealthCheck.differing_executors,),
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   AttributeError: type object 'HealthCheck' has no attribute 'differing_executors'
=================================== short test summary info ====================================
ERROR axelrod/tests/strategies/test_grudger.py - AttributeError: type object 'HealthCheck' has no attribute 'differing_executors'
!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================== 1 error in 34.90s =======================================

After updating hypothesis:

pip install .[development]
python -m pytest axelrod/tests/strategies/test_grudger.py
===================================== test session starts ======================================
platform darwin -- Python 3.13.7, pytest-9.0.2, pluggy-1.6.0
rootdir: /Users/hodgesmr/Desktop/Axelrod
configfile: pyproject.toml
plugins: hypothesis-6.148.7
collected 111 items

axelrod/tests/strategies/test_grudger.py ............................................... [ 42%]
................................................................                         [100%]

===================================== 111 passed in 4.14s ======================================

hodgesmr avatar Dec 10 '25 19:12 hodgesmr

Thanks!

drvinceknight avatar Dec 11 '25 09:12 drvinceknight