diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-05-12 02:24:14 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-05-12 02:24:14 -0400 |
| commit | bfcfa37ebbf5850b8ba4368ccaac0aa3f4c55f20 (patch) | |
| tree | b95535d33ee6b673eab2855b8cb108cfe869a580 /test_tablib.py | |
| parent | 5c50c1822e0d9f0fa493c064902d48cb092fd831 (diff) | |
| download | tablib-bfcfa37ebbf5850b8ba4368ccaac0aa3f4c55f20.tar.gz | |
Python3 support for csv module.
Refs #7
Diffstat (limited to 'test_tablib.py')
| -rwxr-xr-x | test_tablib.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test_tablib.py b/test_tablib.py index 211c6a7..c7f4754 100755 --- a/test_tablib.py +++ b/test_tablib.py @@ -503,7 +503,13 @@ class TablibTestCase(unittest.TestCase): """Check if unicode in csv export doesn't raise.""" data = tablib.Dataset() - data.append([u'\xfc', u'\xfd']) + + if sys.version_info[0] > 2: + data.append(['\xfc', '\xfd']) + else: + exec("data.append([u'\xfc', u'\xfd'])") + + data.csv |
