#8615 closed defect (fixed)
SVN functional tests fail because of non-english locale
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | low | Milestone: | 0.12 |
Component: | version control | Version: | 0.11-stable |
Severity: | normal | Keywords: | testing |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
In 0.11 and 0.12 I have two failures when I run the test suite on Fedora Linux 10 (x86_64) with de_DE.UTF-8:
ERROR: Verify browser log for a new file ---------------------------------------------------------------------- Traceback (most recent call last): File ".../trac/versioncontrol/tests/functional.py", line 94, in runTest revision = self._testenv.svn_add(fulltempfilename, '') File ".../trac/tests/functional/svntestenv.py", line 75, in svn_add raise Exception(*args) Exception: ("'NoneType' object has no attribute 'group'", 'Hinzuf\xc3\xbcgen component1/trunk/two\n\xc3\x9cbertrage Daten .\nRevision 3 \xc3\xbcbertragen.\n') ----------------------------------------------------------------------
This happens obviously because the locale is not inherited when child processes are called.
Attachments (1)
Change History (6)
by , 15 years ago
Attachment: | force_locale_for_functional_tests_012.patch added |
---|
follow-up: 3 comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The issue was specific to calling svn ci
and parsing its output, so I have fixed it by passing a modified environment to Popen
in that particular case only in [8639].
OT: Felix, are you really running a Linux box with non-English messages? I just can't stand a non-English OS (French Windows gives me the creeps :).
follow-up: 4 comment:3 by , 15 years ago
Replying to rblank:
The issue was specific to calling
svn ci
and parsing its output, so I have fixed it by passing a modified environment toPopen
in that particular case only in [8639].
Hmm, the problem kicks in also when you re-use trac's functional test infrastructure (though it is no public api officially) and you need to call other commands which return different output depending on the locale. So just defaulting to English would be better for these use cases.
OT: Felix, are you really running a Linux box with non-English messages? I just can't stand a non-English OS (French Windows gives me the creeps :).
Yes, of course. How can I test where Fedora's translations need to be improved? ;-)
comment:4 by , 15 years ago
Replying to Felix Schwarz <felix.schwarz@…>:
So just defaulting to English would be better for these use cases.
I understand. Still, I prefer having this explicit for the calls where it is necessary, rather than overriding in all cases.
comment:5 by , 15 years ago
Milestone: | → 0.12 |
---|
Fix for 0.12 - this patch applies for 0.11 as well (with a bit of fuzz)