diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index bde1bb27d68..87449fb8794 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -451,7 +451,7 @@ def clear(self, var): """ Clear the variable named var. """ - self.eval('if(defined(%s)>0){kill %s;}'%(var,var)) + self._eval_line('if(defined(%s)>0){kill %s;}'%(var,var), wait_for_prompt=False) def _create(self, value, type='def'): name = self._next_var_name()