Lines Matching refs:args

121 def addModuleCleanup(function, /, *args, **kwargs):
124 _module_cleanups.append((function, args, kwargs))
136 function, args, kwargs = _module_cleanups.pop()
138 function(*args, **kwargs)
154 def skip_wrapper(*args, **kwargs):
213 def handle(self, name, args, kwargs):
215 If args is empty, assertRaises/Warns is being used as a
217 If args is not empty, call a callable passing positional and keyword
224 if not args:
231 callable_obj, *args = args
237 callable_obj(*args, **kwargs)
387 def __init_subclass__(cls, *args, **kwargs):
391 super().__init_subclass__(*args, **kwargs)
440 def addCleanup(self, function, /, *args, **kwargs):
446 self._cleanups.append((function, args, kwargs))
457 def addClassCleanup(cls, function, /, *args, **kwargs):
460 cls._class_cleanups.append((function, args, kwargs))
586 def _callCleanup(self, function, /, *args, **kwargs):
587 function(*args, **kwargs)
657 function, args, kwargs = self._cleanups.pop()
659 self._callCleanup(function, *args, **kwargs)
671 function, args, kwargs = cls._class_cleanups.pop()
673 function(*args, **kwargs)
677 def __call__(self, *args, **kwds):
678 return self.run(*args, **kwds)
694 function, args, kwargs = self._cleanups.pop()
695 self._callCleanup(function, *args, **kwargs)
738 def assertRaises(self, expected_exception, *args, **kwargs):
766 return context.handle('assertRaises', args, kwargs)
771 def assertWarns(self, expected_warning, *args, **kwargs):
800 return context.handle('assertWarns', args, kwargs)
836 """Get a detailed comparison function for the types of the two args.
1305 *args, **kwargs):
1312 args: Function to be called and extra positional args.
1318 return context.handle('assertRaisesRegex', args, kwargs)
1321 *args, **kwargs):
1331 args: Function to be called and extra positional args.
1337 return context.handle('assertWarnsRegex', args, kwargs)
1367 def deprecated_func(*args, **kwargs):
1371 return original_func(*args, **kwargs)