Skip to content

Commit f0bf77e

Browse files
authored
Make InvalidVarException._get_origin a staticmethod (pytest-dev#482)
1 parent af04673 commit f0bf77e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_django/plugin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ def __contains__(self, key):
483483
"""There is a test for '%s' in TEMPLATE_STRING_IF_INVALID."""
484484
return key == '%s'
485485

486-
def _get_origin(self):
486+
@staticmethod
487+
def _get_origin():
487488
stack = inspect.stack()
488489

489490
# Try to use topmost `self.origin` first (Django 1.9+, and with

0 commit comments

Comments
 (0)