Home
last modified time | relevance | path

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

/external/python/cpython3/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.py46 with support.swap_item(globals(), '__annotations__', {}):
Dtest_support.py348 with support.swap_item(D, "x", 5) as x:
352 with support.swap_item(D, "y", 5) as y:
356 with support.swap_item(D, "y", 5):
Dtest_uuid.py322 with support.swap_item(sys.modules, 'uuid', self.uuid):
440 with support.swap_item(sys.modules, 'uuid', self.uuid):
Dtest_operator.py509 with support.swap_item(sys.modules, 'operator', self.module):
511 with support.swap_item(sys.modules, 'operator', self.module2):
Dtest_imp.py320 with support.swap_item(sys.modules, modname, mod):
/external/python/cpython2/Lib/test/
Dtest_test_support.py351 with support.swap_item(D, "x", 5) as x:
355 with support.swap_item(D, "y", 5) as y:
359 with support.swap_item(D, "y", 5):
/external/python/cpython3/Lib/test/test_import/
D__init__.py24 make_legacy_pyc, rmtree, run_unittest, swap_attr, swap_item, temp_umask,
754 with swap_item(globals(), "__import__", lambda *x: 5):
/external/python/cpython3/Lib/test/test_warnings/
D__init__.py894 with support.swap_item(globals(), '__name__', b'foo'), \
895 support.swap_item(globals(), '__file__', None):
/external/deqp/external/openglcts/modules/gles31/
Des31cArrayOfArraysTests.cpp1733 for (size_t swap_item = 1; swap_item < API::MAX_ARRAY_DIMENSIONS; swap_item++) in test_shader_compilation() local
1735 for (size_t max_dimension_index = swap_item + 1; max_dimension_index < API::MAX_ARRAY_DIMENSIONS; in test_shader_compilation()
1738 std::string temp = variable_basenames[swap_item]; in test_shader_compilation()
1741 variable_basenames[swap_item] = variable_basenames[max_dimension_index]; in test_shader_compilation()
1756 temp = variable_basenames[swap_item]; in test_shader_compilation()
1757 variable_basenames[swap_item] = variable_basenames[max_dimension_index]; in test_shader_compilation()
/external/python/cpython3/Misc/NEWS.d/
D3.6.2rc1.rst917 Enhanced functions swap_attr() and swap_item() in the test.support module.
D3.5.4rc1.rst1047 Enhanced functions swap_attr() and swap_item() in the test.support module.
D3.7.0a1.rst4979 Enhanced functions swap_attr() and swap_item() in the test.support module.
/external/python/cpython2/Lib/test/support/
D__init__.py1847 def swap_item(obj, item, new_val): function
/external/python/cpython3/Doc/library/
Dtest.rst733 .. function:: swap_item(obj, attr, new_val)
739 with swap_item(obj, "item", 5):
/external/python/cpython3/Lib/test/support/
D__init__.py2275 def swap_item(obj, item, new_val): function
/external/python/cpython2/Misc/NEWS.d/
D2.7.15rc1.rst1409 swap_item().