Home
last modified time | relevance | path

Searched refs:swap_item (Results 1 – 18 of 18) sorted by relevance

/third_party/python/Lib/test/
Dtest_dynamic.py6 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}):
Dtest_opcodes.py45 with support.swap_item(globals(), '__annotations__', {}):
Dtest_support.py377 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):
Dtest_uuid.py328 with support.swap_item(sys.modules, 'uuid', self.uuid):
446 with support.swap_item(sys.modules, 'uuid', self.uuid):
Dtest_operator.py541 with support.swap_item(sys.modules, 'operator', self.module):
543 with support.swap_item(sys.modules, 'operator', self.module2):
Dtest_imp.py322 with support.swap_item(sys.modules, modname, mod):
Dtest_ast.py2187 with support.swap_item(sys.modules, '_ast', None):
2212 with support.swap_item(sys.modules, '_ast', None):
Dtest_xml_etree.py29 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):
Dtest_logging.py4427 with support.swap_item(sys.modules, 'multiprocessing', None):
/third_party/python/Lib/distutils/tests/
Dtest_sysconfig.py13 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__.py22 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__.py860 with support.swap_item(globals(), '__name__', b'foo'), \
861 support.swap_item(globals(), '__file__', None):
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cArrayOfArraysTests.cpp1735 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/
D3.6.2rc1.rst916 Enhanced functions swap_attr() and swap_item() in the test.support module.
D3.5.4rc1.rst1043 Enhanced functions swap_attr() and swap_item() in the test.support module.
D3.7.0a1.rst4971 Enhanced functions swap_attr() and swap_item() in the test.support module.
/third_party/python/Lib/test/support/
D__init__.py1236 def swap_item(obj, item, new_val): function
/third_party/python/Doc/library/
Dtest.rst592 .. function:: swap_item(obj, attr, new_val)
598 with swap_item(obj, "item", 5):