|
From: <gr...@us...> - 2021-11-27 21:16:44
|
Revision: 8910
http://sourceforge.net/p/docutils/code/8910
Author: grubert
Date: 2021-11-27 21:16:41 +0000 (Sat, 27 Nov 2021)
Log Message:
-----------
Change test/test_parsers/test_rst/test_directives/test_tables.py for python 3.11.0a2 csv modules supports null character.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-11-27 16:28:38 UTC (rev 8909)
+++ trunk/docutils/HISTORY.txt 2021-11-27 21:16:41 UTC (rev 8910)
@@ -14,8 +14,14 @@
Changes Since 0.18.1
====================
-.
+* test/DocutilsTestSupport.py
+ - Function exception_data returns None if no exception was raised.
+
+* test/test_parsers/test_rst/test_directives/test_tables.py
+
+ - Change for python 3.11.0a2 csv modules supports null character.
+
Release 0.18.1
==============
Modified: trunk/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
===================================================================
--- trunk/docutils/test/test_parsers/test_rst/test_directives/test_tables.py 2021-11-27 16:28:38 UTC (rev 8909)
+++ trunk/docutils/test/test_parsers/test_rst/test_directives/test_tables.py 2021-11-27 21:16:41 UTC (rev 8910)
@@ -69,60 +69,73 @@
if null_bytes_exception is None:
bad_encoding_result = """\
<document source="test data">
-<document source="test data">
<table>
<title>
- good encoding
- <tgroup cols="3">
- <colspec colwidth="33">
- <colspec colwidth="33">
- <colspec colwidth="33">
- <thead>
+ bad encoding
+ <tgroup cols="4">
+ <colspec colwidth="25">
+ <colspec colwidth="25">
+ <colspec colwidth="25">
+ <colspec colwidth="25">
+ <tbody>
<row>
<entry>
<paragraph>
- Treat
+ \xfe\xff"Treat"
<entry>
<paragraph>
- Quantity
+ "Quantity"
<entry>
<paragraph>
- Description
- <tbody>
+ "Description"
+ <entry>
<row>
<entry>
<paragraph>
- Albatr\u00b0\u00df
+ "Albatr\u00b0\u00df"
<entry>
<paragraph>
2.99
<entry>
<paragraph>
- \u00a1On a \u03c3\u03c4\u03b9\u03ba!
+ "\u00a1Ona\x03\xc3\x03\xc4\x03\xb9\x03\xba!"
+ <entry>
<row>
<entry>
<paragraph>
- Crunchy Frog
+ "CrunchyFrog"
<entry>
<paragraph>
1.49
<entry>
<paragraph>
- If we took the b\u00f6nes out, it wouldn\u2019t be
- crunchy, now would it?
+ "Ifwetooktheb\u00f6nesout
+ <entry>
+ <paragraph>
+ itwouldn\x20\x19tbe
<row>
<entry>
<paragraph>
- Gannet Ripple
+ crunchy
<entry>
<paragraph>
+ nowwouldit?"
+ <entry>
+ <entry>
+ <row>
+ <entry>
+ <paragraph>
+ "GannetRipple"
+ <entry>
+ <paragraph>
1.99
<entry>
<paragraph>
- \u00bfOn a \u03c3\u03c4\u03b9\u03ba?
+ "\xbfOna\x03\xc3\x03\xc4\x03\xb9\x03\xba?"
+ <entry>
<paragraph>
(7- and 8-bit text encoded as UTF-16 has lots of null/zero bytes.)
-""" % (null_bytes_exception, utf_16_csv)
+"""
else:
bad_encoding_result = """\
<document source="test data">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|