doctest: drop hack to run py2/3 tests selectively
All doctests pass on Python 3.
--- 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: