Searched refs:swap_item (Results 1 – 19 of 19) 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 | 343 with support.swap_item(D, "x", 5) as x: 347 with support.swap_item(D, "y", 5) as y: 351 with support.swap_item(D, "y", 5):
|
D | test_uuid.py | 327 with support.swap_item(sys.modules, 'uuid', self.uuid): 445 with support.swap_item(sys.modules, 'uuid', self.uuid):
|
D | test_imp.py | 320 with support.swap_item(sys.modules, modname, mod):
|
D | test_operator.py | 529 with support.swap_item(sys.modules, 'operator', self.module): 531 with support.swap_item(sys.modules, 'operator', self.module2):
|
D | test_ast.py | 1969 with support.swap_item(sys.modules, '_ast', None): 1994 with support.swap_item(sys.modules, '_ast', None):
|
/external/python/cpython3/Lib/distutils/tests/ |
D | test_sysconfig.py | 13 from test.support import TESTFN, run_unittest, check_warnings, swap_item 103 cm.enter_context(swap_item(sysconfig._config_vars, key, value))
|
/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, swap_attr, swap_item, temp_umask, 829 with swap_item(globals(), "__import__", lambda *x: 5):
|
/external/python/cpython3/Lib/test/test_warnings/ |
D | __init__.py | 854 with support.swap_item(globals(), '__name__', b'foo'), \ 855 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 | 916 Enhanced functions swap_attr() and swap_item() in the test.support module.
|
D | 3.5.4rc1.rst | 1043 Enhanced functions swap_attr() and swap_item() in the test.support module.
|
D | 3.7.0a1.rst | 4971 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 | 799 .. function:: swap_item(obj, attr, new_val) 805 with swap_item(obj, "item", 5):
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7.15rc1.rst | 1409 swap_item().
|
/external/python/cpython3/Lib/test/support/ |
D | __init__.py | 2206 def swap_item(obj, item, new_val): function
|