Searched refs:swap_item (Results 1 – 18 of 18) sorted by relevance
/third_party/python/Lib/test/ |
D | test_dynamic.py | 6 from test.support import swap_item, swap_attr 35 with swap_item(globals(), "len", lambda x: 7): 117 with swap_item(globals(), "__builtins__", {"len": lambda x: 7}): 126 with swap_item(globals(), "__builtins__", {"len": lambda x: 7}):
|
D | test_opcodes.py | 45 with support.swap_item(globals(), '__annotations__', {}):
|
D | test_support.py | 377 with support.swap_item(D, "x", 5) as x: 381 with support.swap_item(D, "y", 5) as y: 385 with support.swap_item(D, "y", 5):
|
D | test_uuid.py | 328 with support.swap_item(sys.modules, 'uuid', self.uuid): 446 with support.swap_item(sys.modules, 'uuid', self.uuid):
|
D | test_operator.py | 541 with support.swap_item(sys.modules, 'operator', self.module): 543 with support.swap_item(sys.modules, 'operator', self.module2):
|
D | test_imp.py | 322 with support.swap_item(sys.modules, modname, mod):
|
D | test_ast.py | 2187 with support.swap_item(sys.modules, '_ast', None): 2212 with support.swap_item(sys.modules, '_ast', None):
|
D | test_xml_etree.py | 29 from test.support import findfile, gc_collect, swap_attr, swap_item 171 with swap_item(sys.modules, name, dumper): 173 with swap_item(sys.modules, name, loader):
|
D | test_logging.py | 4427 with support.swap_item(sys.modules, 'multiprocessing', None):
|
/third_party/python/Lib/distutils/tests/ |
D | test_sysconfig.py | 13 from test.support import run_unittest, swap_item 106 cm.enter_context(swap_item(sysconfig._config_vars, key, value))
|
/third_party/python/Lib/test/test_import/ |
D | __init__.py | 22 from test.support import (is_jython, swap_attr, swap_item, cpython_only) 831 with swap_item(globals(), "__import__", lambda *x: 5):
|
/third_party/python/Lib/test/test_warnings/ |
D | __init__.py | 860 with support.swap_item(globals(), '__name__', b'foo'), \ 861 support.swap_item(globals(), '__file__', None):
|
/third_party/vk-gl-cts/external/openglcts/modules/gles31/ |
D | es31cArrayOfArraysTests.cpp | 1735 for (size_t swap_item = 1; swap_item < API::MAX_ARRAY_DIMENSIONS; swap_item++) in test_shader_compilation() local 1737 for (size_t max_dimension_index = swap_item + 1; max_dimension_index < API::MAX_ARRAY_DIMENSIONS; in test_shader_compilation() 1740 std::string temp = variable_basenames[swap_item]; in test_shader_compilation() 1743 variable_basenames[swap_item] = variable_basenames[max_dimension_index]; in test_shader_compilation() 1758 temp = variable_basenames[swap_item]; in test_shader_compilation() 1759 variable_basenames[swap_item] = variable_basenames[max_dimension_index]; in test_shader_compilation()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.6.2rc1.rst | 916 Enhanced functions swap_attr() and swap_item() in the test.support module.
|
D | 3.5.4rc1.rst | 1043 Enhanced functions swap_attr() and swap_item() in the test.support module.
|
D | 3.7.0a1.rst | 4971 Enhanced functions swap_attr() and swap_item() in the test.support module.
|
/third_party/python/Lib/test/support/ |
D | __init__.py | 1236 def swap_item(obj, item, new_val): function
|
/third_party/python/Doc/library/ |
D | test.rst | 592 .. function:: swap_item(obj, attr, new_val) 598 with swap_item(obj, "item", 5):
|