diff options
| author | Claude Paroz <claude@2xlibre.net> | 2020-06-15 07:42:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-15 08:42:51 +0300 |
| commit | ce79e44d14f151e37316144f66dedb2ace2f37dc (patch) | |
| tree | 5910a5d79adc3be4c787088c8ad040a01a1f3f0f /tests/test_tablib.py | |
| parent | 985c3d98b02b8bdb24f4a52a215eb4200912cfb6 (diff) | |
| download | tablib-ce79e44d14f151e37316144f66dedb2ace2f37dc.tar.gz | |
Fixes #469 - Prevented rst crash with only-space strings (#470)
Thanks nexone for the report.
Diffstat (limited to 'tests/test_tablib.py')
| -rwxr-xr-x | tests/test_tablib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_tablib.py b/tests/test_tablib.py index 3efc87f..f4c0109 100755 --- a/tests/test_tablib.py +++ b/tests/test_tablib.py @@ -659,6 +659,7 @@ class RSTTests(BaseTestCase): data.headers = self.headers data.append(self.john) data.append(('Wendy', '', 43)) + data.append(('Esther', ' ', 31)) self.assertEqual( data.export('rst'), '========== ========= ===\n' @@ -666,6 +667,7 @@ class RSTTests(BaseTestCase): '========== ========= ===\n' 'John Adams 90 \n' 'Wendy 43 \n' + 'Esther 31 \n' '========== ========= ===' ) |
