Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37851119
en ru br
ALT Linux repositórios
S:5.0.1-alt1

Group :: Development/Python3
RPM: python3-module-zope.tal

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: zope.tal-4.2.0-alt-fix-test-for-unicode-for-python3.patch
Download


From b44ba60272ea152aa5ce887ce91a15fd7f6f4587 Mon Sep 17 00:00:00 2001
From: "Eugeny A. Rostovtsev (REAL) real at altlinux.org" <real@altlinux.org>
Date: Fri, 28 Aug 2015 16:36:49 +0700
Subject: [PATCH] Fix test for unicode for Python 3
---
 src/zope/tal/tests/test_talinterpreter.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/zope/tal/tests/test_talinterpreter.py b/src/zope/tal/tests/test_talinterpreter.py
index 0e54f24..3e79128 100644
--- a/src/zope/tal/tests/test_talinterpreter.py
+++ b/src/zope/tal/tests/test_talinterpreter.py
@@ -496,9 +496,9 @@ class _I18NCornerTestCaseBase(TestCaseBase):
             # Make sure that non-ASCII Unicode is substituted correctly.
             # http://collector.zope.org/Zope3-dev/264
             program, macros = self._compile(
-                r'''<div i18n:translate='' tal:define='bar python:u"\u00C0"'>'''
+                r'''<div i18n:translate='' tal:define='bar python:u"À"'>'''
                 r'''Foo <span tal:replace='bar' i18n:name='bar' /></div>''')
-            self._check(program, _u("<div>FOO \u00C0</div>"))
+            self._check(program, _u("<div>FOO À</div>"))
 
 class I18NCornerTestCaseMessage(_I18NCornerTestCaseBase):
 
-- 
2.10.3
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009