pimutils / pimutils/vdirsyncer

Cannot assign hypothesis.settings.suppress_health_check

Open
#789 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.