From: Michael Orlitzky Date: Tue, 1 Nov 2016 22:45:58 +0000 (-0400) Subject: Enable doctest ELLIPSIS in a few modules. X-Git-Tag: 0.1.0~84 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=cb34e104961ce1da242017a0e5ebf60c3fe18a1d;p=dunshire.git Enable doctest ELLIPSIS in a few modules. --- diff --git a/dunshire/matrices.py b/dunshire/matrices.py index 29c5867..94f841d 100644 --- a/dunshire/matrices.py +++ b/dunshire/matrices.py @@ -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 diff --git a/test/__init__.py b/test/__init__.py index ec1bed0..2188fa6 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -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)