On Sun, Nov 23, 2008 at 9:04 AM, <arfrever_at_tigris.org> wrote:
> Author: arfrever
> Date: Sun Nov 23 08:04:26 2008
> New Revision: 34359
>
> Log:
> * subversion/bindings/swig/python/tests/trac/test.py: Fix encoding. Wrong
> encoding was causing traceback during running Python-3 version of 2to3.
>
> Modified:
> trunk/subversion/bindings/swig/python/tests/trac/test.py
>
> Modified: trunk/subversion/bindings/swig/python/tests/trac/test.py
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/bindings/swig/python/tests/trac/test.py?pathrev=34359&r1=34358&r2=34359
> ==============================================================================
> --- trunk/subversion/bindings/swig/python/tests/trac/test.py Sun Nov 23 07:47:42 2008 (r34358)
> +++ trunk/subversion/bindings/swig/python/tests/trac/test.py Sun Nov 23 08:04:26 2008 (r34359)
> @@ -1,8 +1,7 @@
> #!/usr/bin/env python
> -# -*- coding: iso8859-1 -*-
> #
> # Copyright (C) 2003, 2004, 2005 Edgewall Software
> -# Copyright (C) 2003, 2004, 2005 Jonas Borgström <jonas_at_edgewall.com>
> +# Copyright (C) 2003, 2004, 2005 Jonas Borgström <jonas_at_edgewall.com>
> # Copyright (C) 2005 Christopher Lenz <cmlenz_at_gmx.de>
> #
> # This software is licensed as described in the file
> @@ -12,7 +11,7 @@
> # If newer versions of this license are posted there, you may use a
> # newer version instead, at your option.
> #
> -# Author: Jonas Borgström <jonas_at_edgewall.com>
> +# Author: Jonas Borgström <jonas_at_edgewall.com>
> # Christopher Lenz <cmlenz_at_gmx.de>
>
> import unittest
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svn-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: svn-help_at_subversion.tigris.org
>
>
Making this changes make running the tests fail with an error message:
make check-swig-py
cd /Users/jwhitlock/dev/subversion/subversion/bindings/swig/python; \
/usr/bin/python
/Users/jwhitlock/dev/subversion/subversion/bindings/swig/python/tests/run_all.py
Traceback (most recent call last):
File "/Users/jwhitlock/dev/subversion/subversion/bindings/swig/python/tests/run_all.py",
line 2, in <module>
import mergeinfo, core, client, delta, pool, ra, wc, repository, auth, \
File "/Users/jwhitlock/dev/subversion/subversion/bindings/swig/python/tests/mergeinfo.py",
line 11, in <module>
from trac.versioncontrol.tests.svn_fs import REPOS_PATH
File "/Users/jwhitlock/dev/subversion/subversion/bindings/swig/python/tests/trac/versioncontrol/tests/__init__.py",
line 3, in <module>
from trac.versioncontrol.tests import svn_fs
File "/Users/jwhitlock/dev/subversion/subversion/bindings/swig/python/tests/trac/versioncontrol/tests/svn_fs.py",
line 29, in <module>
from trac.test import TestSetup
File "/Users/jwhitlock/dev/subversion/subversion/bindings/swig/python/tests/trac/test.py",
line 4
SyntaxError: Non-ASCII character '\xc3' in file
/Users/jwhitlock/dev/subversion/subversion/bindings/swig/python/tests/trac/test.py
on line 4, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
make: *** [check-swig-py] Error 1
Is there an encoding that supports the characters with an umlat that
will work on Python 2 and 3?
--
Take care,
Jeremy Whitlock
http://www.thoughtspark.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-25 00:59:44 CET