tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

conftest.py (685B)


      1 # SPDX-License-Identifier: MIT
      2 
      3 import pytest
      4 
      5 from hypothesis import HealthCheck, settings
      6 
      7 from attr._compat import PY310
      8 
      9 
     10 @pytest.fixture(name="slots", params=(True, False))
     11 def _slots(request):
     12    return request.param
     13 
     14 
     15 @pytest.fixture(name="frozen", params=(True, False))
     16 def _frozen(request):
     17    return request.param
     18 
     19 
     20 def pytest_configure(config):
     21    # HealthCheck.too_slow causes more trouble than good -- especially in CIs.
     22    settings.register_profile(
     23        "patience", settings(suppress_health_check=[HealthCheck.too_slow])
     24    )
     25    settings.load_profile("patience")
     26 
     27 
     28 collect_ignore = []
     29 if not PY310:
     30    collect_ignore.extend(["tests/test_pattern_matching.py"])