changeset 34424:e416819d9ebb

doctest: drop hack to run py2/3 tests selectively All doctests pass on Python 3.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 27 Sep 2017 21:38:48 +0900
parents 1baa077214ae
children 12bfecd0ffe6
files tests/test-doctest.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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: