Skip to content

Commit 702d20b

Browse files
blueyeddulacp
authored andcommitted
Make InvalidVarException._get_origin a staticmethod (#482)
1 parent a517fc2 commit 702d20b

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
@@ -488,7 +488,8 @@ def __contains__(self, key):
488488
"""There is a test for '%s' in TEMPLATE_STRING_IF_INVALID."""
489489
return key == '%s'
490490

491-
def _get_origin(self):
491+
@staticmethod
492+
def _get_origin():
492493
stack = inspect.stack()
493494

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

0 commit comments

Comments
 (0)