File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -698,14 +698,6 @@ def test_check_all(self):
698
698
'missing name "%s" in __all__' % name )
699
699
700
700
701
- class DocTests (unittest .TestCase ):
702
- @unittest .skipIf (sys .flags .optimize >= 2 ,
703
- "Docstrings are omitted with -OO and above" )
704
- def test_doc_tests (self ):
705
- failed , tried = doctest .testmod (statistics , optionflags = doctest .ELLIPSIS )
706
- self .assertGreater (tried , 0 )
707
- self .assertEqual (failed , 0 )
708
-
709
701
class StatisticsErrorTest (unittest .TestCase ):
710
702
def test_has_exception (self ):
711
703
errmsg = (
@@ -3145,6 +3137,7 @@ def tearDown(self):
3145
3137
def load_tests (loader , tests , ignore ):
3146
3138
"""Used for doctest/unittest integration."""
3147
3139
tests .addTests (doctest .DocTestSuite ())
3140
+ tests .addTests (doctest .DocTestSuite (statistics ))
3148
3141
return tests
3149
3142
3150
3143
You can’t perform that action at this time.
0 commit comments