Searched refs:swap_item (Results 1 – 17 of 17) sorted by relevance
/external/python/cpython3/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 | 46 with support.swap_item(globals(), '__annotations__', {}):
|
D | test_support.py | 348 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):
|
D | test_uuid.py | 322 with support.swap_item(sys.modules, 'uuid', self.uuid): 440 with support.swap_item(sys.modules, 'uuid', self.uuid):
|
D | test_operator.py | 509 with support.swap_item(sys.modules, 'operator', self.module): 511 with support.swap_item(sys.modules, 'operator', self.module2):
|
D | test_imp.py | 320 with support.swap_item(sys.modules, modname, mod):
|
/external/python/cpython2/Lib/test/ |
D | test_test_support.py | 351 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__.py | 24 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__.py | 894 with support.swap_item(globals(), '__name__', b'foo'), \ 895 support.swap_item(globals(), '__file__', None):
|
/external/deqp/external/openglcts/modules/gles31/ |
D | es31cArrayOfArraysTests.cpp | 1733 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/ |
D | 3.6.2rc1.rst | 917 Enhanced functions swap_attr() and swap_item() in the test.support module.
|
D | 3.5.4rc1.rst | 1047 Enhanced functions swap_attr() and swap_item() in the test.support module.
|
D | 3.7.0a1.rst | 4979 Enhanced functions swap_attr() and swap_item() in the test.support module.
|
/external/python/cpython2/Lib/test/support/ |
D | __init__.py | 1847 def swap_item(obj, item, new_val): function
|
/external/python/cpython3/Doc/library/ |
D | test.rst | 733 .. function:: swap_item(obj, attr, new_val) 739 with swap_item(obj, "item", 5):
|
/external/python/cpython3/Lib/test/support/ |
D | __init__.py | 2275 def swap_item(obj, item, new_val): function
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7.15rc1.rst | 1409 swap_item().
|