[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py work around bug in Python 2.4.1 that generates spurious syntax errors when a

Benji York benji at zope.com
Mon Sep 5 10:37:39 EDT 2005


Log message for revision 38301:
  work around bug in Python 2.4.1 that generates spurious syntax errors when a
  source encoding is specified see http://python.org/sf/1163244
  

Changed:
  U   Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py	2005-09-05 03:19:55 UTC (rev 38300)
+++ Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py	2005-09-05 14:37:38 UTC (rev 38301)
@@ -1,5 +1,3 @@
-# -*- coding: iso-8859-15 -*-
-
 ##############################################################################
 #
 # Copyright (c) 2001, 2002, 2004, 2005 Zope Corporation and Contributors.
@@ -247,8 +245,8 @@
     # It uses the default DisplayWidget
     def testRender(self):
         value = u"""
-        texttexttexttexttexttextexttexttexttexttextéééééééééééééééé
-        texttexttexttexttextteéééééxttexttexttexttexttexttexttextte
+        texttexttexttexttexttextexttexttext\xE9\xE9\xE9\xE9\xE9\xE9\xE9\xE9\xE9
+        texttexttexttexttextte\xE9\xE9\xE9\xE9\xE9xttexttexttexttexttexttexttex
         texttexttexttexttexttexttexttexttexttexttexttexttexttexttext
         """
         self._widget.setRenderedValue(value)



More information about the Zope3-Checkins mailing list