summaryrefslogtreecommitdiff
path: root/Lib/test/test_difflib.py
AgeCommit message (Collapse)AuthorLines
2006-04-09Fix tests so they pass in -R modeNeal Norwitz-2/+6
2006-01-31Patch #1413711: Certain patterns of differences were making difflibGustavo Niemeyer-0/+9
touch the recursion limit. The applied patch inlines the recursive __helper method in a non-recursive way.
2004-08-29Whitespace normalization. test_difflib passes again.Tim Peters-16/+16
2004-08-29Reverting whitespace normalization. test_difflib fails with it -- theTim Peters-16/+16
test depends on invisible trailing whitespace in .py files. The author will have to repair that.
2004-08-29Whitespace normalization.Tim Peters-16/+16
2004-08-29Patch #914575: difflib side by side diff support, diff.py s/b/s HTML option.Martin v. Löwis-2/+126
2004-07-10SequenceMatcher(None, [], []).get_grouped_opcodes() now returns a generatorBrett Cannon-0/+7
that behaves as if both lists has an empty string in each of them. Closes bug #979794 (and duplicate bug #980117).
2004-01-18Whitespace normalization.Tim Peters-1/+0
2003-07-16Exercise Jim Fulton's new doctest extension for running doctests in aRaymond Hettinger-2/+5
unittest environment. Since his extension finds docstrings in private functions, it exposed a bug in the difflib doctests.
2003-07-01Fix SF bug #763023, difflib.py: ratio() zero division not caughtNeal Norwitz-0/+12
Backport candidate
2002-07-23Get rid of relative imports in all unittests. Now anything thatBarry Warsaw-1/+2
imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
2001-09-09Teach regrtest how to pass on doctest failure msgs. This is done via aTim Peters-3/+2
horridly inefficient hack in regrtest's Compare class, but it's about as clean as can be: regrtest has to set up the Compare instance before importing a test module, and by the time the module *is* imported it's too late to change that decision. The good news is that the more tests we convert to unittest and doctest, the less the inefficiency here matters. Even now there are few tests with large expected-output files (the new cost here is a Python-level call per .write() when there's an expected- output file).
2001-05-23Remove test_doctest's expected-output file.Tim Peters-1/+2
Change test_doctest and test_difflib to pass regrtest's notion of verbosity on to doctest. Add explanation for a dozen "new" things to test/README.
2001-05-23Remove test_difflib's output file and change test_difflib to stopTim Peters-1/+1
generating it. Since this is purely a doctest, the output file never served a good purpose.
2001-02-10Moved SequenceMatcher from ndiff into new std library module difflib.py.Tim Peters-0/+2
Guido told me to do this <wink>. Greatly expanded docstrings, and fleshed out with examples. New std test. Added new get_close_matches() function for ESR. Needs docs, but LaTeXification of the module docstring is all it needs. \CVS: ----------------------------------------------------------------------