⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Update hypothesis dep version for dev env#1481

Merged
marcharper merged 1 commit intoAxelrod-Python:devfrom
hodgesmr:ax-tests
Dec 15, 2025
Merged

Update hypothesis dep version for dev env#1481
marcharper merged 1 commit intoAxelrod-Python:devfrom
hodgesmr:ax-tests

Conversation

@hodgesmr
Copy link
Contributor

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 ======================================

@drvinceknight
Copy link
Member

Thanks!

@marcharper marcharper merged commit 17de7d6 into Axelrod-Python:dev Dec 15, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants