'Runs a test in the embedded interpreter'

def run_embedded_interpreter(self, *args):

    cmd = [self.test_exe]
    cmd.extend(args)
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    (out, err) = p.communicate()
    self.assertEqual(p.returncode, 0, ('bad    returncode    %d,    stderr    is    %r' % (p.returncode, err)))
    return (out.decode('latin1'), err.decode('latin1'))
