--- a/examples/web_framework/wsgi_app.py
+++ b/examples/web_framework/wsgi_app.py
@@ -160,9 +160,3 @@
     start_response(status, headers)
     return document
 
-def test():
-    import doctest
-    sys.exit(doctest.testmod()[0])
-
-if __name__ == "__main__":
-    test()