def test_using_indexer_on_object_without_indexer(): """Test using subscript syntax on an object an without indexer raises""" from System import Object o = Object() with pytest.raises(TypeError): o[0] with pytest.raises(TypeError): o[0] = 1
def __init__(self): """ <summary> Private default constructor </summary> """ self.m_apiInstance = None self.m_disp = None self.m_disposed = False self.m_lock = Object() self.m_req = None self.m_ps = None self.m_ts = None self.m_orderKey = ""