You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E '11: E02: Incorrect number of elements in array. Expected multiple of\n',
E ' 0, got 2\n',
E - '<PARAM datatype="float" name="wrong_arraysize" value="0.000000,0.00...\n',
E ? ^^^
E + '<PARAM datatype="float" name="wrong_arraysize" value="0.000000,0.0000…\n',
E ? ^^^
@saimn - Looks like it's due to … (single-character) being used for ellipsis. I wonder if that depends on your locale. What are your locale settings? (output of locale)
So just to clarify, this isn't anything to do with votable fundamentally, just the fact that if the user has set local configuration that is different from the default, the tests may fail. So we somehow need to ensure that during testing, the configuration file is ignored.
Well guessed @astrofrog, it seems that I did set the unicode_output setting in my config file !
I tested both directly with pytest and with the setup.py.
Activity
pllim commentedon Nov 16, 2018
That's annoying...
Is this Debian? What is your version of
xmllint?saimn commentedon Nov 16, 2018
@pllim - yes, on Debian.
pllim commentedon Nov 16, 2018
@olebole , is this one of the tests you already disabled in the distro?
votablehas not been touched much since the last release...pllim commentedon Nov 16, 2018
FWIW mine is
I tried digging into the validator code but can't find anything obvious.
astrofrog commentedon Nov 16, 2018
@saimn - Looks like it's due to
…(single-character) being used for ellipsis. I wonder if that depends on your locale. What are your locale settings? (output oflocale)astrofrog commentedon Nov 16, 2018
I can reproduce this by setting
astropy.conf.unicode_outputtoTrueWe really should ignore user configuration when running tests...
astrofrog commentedon Nov 16, 2018
So just to clarify, this isn't anything to do with votable fundamentally, just the fact that if the user has set local configuration that is different from the default, the tests may fail. So we somehow need to ensure that during testing, the configuration file is ignored.
astrofrog commentedon Nov 16, 2018
By the way, this may happen only when running tests directly with pytest, I need to check (@saimn can you confirm how you ran the tests?)
saimn commentedon Nov 16, 2018
Well guessed @astrofrog, it seems that I did set the
unicode_outputsetting in my config file !I tested both directly with pytest and with the setup.py.
pllim commentedon Nov 17, 2018
Okay, so I guess mystery is solved. Now should I
(a) Change the title to "make tests insensitive to locale" here, remove milestone, and label as feature request; OR
(b) Do (a) in a new issue?
pllim commentedon Nov 17, 2018
See #8154