Re: zope-tests - FAILED: 13, OK: 40

Arfrever Frehtes Taifersar Arahesis <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
2011-10-31 17:02:52 Tres Seaver napisał(a):
> Hmm, there is code in the test which tries to ensure that the locale
> for the 'svn' process is set to 'C'::
> 
>  $ export ZSVN=svn+ssh://svn.zope.org/repos/main
>  $ svn log -r85956 $ZSVN/zope.app.applicationcontrol/trunk
>  r85956 | lgs | 2008-05-01 03:37:07 -0400 (Thu, 01 May 2008) | 1 line
> 
>  Add a test and a fix for bug 177733, that was causing ZopeVersion to
>  report an unknown version when running on a machine with a locale
>  different than english
>  $ svn diff -c 85956 $ZSVN/zope.app.applicationcontrol/trunk
>  ...(elide add of now-failing test)
>  --- src/zope/app/applicationcontrol/zopeversion.py...85955)
>  +++ src/zope/app/applicationcontrol/zopeversion.py...85956)
>  @@ -63,7 +63,7 @@
>       def _getSVNInfoOutput(self):
>           try:
>               proc = subprocess.Popen('svn info "%s"' % self.path,
>  -                shell=True, stdout=subprocess.PIPE)
>  +                shell=True, stdout=subprocess.PIPE, env={'LANG': 'C'})
>           except OSError:
>               pass
>           else:
> 
> I guess it is not clever enough.  Nevertheless, that test was not
> failing on any buildslave before yesterday's report.

Variables are checked in the following order: LC_ALL, LC_MESSAGES, LANG.
I suggest to override LC_ALL in test suite.

-- 
Arfrever Frehtes Taifersar Arahesis

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)

iQIcBAABCgAGBQJOr20AAAoJEE70JXb4HvNVcBwP/05kC4sxGYCftaQgA2Fr2rqp
Ql0hRYTB03hPix5U5fxjtmlUBU/Ro8+Rn7dna5PQ7wxDLy658yvP6kqD0q8QVf/3
NJFOSfJ38Jna3gMPOmuRuTnaQH+DHi2rijCG4R24a6f1myjAglBQq2fQEcCIlxLu
RZA/WR4JtbEnze3GOchJsKqxoElG+UT2TP879/A7CkYX2oaP1YVKRn4Ec2XwdTjL
S8SGGJ/HWTzuw/mFb9x4TKnmyfTWWAIpUAEcbsrhPJ4DChxCs0Xjlb7BiGtUzoqW
izsw2kWp9dy3YuuHZsIOGt37EGlrnvPd0bLZ/SGP2cA9DI9/E1p9VBBnjNX8MfjA
RtpNdD2NuXDmcDyZrN3IEZzTtx2z3OJZbkc5DbhdAMGeKkXEy/F6hQoOidvjDFa2
YEGsUn3gTaDWi/0nMKWpCzV/Bi/CVASiAHGBDEjkFdSUHJZzjEHmISs/binLhJFY
w1ErRtSQYx2Pq1NBVj4jLkfqqzAs+DQOBuJjIJDuaBA/Ep9Fr8PdjeW3ToCRMXq/
xGNF8OD0psf4e0FwoC3tLgQOlCQ7uIHVp8s9g00BhzfxFTqZ7XDoKQd0xrELoSRQ
KPiYdoSnU+nZ76pbieN1wfh4wkglrb9eZvvO92To9TeyPoERbezQ9A5Q3yi/euRX
DUckGSoi+3cMpAVWefWd
=r8Jk
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.