def _get_special_chr():
<EOL>the_chr = u'<STR_LIT>'<EOL>fd = None<EOL>fname = None<EOL>try:<EOL><INDENT>fd, fname = tempfile.mkstemp(suffix=the_chr)<EOL><DEDENT>except UnicodeEncodeError:<EOL><INDENT>msg = ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>warnings.warn(msg, UnicodeWarning)<EOL>the_chr = u'<STR_LIT:s>'<EOL><DEDENT>finally:<EOL><INDENT>if fd:<EOL><INDENT>os.close(fd)<EOL>os.remove(fname)<EOL><DEDENT><DEDENT>return the_chr<EOL>
This is used to check unicode support.  On some systems, depending
on locale settings, we won't be able to use non-ASCII characters
when interacting with system calls.  Since in such cases it
doesn't really make sense to run these tests we set UNI_CHR to a
regular ASCII character.