[Python-checkins] CVS: python/dist/src/Lib/test test_exceptions.py,1.7,1.8
Fred L. Drake
python-dev@python.org
Tue, 11 Jul 2000 10:53:03 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv7915/Lib/test
Modified Files:
test_exceptions.py
Log Message:
Create two new exceptions: IndentationError and TabError. These are
used for indentation related errors. This patch includes Ping's
improvements for indentation-related error messages.
Closes SourceForge patches #100734 and #100856.
Index: test_exceptions.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_exceptions.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** test_exceptions.py 2000/06/20 18:52:57 1.7
--- test_exceptions.py 2000/07/11 17:52:59 1.8
***************
*** 87,90 ****
--- 87,98 ----
except SyntaxError: pass
+ r(IndentationError)
+
+ r(TabError)
+ # can only be tested under -tt, and is the only test for -tt
+ #try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", '<string>', 'exec')
+ #except TabError: pass
+ #else: raise TestFailed
+
r(SystemError)
print '(hard to reproduce)'