I am working on an interface to i18n library ICU (and PyICU) for Flask. In my test suite, I have a test that checks output for different locale settings. The problem I'm having is that locally my tests pass, whereas on the TravisCI instance where they also run, they fail.
The reason? The output from the ICU is evidently different on the two machines. In one test, I check the result of doing a dateformat on a Python dateformat
using an italian locale: it_IT
. The result locally is `12 apr 2010, 15:46:00'. But on the TravisCI instance, it is altered in a way that doesn't make sense to me. See here:
As you can see, the string that is generated is similar but has these added /
s. I'm unsure why this might be happening. Ideas anyone?
UPDATE 10/28/2016
After a bunch of testing to try to reproduce the different date format output that is occurring on the travis instance, I have been unable to reproduce this issue. I tried the following:
Explicitly setting the locales on the travis instance by adding the following to the
before_install
script:sudo locale-gen "en_US.UTF-8"
sudo update-locale
sudo dpkg-reconfigure localesI spun up the ec2 instance that the Travis Trusty Tahr machine is supposedly based on (see here) and I tried installing everything needed and running my tests. No errors!
I tried setting my dev machines locales to the ones set on the travis instance. Again, No errors!.
I tried a different locale, just to see if it was perhaps something to do with that particular locale, but got another aberration:
So it seems likely at this point that something other than the locale settings are causing the incorrect output.