Skip to content

Commit

Permalink
Add cross-ref, rename env var
Browse files Browse the repository at this point in the history
  • Loading branch information
jobh committed Jul 15, 2023
1 parent 7269a1f commit 7044b7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
RELEASE_TYPE: patch

If the :envvar:`HYPOTHESIS_NO_PLUGINS` environment variable is set, we'll avoid
:ref:`loading plugins <>` such as `the old Pydantic integration
:ref:`loading plugins <entry-points>` such as `the old Pydantic integration
<https://docs.pydantic.dev/latest/integrations/hypothesis/>`__ or
`HypoFuzz' CLI options <https://hypofuzz.com/docs/quickstart.html#running-hypothesis-fuzz>`__.

Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/src/hypothesis/entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_entry_points():


def run():
if not os.environ.get("HYPOTHESIS_NO_ENTRYPOINTS"):
if not os.environ.get("HYPOTHESIS_NO_PLUGINS"):
for entry in get_entry_points(): # pragma: no cover
hook = entry.load()
if callable(hook):
Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/tests/cover/test_lazy_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ def test_hypothesis_does_not_import_test_runners(tmp_path):
fname.write_text(SHOULD_NOT_IMPORT_TEST_RUNNERS, encoding="utf-8")
subprocess.check_call(
[sys.executable, str(fname)],
env={**os.environ, **{"HYPOTHESIS_NO_ENTRYPOINTS": "1"}},
env={**os.environ, **{"HYPOTHESIS_NO_PLUGINS": "1"}},
)

0 comments on commit 7044b7c

Please sign in to comment.