Home
last modified time | relevance | path

Searched refs:swap_item (Results 1 - 14 of 14) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_dynamic.py7 from test.support import swap_item, swap_attr namespace
36 with swap_item(globals(), "len", lambda x: 7):
118 with swap_item(globals(), "__builtins__", {"len": lambda x: 7}):
127 with swap_item(globals(), "__builtins__", {"len": lambda x: 7}):
H A Dtest_opcodes.py45 with support.swap_item(globals(), '__annotations__', {}):
H A Dtest_support.py380 with support.swap_item(D, "x", 5) as x:
384 with support.swap_item(D, "y", 5) as y:
388 with support.swap_item(D, "y", 5):
H A Dtest_imp.py327 with support.swap_item(sys.modules, modname, mod):
H A Dtest_operator.py568 with support.swap_item(sys.modules, 'operator', self.module):
570 with support.swap_item(sys.modules, 'operator', self.module2):
H A Dtest_uuid.py336 with support.swap_item(sys.modules, 'uuid', self.uuid):
454 with support.swap_item(sys.modules, 'uuid', self.uuid):
H A Dtest_xml_etree.py28 from test.support import findfile, gc_collect, swap_attr, swap_item namespace
173 with swap_item(sys.modules, name, dumper):
175 with swap_item(sys.modules, name, loader):
H A Dtest_ast.py2387 with support.swap_item(sys.modules, '_ast', None):
2412 with support.swap_item(sys.modules, '_ast', None):
H A Dtest_logging.py4578 with support.swap_item(sys.modules, 'multiprocessing', None):
/third_party/python/Lib/distutils/tests/
H A Dtest_sysconfig.py13 from test.support import run_unittest, swap_item, requires_subprocess, is_wasi namespace
112 cm.enter_context(swap_item(sysconfig._config_vars, key, value))
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
H A Des31cArrayOfArraysTests.cpp1799 for (size_t swap_item = 1; swap_item < API::MAX_ARRAY_DIMENSIONS; swap_item++) in test_shader_compilation()
1801 for (size_t max_dimension_index = swap_item + 1; max_dimension_index < API::MAX_ARRAY_DIMENSIONS; in test_shader_compilation()
1804 std::string temp = variable_basenames[swap_item]; in test_shader_compilation()
1807 variable_basenames[swap_item] = variable_basenames[max_dimension_index]; in test_shader_compilation()
1822 temp = variable_basenames[swap_item]; in test_shader_compilation()
1823 variable_basenames[swap_item] = variable_basenames[max_dimension_index]; in test_shader_compilation()
1831 } /* for (int max_dimension_index = swap_item + 1; ...) */ in test_shader_compilation()
1832 } /* for (int swap_item in test_shader_compilation()
[all...]
/third_party/python/Lib/test/test_warnings/
H A D__init__.py886 with support.swap_item(globals(), '__name__', b'foo'), \
887 support.swap_item(globals(), '__file__', None):
/third_party/python/Lib/test/test_import/
H A D__init__.py23 STDLIB_DIR, is_jython, swap_attr, swap_item, cpython_only, is_emscripten,
851 with swap_item(globals(), "__import__", lambda *x: 5):
/third_party/python/Lib/test/support/
H A D__init__.py57 "run_with_locale", "swap_item", "findfile", "infinite_recursion",
1363 def swap_item(obj, item, new_val): function
1367 with swap_item(obj, "item", 5):

Completed in 33 milliseconds