diff --git a/factory/base.py b/factory/base.py index a5e58427..36b2359a 100644 --- a/factory/base.py +++ b/factory/base.py @@ -720,6 +720,7 @@ def use_strategy(new_strategy): warnings.warn( "use_strategy() is deprecated and will be removed in the future.", DeprecationWarning, + stacklevel=2, ) def wrapped_class(klass):