/third_party/python/Lib/test/ |
H A D | test_dynamic.py | 7 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 D | test_opcodes.py | 45 with support.swap_item(globals(), '__annotations__', {}):
|
H A D | test_support.py | 380 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 D | test_imp.py | 327 with support.swap_item(sys.modules, modname, mod):
|
H A D | test_operator.py | 568 with support.swap_item(sys.modules, 'operator', self.module): 570 with support.swap_item(sys.modules, 'operator', self.module2):
|
H A D | test_uuid.py | 336 with support.swap_item(sys.modules, 'uuid', self.uuid): 454 with support.swap_item(sys.modules, 'uuid', self.uuid):
|
H A D | test_xml_etree.py | 28 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 D | test_ast.py | 2387 with support.swap_item(sys.modules, '_ast', None): 2412 with support.swap_item(sys.modules, '_ast', None):
|
H A D | test_logging.py | 4578 with support.swap_item(sys.modules, 'multiprocessing', None):
|
/third_party/python/Lib/distutils/tests/ |
H A D | test_sysconfig.py | 13 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 D | es31cArrayOfArraysTests.cpp | 1799 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__.py | 886 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__.py | 23 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__.py | 57 "run_with_locale", "swap_item", "findfile", "infinite_recursion", 1363 def swap_item(obj, item, new_val): function 1367 with swap_item(obj, "item", 5):
|