def accept(f):
     f.__code__ = update_code_location(f.__code__,
                                       target.__code__.co_filename,
                                       target.__code__.co_firstlineno)
     f.__name__ = target.__name__
     f.__module__ = target.__module__
     f.__doc__ = target.__doc__
     return f
 def accept(f):
     f.__code__ = update_code_location(f.__code__,
                                       target.__code__.co_filename,
                                       target.__code__.co_firstlineno)
     f.__name__ = target.__name__
     f.__module__ = target.__module__
     f.__doc__ = target.__doc__
     f.__globals__["__hypothesistracebackhide__"] = True
     return f
Beispiel #3
0
 def accept(f):
     f.__code__ = update_code_location(
         f.__code__,
         target.__code__.co_filename, target.__code__.co_firstlineno
     )
     f.__name__ = target.__name__
     f.__module__ = target.__module__
     f.__doc__ = target.__doc__
     return f
 def accept(f):
     f.__code__ = update_code_location(
         f.__code__, target.__code__.co_filename, target.__code__.co_firstlineno
     )
     f.__name__ = target.__name__
     f.__module__ = target.__module__
     f.__doc__ = target.__doc__
     f.__globals__["__hypothesistracebackhide__"] = True
     return f