Permalink
Browse files

Skip __get__ and __set__ methods

  • Loading branch information...
1 parent 2cd636f commit 6e9b079cc1d897ee4bc0bbcaaf34912bf72b6ffb @johnteslade committed Jul 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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()

0 comments on commit 6e9b079

Please sign in to comment.