Skip to content

Commit 467a551

Browse files
committed
fix tests for new hypothesis tox change
1 parent d88c975 commit 467a551

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ ignore = [
127127
"E741",
128128
"FBT003",
129129
"PD011",
130-
"PD901",
131130
"PIE790", # See https://github.com/astral-sh/ruff/issues/10538
132131
"PT001",
133132
"PT003",

tests/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import os
2+
3+
# If this envvar is set, Hypothesis loads the CI profile. We can't combine that
4+
# with hypofuzz, since the CI profile sets derandomize=True, which hypofuzz
5+
# skips during collection.
6+
#
7+
# This has to be changed at the os.environ level, instead of doing
8+
# settings.load_profile("default"), because pytest collection and subprocesses
9+
# inherit the current os.environ and would think themselves as in CI.
10+
os.environ.pop("__TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI", None)

tox.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ xfail_strict = True
4848
addopts =
4949
-Werror
5050
--tb=short
51-
# --cov=hypofuzz
52-
# --cov-branch
53-
# --cov-report=term-missing:skip-covered
54-
# --cov-fail-under=100
5551

5652
[coverage:report]
5753
exclude_lines =

0 commit comments

Comments
 (0)