[Python-checkins] python/dist/src/Lib/test test_unicode.py, 1.84,
1.84.8.1
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Tue Aug 5 00:20:25 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv5231/Lib/test
Modified Files:
Tag: release23-maint
test_unicode.py
Log Message:
Support trailing dots in DNS names. Fixes #782510.
Index: test_unicode.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unicode.py,v
retrieving revision 1.84
retrieving revision 1.84.8.1
diff -C2 -d -r1.84 -r1.84.8.1
*** test_unicode.py 18 May 2003 12:31:08 -0000 1.84
--- test_unicode.py 5 Aug 2003 06:20:23 -0000 1.84.8.1
***************
*** 525,528 ****
--- 525,532 ----
# UTF8_ERROR cases in PyUnicode_DecodeUTF8
+ def test_codecs_idna(self):
+ # Test whether trailing dot is preserved
+ self.assertEqual(u"www.python.org.".encode("idna"), "www.python.org.")
+
def test_codecs_errors(self):
# Error handling (encoding)
More information about the Python-checkins
mailing list