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
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