From cb34e104961ce1da242017a0e5ebf60c3fe18a1d Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 1 Nov 2016 18:45:58 -0400 Subject: [PATCH] Enable doctest ELLIPSIS in a few modules. --- dunshire/matrices.py | 4 ---- test/__init__.py | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) 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) -- 2.44.2