summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-03-19 21:05:38 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-03-19 21:05:38 +0000
commita5d214d0ef779795fb19cccf6aa126705b800068 (patch)
treec265dfc00e59f48550813cf92dc80c57f15bf82f
parentdb95f2582440ae100e8f6da26606285d5b74bdee (diff)
downloaddocutils-a5d214d0ef779795fb19cccf6aa126705b800068.tar.gz
generalized test for 64-bit platforms
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@4440 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rwxr-xr-xdocutils/test/test_parsers/test_rst/test_directives/test_tables.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/docutils/test/test_parsers/test_rst/test_directives/test_tables.py b/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
index da88510e7..f9def9d4a 100755
--- a/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
+++ b/docutils/test/test_parsers/test_rst/test_directives/test_tables.py
@@ -29,6 +29,13 @@ utf_16_csv = os.path.join(mydir, 'utf-16.csv')
utf_16_csv_rel = DocutilsTestSupport.utils.relative_path(None, utf_16_csv)
empty_txt = os.path.join(mydir, 'empty.txt')
+unichr_exception = DocutilsTestSupport.exception_data(
+ 'unichr(int("9999999999999", 16))')[0]
+if isinstance(unichr_exception, OverflowError):
+ unichr_exception_string = 'code too large (%s)' % unichr_exception
+else:
+ unichr_exception_string = str(unichr_exception)
+
totest = {}
totest['table'] = [
@@ -678,11 +685,11 @@ u"""\
<paragraph>
Error in "csv-table" directive:
invalid option value: (option: "delim"; value: 'U+9999999999999')
- code too large (long int too large to convert to int).
+ %s.
<literal_block xml:space="preserve">
.. csv-table:: bad delimiter
:delim: U+9999999999999
-"""],
+""" % unichr_exception_string],
["""\
.. csv-table:: bad CSV data