[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testConvenienceFunctions.py:1.6

Guido van Rossum guido@python.org
Mon, 5 Aug 2002 12:27:03 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv19066

Modified Files:
	testConvenienceFunctions.py 
Log Message:
Replace pound sign with \xa3 to avoid warnings about non-ASCII
characters in string literals without specifying an encoding.


=== Zope3/lib/python/Zope/App/Traversing/tests/testConvenienceFunctions.py 1.5 => 1.6 ===
         self.assertRaises(ValueError, lat, ())
         self.assertEqual(lat(('xx',)), (u'xx',))
         self.assertRaises(ValueError, lat, 23)
-        self.assertRaises(UnicodeError, lat, ('', u'123', '£23'))
-        self.assertRaises(UnicodeError, lat, '£23')
+        self.assertRaises(UnicodeError, lat, ('', u'123', '\xa323'))
+        self.assertRaises(UnicodeError, lat, '\xa323')
         self.assertEqual(lat(u'xx/yy/zz'), loc)
         self.assertEqual(lat(u'/xx/yy/zz'), (u'',)+loc)
         self.assertEqual(lat('xx/yy/zz'), loc)
@@ -226,8 +226,8 @@
         self.assertRaises(ValueError, lau, ())
         self.assertEqual(lau(('xx',)), u'xx')
         self.assertRaises(ValueError, lau, 23)
-        self.assertRaises(UnicodeError, lau, ('', u'123', '£23'))
-        self.assertRaises(UnicodeError, lau, '£23')
+        self.assertRaises(UnicodeError, lau, ('', u'123', '\xa323'))
+        self.assertRaises(UnicodeError, lau, '\xa323')
         self.assertEqual(lau(u'xx/yy/zz'), loc)
         self.assertEqual(lau(u'/xx/yy/zz'), u'/'+loc)
         self.assertEqual(lau('xx/yy/zz'), loc)