Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2005-03-27 17:12:39 +0200 (Sun, 27 Mar 2005)
New Revision: 3139
test that BOMs aren't removed when input data is Unicode
--- trunk/docutils/test/test_io.py 2005-03-27 15:05:34 UTC (rev 3138)
+++ trunk/docutils/test/test_io.py 2005-03-27 15:12:39 UTC (rev 3139)
@@ -21,6 +21,10 @@
# Assert BOMs are gone.
self.assertEquals(input.read(), u' foo bar')
+ # With unicode input:
+ input = io.StringInput(source=u'\ufeff foo \ufeff bar')
+ # Assert BOMs are still there.
+ self.assertEquals(input.read(), u'\ufeff foo \ufeff bar')
if __name__ == '__main__':
Sign up for the SourceForge newsletter: