##// END OF EJS Templates
tests: unconditionalize _unified_diff...
Gregory Szorc -
r49714:f928dec9 default
parent child Browse files
Show More
@@ -52,6 +52,7 b' import contextlib'
52 import difflib
52 import difflib
53 import distutils.version as version
53 import distutils.version as version
54 import errno
54 import errno
55 import functools
55 import json
56 import json
56 import multiprocessing
57 import multiprocessing
57 import os
58 import os
@@ -879,11 +880,7 b' def makecleanable(path):'
879 pass
880 pass
880
881
881
882
882 _unified_diff = difflib.unified_diff
883 _unified_diff = functools.partial(difflib.diff_bytes, difflib.unified_diff)
883 if PYTHON3:
884 import functools
885
886 _unified_diff = functools.partial(difflib.diff_bytes, difflib.unified_diff)
887
884
888
885
889 def getdiff(expected, output, ref, err):
886 def getdiff(expected, output, ref, err):
General Comments 0
You need to be logged in to leave comments. Login now