/third_party/python/Lib/test/ |
D | test_dynamic.py | 6 from test.support import swap_item, swap_attr 45 with swap_attr(builtins, "len", lambda x: 7): 58 with swap_attr(builtins, "len", lambda x: 7): 64 with swap_attr(builtins, "len", len):
|
D | test_support.py | 92 with support.swap_attr(support, 'verbose', 0): 98 with support.swap_attr(support, 'verbose', 0): 105 with support.swap_attr(support, 'verbose', 0): 363 with support.swap_attr(obj, "x", 5) as x: 367 with support.swap_attr(obj, "y", 5) as y: 371 with support.swap_attr(obj, "y", 5): 565 with support.swap_attr(support, '_match_test_func', None): 612 with support.swap_attr(support, '_match_test_func', None):
|
D | test_linecache.py | 231 with support.swap_attr(linecache, 'updatecache', raise_memoryerror): 236 with support.swap_attr(linecache, 'updatecache', raise_memoryerror):
|
D | test_sys.py | 68 with support.swap_attr(sys, 'displayhook', baddisplayhook): 1026 with test.support.swap_attr(sys, 'unraisablehook', 1060 test.support.swap_attr(sys, 'unraisablehook', 1085 test.support.swap_attr(sys, 'unraisablehook', 1095 with test.support.swap_attr(sys, 'unraisablehook', 1109 with test.support.swap_attr(sys, 'unraisablehook', hook_func): 1126 with test.support.swap_attr(sys, 'unraisablehook', hook_func):
|
D | test_strptime.py | 400 with support.swap_attr(time, 'tzname', (tz_name, tz_name)), \ 401 support.swap_attr(time, 'daylight', 1), \ 402 support.swap_attr(time, 'tzset', lambda: None):
|
D | test_netrc.py | 156 with support.swap_attr(os.path, 'expanduser', fake_expanduser):
|
D | test_tempfile.py | 284 with support.swap_attr(tempfile, "_candidate_tempdir_list", 293 with support.swap_attr(io, "open", raise_OSError): 304 with support.swap_attr(io, "open", bad_writer) as orig_open: 331 with support.swap_attr(tempfile, 'tempdir', dir): 338 return support.swap_attr(tempfile, 362 with support.swap_attr(tempfile, 'tempdir', tempdir): 370 with support.swap_attr(tempfile, 'tempdir', tempdir):
|
D | test_threading.py | 1475 with support.swap_attr(threading, 'excepthook', hook): 1498 with support.swap_attr(threading, 'excepthook', threading_hook), \ 1499 support.swap_attr(sys, 'excepthook', sys_hook), \ 1521 with support.swap_attr(threading, 'excepthook', threading_hook):
|
D | test_shutil.py | 1833 support.swap_attr(os, 'defpath', self.dir), \ 1851 support.swap_attr(os, 'defpath', self.dir): 1867 support.swap_attr(os, 'defpath', self.dir): 1874 support.swap_attr(os, 'defpath', ''): 2205 with support.swap_attr(shutil, 'open', _open): 2220 with support.swap_attr(shutil, 'open', _open): 2239 with support.swap_attr(shutil, 'open', _open): 2261 with support.swap_attr(shutil, 'open', _open): 2636 with support.swap_attr(sys, '__stdout__', None): 2644 support.swap_attr(sys, '__stdout__', f):
|
D | test_fileio.py | 12 from test.support import cpython_only, swap_attr, gc_collect 183 with swap_attr(self.f, 'name', self.f):
|
D | test_traceback.py | 906 with support.swap_attr(sys, 'tracebacklimit', 1000): 933 with support.swap_attr(sys, 'tracebacklimit', 1000): 962 with support.swap_attr(sys, 'tracebacklimit', 1000):
|
D | test_poplib.py | 332 with test_support.swap_attr(self.client, 'welcome', evil_welcome):
|
D | test_site.py | 328 support.swap_attr(site, 'ENABLE_USER_SITE', True):
|
D | test_wsgiref.py | 568 with support.swap_attr(TestHandler, 'os_environ', os_environ):
|
D | test_tarfile.py | 241 with support.swap_attr(sys, 'stdout', tio): 278 with support.swap_attr(sys, 'stdout', tio): 306 with support.swap_attr(sys, 'stdout', tio):
|
/third_party/python/Lib/distutils/tests/ |
D | test_log.py | 6 from test.support import swap_attr, run_unittest 24 with swap_attr(sys, 'stdout', stdout), \ 25 swap_attr(sys, 'stderr', stderr):
|
/third_party/python/Lib/tkinter/test/test_tkinter/ |
D | test_simpledialog.py | 3 from test.support import requires, swap_attr 19 with swap_attr(Dialog, 'wait_window', mock_wait_window):
|
D | test_messagebox.py | 3 from test.support import requires, swap_attr 20 with swap_attr(Dialog, '_test_callback', test_callback):
|
D | test_colorchooser.py | 3 from test.support import requires, swap_attr 51 with swap_attr(Dialog, '_test_callback', test_callback):
|
/third_party/python/Lib/test/test_tools/ |
D | test_fixcid.py | 85 with support.swap_attr(sys, "argv", argv), \ 86 support.swap_attr(sys, "stdin", StringIO(input)), \
|
/third_party/python/Lib/test/test_warnings/ |
D | __init__.py | 835 with support.swap_attr(wmod, 'onceregistry', None): 850 with support.swap_attr(wmod, 'defaultaction', None), \ 923 with support.swap_attr(self.module, 'formatwarning', myformatwarning): 1064 with support.swap_attr(wmod, 'showwarning', my_logger):
|
/third_party/python/Lib/idlelib/idle_test/ |
D | test_sidebar.py | 8 from test.support import requires, swap_attr 620 swap_attr(self.shell, 'squeezer', None):
|
/third_party/python/Lib/test/test_import/ |
D | __init__.py | 22 from test.support import (is_jython, swap_attr, swap_item, cpython_only) 432 with swap_attr(os, '__name__', None): 825 with swap_attr(builtins, "__import__", lambda *x: 5):
|
/third_party/python/Lib/test/test_importlib/ |
D | test_util.py | 574 with support.swap_attr(sys.implementation, 'cache_tag', None): 704 with support.swap_attr(sys.implementation, 'cache_tag', None):
|
/third_party/python/Misc/NEWS.d/ |
D | 3.6.2rc1.rst | 916 Enhanced functions swap_attr() and swap_item() in the test.support module.
|