[pypy-commit] pypy py3.3: add _csv test_quotechar
numerodix
noreply at buildbot.pypy.org
Sun Jul 27 10:25:55 CEST 2014
Author: Martin Matusiak <numerodix at gmail.com>
Branch: py3.3
Changeset: r72551:d43ba084a258
Date: 2014-07-27 10:20 +0200
http://bitbucket.org/pypy/pypy/changeset/d43ba084a258/
Log: add _csv test_quotechar
diff --git a/pypy/module/_csv/test/test_dialect.py b/pypy/module/_csv/test/test_dialect.py
--- a/pypy/module/_csv/test/test_dialect.py
+++ b/pypy/module/_csv/test/test_dialect.py
@@ -80,6 +80,12 @@
_csv.register_dialect('foo1', strict=_csv) # :-/
assert _csv.get_dialect('foo1').strict == True
+ def test_quotechar(self):
+ import _csv
+
+ exc_info = raises(TypeError, _csv.register_dialect, 'foo1', quotechar=4)
+ assert exc_info.value.args[0] == '"quotechar" must be string, not int'
+
def test_delimiter(self):
import _csv
More information about the pypy-commit
mailing list