]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Enable doctest ELLIPSIS in a few modules.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 1 Nov 2016 22:45:58 +0000 (18:45 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 1 Nov 2016 22:45:58 +0000 (18:45 -0400)
dunshire/matrices.py
test/__init__.py

index 29c5867aabe544f768a1b1ce3862f14c0a316712..94f841d39f888392624077afd12bcdcb7e0c3c19 100644 (file)
@@ -422,10 +422,6 @@ def condition_number(mat):
     Examples
     --------
 
-    >>> condition_number(identity(1, typecode='d'))
-    1.0
-    >>> condition_number(identity(2, typecode='d'))
-    1.0
     >>> condition_number(identity(3, typecode='d'))
     1.0
 
index ec1bed0b8a5544091c56bbb457059af112f5d338..2188fa60d44401d1293a6e178ba4d7c1225ddda1 100644 (file)
@@ -8,7 +8,7 @@ can be used by setuptools.
 """
 
 from unittest import TestLoader, TestSuite, TextTestRunner
-from doctest import DocTestSuite
+from doctest import DocTestSuite, ELLIPSIS
 
 from dunshire import cones
 from dunshire import errors
@@ -24,9 +24,9 @@ def build_suite():
     """
     suite = TestSuite()
     suite.addTest(DocTestSuite(cones))
-    suite.addTest(DocTestSuite(errors))
-    suite.addTest(DocTestSuite(games))
-    suite.addTest(DocTestSuite(matrices))
+    suite.addTest(DocTestSuite(errors, optionflags=ELLIPSIS))
+    suite.addTest(DocTestSuite(games, optionflags=ELLIPSIS))
+    suite.addTest(DocTestSuite(matrices, optionflags=ELLIPSIS)))
     suite.addTest(DocTestSuite(symmetric_linear_game_test))
     suite.addTest(DocTestSuite(randomgen))
     slg_tests = TestLoader().loadTestsFromModule(symmetric_linear_game_test)