Permalink
Browse files

Added some regression test

  • Loading branch information...
1 parent 75150bb commit c90e5ef2fb4bc847c82adab5fbe18b9d5c02ba03 @jonashaag committed Dec 7, 2010
Showing with 26 additions and 0 deletions.
  1. +26 −0 tests/test_exc_info_reference.py
@@ -0,0 +1,26 @@
+alist = []
+
+def app(env, start_response):
+ print 'foo!'
+ print type(start_response)
+ print dir(start_response)
+ c = start_response.__class__
+ try:
+ c()
+ except:
+ import traceback; traceback.print_exc()
+ try:
+ class x(c): pass
+ except:
+ import traceback; traceback.print_exc()
+ start_response('200 alright', [])
+ try:
+ a
+ except:
+ import sys
+ x = sys.exc_info()
+ start_response('500 error', alist, x)
+ return ['hello']
+
+import bjoern
+bjoern.run(app, '0.0.0.0', 8080)

0 comments on commit c90e5ef

Please sign in to comment.