summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_difflib.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_difflib.py b/Lib/test/test_difflib.py
index e33539a..3879967 100644
--- a/Lib/test/test_difflib.py
+++ b/Lib/test/test_difflib.py
@@ -1,6 +1,7 @@
import difflib
from test import test_support
import unittest
+import doctest
class TestSFbugs(unittest.TestCase):
@@ -11,5 +12,7 @@ class TestSFbugs(unittest.TestCase):
self.assertEqual(s.quick_ratio(), 1)
self.assertEqual(s.real_quick_ratio(), 1)
-test_support.run_unittest(TestSFbugs)
-test_support.run_doctest(difflib)
+Doctests = doctest.DocTestSuite(difflib)
+
+test_support.run_unittest(TestSFbugs, Doctests)
+