Fix tests so they pass in -R mode

This commit is contained in:
Neal Norwitz 2006-04-09 08:36:46 +00:00
parent aa34b6c2e3
commit ce4a9c9019
3 changed files with 18 additions and 7 deletions

View file

@ -152,6 +152,10 @@ class TestSFpatches(unittest.TestCase):
difflib.SequenceMatcher(None, old, new).get_opcodes()
Doctests = doctest.DocTestSuite(difflib)
def test_main():
difflib.HtmlDiff._default_prefix = 0
Doctests = doctest.DocTestSuite(difflib)
run_unittest(TestSFpatches, TestSFbugs, Doctests)
run_unittest(TestSFpatches, TestSFbugs, Doctests)
if __name__ == '__main__':
test_main()