Tino de Bruijn  committed cb5d071

added doctest running of to testsuite

  • Participants
  • Parent commits e06687c

Comments (0)

Files changed (1)

 import unittest
+import doctest
 import serial
 import pyfirmata
 from pyfirmata import mockup
     if not options.mockup:
         print "Running normal suite. Also consider running the mockup (-m, --mockup) suite"
+        from pyfirmata import util
+        print "Running doctests for pyfirmata.util. (No output = No errors)"
+        doctest.testmod(util)
+        print "Done running doctests"
     if options.mockup:
         print "Running the mockup test suite"