David Loeffler wrote:
On 26 March 2013 12:37, leif <not.rea...@online.de> wrote:
Volker Braun wrote:

Is it just me? I get UnicodeWarning printed during doctests on many
files. Apparently they don't cause test failures, though they might mask
failing doctests since the comparison in question is always false:


I thought this was a known (but also harmless) issue;  I get four of these
(all identical) when test[long]ing Sage 5.9.beta0.


-leif

Same for me with 5.9.beta1, all coming from file
Cython/Build/Dependencies.py as in Volker's example. I guess this must
be a Cython bug, rather than a Sage one?


FWIW, the offending lines from devel/sagenb-main/sagenb/misc/misc.py are

def unicode_str(obj, encoding='utf-8'):
    ur"""
    Takes an object and returns a unicode human-readable representation.

    EXAMPLES::

        sage: from sagenb.misc.misc import unicode_str
sage: unicode_str('ěščřžýáíéďĎ') == u'\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\u010f\u010e'
        True


The warning is definitely harmless (i.e., the comparison yielding False), as it occurs when Cython just tries to find escape characters (\) within strings.


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to