Skip to content

Commit

Permalink
call super
Browse files Browse the repository at this point in the history
  • Loading branch information
rdspring1 committed Aug 27, 2024
1 parent aa9e9cd commit 4dd6f98
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/python/opinfo_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ def __init__(self, opinfos, *, scope=None):

atexit_serde_check()

# Replicate create_op_test.__init__ to have correct scope
self.opinfos = opinfos

# Acquires the caller's global scope
# Acquires the caller's global scope.
# Initialize here to get the correct scope.
if scope is None:
previous_frame = inspect.currentframe().f_back
scope = previous_frame.f_globals
self.scope = scope

super().__init__(opinfos, scope=scope)

0 comments on commit 4dd6f98

Please sign in to comment.