##// END OF EJS Templates
doctest: drop hack to run py2/3 tests selectively...
Yuya Nishihara -
r34425:e416819d default
parent child Browse files
Show More
@@ -24,10 +24,7 b' class py3docchecker(doctest.OutputChecke'
24 return any(doctest.OutputChecker.check_output(self, w, g, optionflags)
24 return any(doctest.OutputChecker.check_output(self, w, g, optionflags)
25 for w, g in [(want, got), (want2, got2)])
25 for w, g in [(want, got), (want2, got2)])
26
26
27 # TODO: migrate doctests to py3 and enable them on both versions
27 def testmod(name, optionflags=0, testtarget=None):
28 def testmod(name, optionflags=0, testtarget=None, py2=True, py3=True):
29 if not (not ispy3 and py2 or ispy3 and py3):
30 return
31 __import__(name)
28 __import__(name)
32 mod = sys.modules[name]
29 mod = sys.modules[name]
33 if testtarget is not None:
30 if testtarget is not None:
General Comments 0
You need to be logged in to leave comments. Login now