##// END OF EJS Templates
drop testing on LPy
Matthias Bussonnier -
Show More
@@ -229,6 +229,7 b' except Exception:'
229 #----------------------------------------------------------------------------
229 #----------------------------------------------------------------------------
230
230
231 # module testing (minimal)
231 # module testing (minimal)
232 if sys.version_info > (3,):
232 def test_handlers():
233 def test_handlers():
233 def spam(c, d_e):
234 def spam(c, d_e):
234 (d, e) = d_e
235 (d, e) = d_e
@@ -246,26 +247,26 b' def test_handlers():'
246
247
247 buff = io.StringIO()
248 buff = io.StringIO()
248
249
249 buff.write(u'')
250 buff.write('')
250 buff.write(u'*** Before ***')
251 buff.write('*** Before ***')
251 try:
252 try:
252 buff.write(spam(1, (2, 3)))
253 buff.write(spam(1, (2, 3)))
253 except:
254 except:
254 traceback.print_exc(file=buff)
255 traceback.print_exc(file=buff)
255
256
256 handler = ColorTB(ostream=buff)
257 handler = ColorTB(ostream=buff)
257 buff.write(u'*** ColorTB ***')
258 buff.write('*** ColorTB ***')
258 try:
259 try:
259 buff.write(spam(1, (2, 3)))
260 buff.write(spam(1, (2, 3)))
260 except:
261 except:
261 handler(*sys.exc_info())
262 handler(*sys.exc_info())
262 buff.write(u'')
263 buff.write('')
263
264
264 handler = VerboseTB(ostream=buff)
265 handler = VerboseTB(ostream=buff)
265 buff.write(u'*** VerboseTB ***')
266 buff.write('*** VerboseTB ***')
266 try:
267 try:
267 buff.write(spam(1, (2, 3)))
268 buff.write(spam(1, (2, 3)))
268 except:
269 except:
269 handler(*sys.exc_info())
270 handler(*sys.exc_info())
270 buff.write(u'')
271 buff.write('')
271
272
General Comments 0
You need to be logged in to leave comments. Login now