← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1427745] [NEW] Tests fail in non-en_US locale

 

Public bug reported:

When I run `tox -epy27`, generally I get 13 test failures. One of these
is a proxy/WSGI interaction I don't care about. The remaining 12 are due
to tests which compare translated strings to untranslated message IDs.
My locale is:

    $ locale
    LANG=en_GB.UTF-8
    LANGUAGE=en_GB:en
    LC_CTYPE="en_GB.UTF-8"
    LC_NUMERIC="en_GB.UTF-8"
    LC_TIME="en_GB.UTF-8"
    LC_COLLATE="en_GB.UTF-8"
    LC_MONETARY="en_GB.UTF-8"
    LC_MESSAGES="en_GB.UTF-8"
    LC_PAPER="en_GB.UTF-8"
    LC_NAME="en_GB.UTF-8"
    LC_ADDRESS="en_GB.UTF-8"
    LC_TELEPHONE="en_GB.UTF-8"
    LC_MEASUREMENT="en_GB.UTF-8"
    LC_IDENTIFICATION="en_GB.UTF-8"
    LC_ALL=

See this patch for the tests which fail for me:
I352cd37d79401866e3116bcf0a62031bfe1d5d93

This patch removes the TranslationFixture which was supposed to prevent
translations during tests but didn't:
Idcc4409edae5ddfa0a1c2052a746d6412dda24ac

Suggested fix: enforce an en_US locale or prevent translations from
occurring during tests.

** Affects: nova
     Importance: Undecided
     Assignee: Alexis Lee (alexisl)
         Status: In Progress


** Tags: i18n testing

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1427745

Title:
  Tests fail in non-en_US locale

Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  When I run `tox -epy27`, generally I get 13 test failures. One of
  these is a proxy/WSGI interaction I don't care about. The remaining 12
  are due to tests which compare translated strings to untranslated
  message IDs. My locale is:

      $ locale
      LANG=en_GB.UTF-8
      LANGUAGE=en_GB:en
      LC_CTYPE="en_GB.UTF-8"
      LC_NUMERIC="en_GB.UTF-8"
      LC_TIME="en_GB.UTF-8"
      LC_COLLATE="en_GB.UTF-8"
      LC_MONETARY="en_GB.UTF-8"
      LC_MESSAGES="en_GB.UTF-8"
      LC_PAPER="en_GB.UTF-8"
      LC_NAME="en_GB.UTF-8"
      LC_ADDRESS="en_GB.UTF-8"
      LC_TELEPHONE="en_GB.UTF-8"
      LC_MEASUREMENT="en_GB.UTF-8"
      LC_IDENTIFICATION="en_GB.UTF-8"
      LC_ALL=

  See this patch for the tests which fail for me:
  I352cd37d79401866e3116bcf0a62031bfe1d5d93

  This patch removes the TranslationFixture which was supposed to
  prevent translations during tests but didn't:
  Idcc4409edae5ddfa0a1c2052a746d6412dda24ac

  Suggested fix: enforce an en_US locale or prevent translations from
  occurring during tests.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1427745/+subscriptions


Follow ups

References