Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Dec 11, 2024
1 parent a8a3b99 commit 787f643
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/test_inner_classmethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import wrapt

from compat import exec_, getfullargspec
from compat import getfullargspec

DECORATORS_CODE = """
import wrapt
Expand All @@ -16,7 +16,7 @@ def passthru_decorator(wrapped, instance, args, kwargs):
"""

decorators = types.ModuleType('decorators')
exec_(DECORATORS_CODE, decorators.__dict__, decorators.__dict__)
exec(DECORATORS_CODE, decorators.__dict__, decorators.__dict__)

class Class(object):
@classmethod
Expand Down
4 changes: 2 additions & 2 deletions tests/test_inner_staticmethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import wrapt

from compat import exec_, getfullargspec
from compat import getfullargspec

DECORATORS_CODE = """
import wrapt
Expand All @@ -16,7 +16,7 @@ def passthru_decorator(wrapped, instance, args, kwargs):
"""

decorators = types.ModuleType('decorators')
exec_(DECORATORS_CODE, decorators.__dict__, decorators.__dict__)
exec(DECORATORS_CODE, decorators.__dict__, decorators.__dict__)

class Class(object):
@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions tests/test_instancemethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import wrapt

from compat import exec_, getfullargspec
from compat import getfullargspec

DECORATORS_CODE = """
import wrapt
Expand All @@ -17,7 +17,7 @@ def passthru_decorator(wrapped, instance, args, kwargs):
"""

decorators = types.ModuleType('decorators')
exec_(DECORATORS_CODE, decorators.__dict__, decorators.__dict__)
exec(DECORATORS_CODE, decorators.__dict__, decorators.__dict__)

class OldClass1():
def function(self, arg):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_nested_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import wrapt

from compat import exec_, getfullargspec
from compat import getfullargspec

DECORATORS_CODE = """
import wrapt
Expand All @@ -16,7 +16,7 @@ def passthru_decorator(wrapped, instance, args, kwargs):
"""

decorators = types.ModuleType('decorators')
exec_(DECORATORS_CODE, decorators.__dict__, decorators.__dict__)
exec(DECORATORS_CODE, decorators.__dict__, decorators.__dict__)

def function1():
def inner(arg):
Expand Down

0 comments on commit 787f643

Please sign in to comment.