Skip to content

Commit 161bbe1

Browse files
blueyedtimb07
authored andcommitted
Make InvalidVarException._get_origin a staticmethod (#482)
1 parent c4aae0d commit 161bbe1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_django/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ def __contains__(self, key):
529529
"""There is a test for '%s' in TEMPLATE_STRING_IF_INVALID."""
530530
return key == '%s'
531531

532-
def _get_origin(self):
532+
@staticmethod
533+
def _get_origin():
533534
stack = inspect.stack()
534535

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

0 commit comments

Comments
 (0)