Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Skip __get__ and __set__ methods

  • Loading branch information...
commit 6e9b079cc1d897ee4bc0bbcaaf34912bf72b6ffb 1 parent 2cd636f
@johnteslade authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  pycharacterize/object_state.py
View
3  pycharacterize/object_state.py
@@ -23,6 +23,7 @@ def function_call(self, local_vars, func_name):
logging.debug("call_stack = {}".format(self.call_stack))
+
# Only check for differences if we one level into object
if len(self.call_stack) == 1:
# Detect if there have been changes to the attributes between the call
@@ -51,7 +52,7 @@ def function_return(self, local_vars, func_name, stack):
assert (return_func == func_name)
# If we have a call stack then this was a call originiating inside the object so ignore it
- if len(self.call_stack) == 0:
+ if len(self.call_stack) == 0 and func_name not in ['__get__', '__set__']:
# Get the actual params passed in
inputs = local_vars.copy()
Please sign in to comment.
Something went wrong with that request. Please try again.