# HG changeset patch # User Yuya Nishihara # Date 1506515928 -32400 # Node ID e416819d9ebb7f5147ec254a6a3217d6a800e028 # Parent 1baa077214aeae716c813b31d46b91617ef85dfb doctest: drop hack to run py2/3 tests selectively All doctests pass on Python 3. diff -r 1baa077214ae -r e416819d9ebb 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: