pimutils / pimutils/vdirsyncer
Cannot assign hypothesis.settings.suppress_health_check
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 185
- Avg merge
- 11h 49m
- Merged PRs (30d)
- 1
Description
Tests on circle-ci currently fail with the following traceback:
ImportError while loading conftest '.../vdirsyncer/tests/conftest.py'.
tests/conftest.py:30: in
settings.suppress_health_check = [HealthCheck.too_slow]
/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/hypothesis/_settings.py:135: in setattr
"to decorate your test instead." % (name, value)
E AttributeError: Cannot assign hypothesis.settings.suppress_health_check=[HealthCheck.too_slow] - the settings class is immutable. You can change the global default settings with settings.load_profile, or use @settings(...) to decorate your test instead.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/conftest.py at line 30 and inspect how the installed Hypothesis version handles suppress_health_check. Run the affected test setup or CircleCI test command to reproduce the import failure. Done means conftest loads without the AttributeError and the test suite proceeds past collection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100