'Show error message when out of memory.
GH-2441'

def test_out_of_memory(self):

    table = Table('iris')
    with patch('Orange.projection.manifold.MDS.__call__', Mock()) as mock:
        mock.side_effect = MemoryError
        self.send_signal('Data', table)
        self.widget.manifold_methods_combo.activated.emit(1)
        self.widget.apply_button.button.click()
        self.assertTrue(self.widget.Error.out_of_memory.is_shown())
