[Python-checkins] python/nondist/sandbox/csv/test test_csv.py,1.15,1.16
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Tue, 04 Feb 2003 18:22:12 -0800
Update of /cvsroot/python/python/nondist/sandbox/csv/test
In directory sc8-pr-cvs1:/tmp/cvs-serv7157
Modified Files:
test_csv.py
Log Message:
add a test for incomplete dialects
Index: test_csv.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/csv/test/test_csv.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** test_csv.py 4 Feb 2003 22:10:54 -0000 1.15
--- test_csv.py 5 Feb 2003 02:22:10 -0000 1.16
***************
*** 215,218 ****
--- 215,223 ----
"myexceltsv", myexceltsv)
+ def test_incomplete_dialect(self):
+ class myexceltsv(csv.Dialect):
+ delimiter = "\t"
+ self.assertRaises(csv.Error, myexceltsv)
+
def test_dialect_class(self):
class myexceltsv(csv.excel):