mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Fix tests so they pass in -R mode
This commit is contained in:
parent
aa34b6c2e3
commit
ce4a9c9019
3 changed files with 18 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue