[from now] 2013/10/01 13:40:32

diff --git a/.travis.yml b/.travis.yml
index a94f924..138c2ac 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
 language: python
 python:
   - "2.7"
-script: test/test.py
+# Prevent traceback printing for doctest to correctly run.
+script: test/test.py 2>/dev/null
diff --git a/test/test.py b/test/test.py
index 80846d8..b4bdeb5 100755
--- a/test/test.py
+++ b/test/test.py
@@ -8,7 +8,6 @@ Test mail function and custom callback function.
 -----
 type: <type 'exceptions.ZeroDivisionError'>
 value: integer division or modulo by zero
-x
 -----
 """

@@ -31,7 +30,9 @@ def exc_handler_ret():
     """An exception handler that returns something other than None."""
     return 'DIV_BY_ZERO'

-@exception_notifier.mail_exception(callback=exc_handler, both=True)
+# Email sending is not tested since it is impossible to send email on Travis
+# server.
+@exception_notifier.mail_exception(callback=exc_handler)
 def f(x, y):
     return x / y