def test_multiple_stateful_x_eq_5_statement(self):

        locals_ = copy.copy(self.locals_)

        globals_ = copy.copy(self.globals_)

        pythonect.eval('xrange(1, 10) -> x = _', globals_, locals_)

        self.assertEqual('x' not in locals_ and 'x' not in globals_, True)

        # i.e.

        # >>> xrange(x, 10) -> x = _
        # >>> x
        # NameError: name 'x' is not defined
dataset/ETHPy150Open ikotler/pythonect/pythonect/test/test_eval.py/TestPythonect.test_multiple_stateful_x_eq_5_statement/original