Skip to content

Commit fa3feed

Browse files
authored
Merge pull request #4543 from iyassou/fix-typo
fix: typo in error message
2 parents 0e30b0b + b4dcfe6 commit fa3feed

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ their individual contributions.
8484
* `Ilya Lebedev <https://github.com/melevir>`_ ([email protected])
8585
* `Israel Fruchter <https://github.com/fruch>`_
8686
* `Ivan Tham <https://github.com/pickfire>`_
87+
* `Iyassou Shimels <https://github.com/iyassou>`_
8788
* `Jack Massey <https://github.com/massey101>`_
8889
* `Jakub Nabaglo <https://github.com/nbgl>`_ ([email protected])
8990
* `James Lamb <https://github.com/jameslamb>`_

hypothesis-python/RELEASE.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RELEASE_TYPE: patch
2+
3+
Fixed typo in error message around function-scoped fixtures.

hypothesis-python/src/_hypothesis_pytestplugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def raise_hypothesis_usage_error(msg):
266266
if active_fx.scope == "function":
267267
fail_health_check(
268268
settings,
269-
f"{item.nodeid!r} uses a function-scoped fixgure {fx.argname!r}."
269+
f"{item.nodeid!r} uses a function-scoped fixture {fx.argname!r}."
270270
"\n\n"
271271
"Function-scoped fixtures are not reset between inputs "
272272
"generated by `@given(...)`, which is often surprising and "

0 commit comments

Comments
 (0)