doctest: drop hack to run py2/3 tests selectively
authorYuya Nishihara <yuya@tcha.org>
Wed, 27 Sep 2017 21:38:48 +0900
changeset 34424 e416819d9ebb
parent 34423 1baa077214ae
child 34425 12bfecd0ffe6
doctest: drop hack to run py2/3 tests selectively All doctests pass on Python 3.
tests/test-doctest.py
--- a/tests/test-doctest.py	Sun Oct 01 01:02:22 2017 +0200
+++ b/tests/test-doctest.py	Wed Sep 27 21:38:48 2017 +0900
@@ -24,10 +24,7 @@
         return any(doctest.OutputChecker.check_output(self, w, g, optionflags)
                    for w, g in [(want, got), (want2, got2)])
 
-# TODO: migrate doctests to py3 and enable them on both versions
-def testmod(name, optionflags=0, testtarget=None, py2=True, py3=True):
-    if not (not ispy3 and py2 or ispy3 and py3):
-        return
+def testmod(name, optionflags=0, testtarget=None):
     __import__(name)
     mod = sys.modules[name]
     if testtarget is not None: