summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* #1486713: Add a tolerant mode to HTMLParser.R. David Murray2010-12-032-22/+125
| | | | | | | | | | | | The motivation for adding this option is that the the functionality it provides used to be provided by sgmllib in Python2, and was used by, for example, BeautifulSoup. Without this option, the Python3 version of BeautifulSoup and the many programs that use it are crippled. The original patch was by 'kxroberto'. I modified it heavily but kept his heuristics and test. I also added additional heuristics to fix #975556, #1046092, and part of #6191. This patch should be completely backward compatible: the behavior with the default strict=True is unchanged.
* Fix #10554. Added context manager support to Popen objects.Brian Curtin2010-12-032-1/+53
| | | | | | Added a few common Popen uses to the tests like we've done for a few other instances of adding context managers. Eventually the entire test suite could be converted to use the context manager format.
* Update the itertools.accumulate() docs.Raymond Hettinger2010-12-031-0/+1
|
* Remove test/__main__.py until runpy tests can be fixedMichael Foord2010-12-031-40/+0
|
* Simplify the signature for itertools.accumulate() to match numpy. Handle ↵Raymond Hettinger2010-12-031-8/+8
| | | | one item iterable the same way as min()/max().
* Set test.regrtest.TEMPDIR correctly when run with 'python -m test'Michael Foord2010-12-031-2/+4
|
* Initial implementation of Lib/test/__main__.py so we can run tests with ↵Michael Foord2010-12-031-0/+38
| | | | 'python -m test'
* Issue 7911: unittest.TestCase.longMessage defaults to True for improved ↵Michael Foord2010-12-032-2/+2
| | | | failure messages by default
* Fix wrong test code in test_csv (#10602)Éric Araujo2010-12-021-12/+7
|
* #8989: add 'domain' keyword to make_msgid.R. David Murray2010-12-022-4/+11
| | | | Patch by Adrian von Bidder.
* Fix #9333. Expose os.symlink on Windows only when usable.Brian Curtin2010-12-029-70/+59
| | | | | | | | | | | | | | | | In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege is an account privilege that is required to be held by the user. Not only must the privilege be enabled for the account, the activated privileges for the currently running application must be adjusted to enable the requested privilege. Rather than exposing an additional function to be called prior to the user's first os.symlink call, we handle the AdjustTokenPrivileges Windows API call internally and only expose os.symlink when the privilege escalation was successful. Due to the change of only exposing os.symlink when it's available, we can go back to the original test skipping methods of checking via `hasattr`.
* #7475: add (un)transform method to bytes/bytearray and str, add back codecs ↵Georg Brandl2010-12-0211-28/+630
| | | | that can be used with them from Python 2.
* Fix spelling of Jamie Zawinski's surname in urllib.parse docstring (issue 10606)David Malcolm2010-12-021-1/+1
|
* Issue 9299 Add exist_ok parameter to os.makedirs to suppress 'File exists' ↵Terry Reedy2010-12-022-6/+42
| | | | exception. Patch by Ray Allen.
* Issue #9573: os.fork now works when triggered as a side effect of import ↵Nick Coghlan2010-12-021-3/+43
| | | | (the wisdom of actually relying on this remains questionable!)
* #10464: fix netrc handling of lines with embedded '#" characters.R. David Murray2010-12-022-6/+20
| | | | Patch by Xuanji Li.
* Issue4335: Added a test for inspect.getsourcelines with a module without EOL ↵Alexander Belopolsky2010-12-021-8/+29
| | | | at EOF.
* Add itertools.accumulate().Raymond Hettinger2010-12-011-0/+35
|
* Reverted unintended change from r86916Alexander Belopolsky2010-12-011-7/+0
|
* Issue #4113: Added custom __repr__ method to functools.partial.Alexander Belopolsky2010-12-012-0/+36
|
* Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.Raymond Hettinger2010-12-012-19/+55
|
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-0119-154/+160
| | | | assertRaisesRegex.
* Fix test failure in debug builds and add NEWS entry for r86908Ezio Melotti2010-12-011-3/+3
|
* #10535: Enable silenced warnings in unittest by defaultEzio Melotti2010-12-016-18/+203
|
* Doc and docstring nits.Raymond Hettinger2010-12-011-2/+2
|
* Fix #10591. Fix test_os for refleak runs.Brian Curtin2010-11-301-2/+1
| | | | Split a common setUp/tearDown into the appropriate parts.
* Add link to specification.Raymond Hettinger2010-11-301-0/+1
|
* Add example, tighten text, and minor clean-ups.Raymond Hettinger2010-11-302-10/+10
|
* Actually fix what I attempted to fix in r86888...Brian Curtin2010-11-301-3/+3
|
* Issue 9873: the URL parsing functions now accept ASCII encoded byte ↵Nick Coghlan2010-11-302-76/+422
| | | | sequences in addition to character strings
* Try to fix failures on platforms that can't encode the test characters.Brian Curtin2010-11-301-1/+6
| | | | Skip the test if encoding fails.
* Neaten-up a bit.Raymond Hettinger2010-11-301-7/+6
|
* Issue 10220: switch to using string constants rather than integers for ↵Nick Coghlan2010-11-302-1/+12
| | | | inspect.getgeneratorstate() return values and make debugging friendly str() and repr() for generator states a requirement in the test suite
* Issue 10586: change the new functools.lru_cache implementation to expose the ↵Nick Coghlan2010-11-302-15/+54
| | | | maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.
* Issue #10572: Moved json tests to Lib/test/json_tests.Alexander Belopolsky2010-11-3017-3/+3
| | | | Approved by Raymond Hettinger.
* Issue #10323: Predictable final state for slice().Raymond Hettinger2010-11-301-0/+5
|
* Use booleans where applicable.Georg Brandl2010-11-292-21/+21
|
* Code style cleanup in bdb.Georg Brandl2010-11-291-31/+21
|
* Remove the comment used while testing.Senthil Kumaran2010-11-291-1/+0
|
* Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.Senthil Kumaran2010-11-293-8/+27
| | | | | Handle multiple breakpoints at same line. Update docs/test. Patch by Xavier de Gaye.
* Issue #10565: Iterator ABC should require both __next__ and __iter__.Raymond Hettinger2010-11-292-3/+10
|
* Use assertCountEqual instead of assertItemsEqualEzio Melotti2010-11-292-2/+2
|
* Do not add an obsolete unittest name to Py3.2.Raymond Hettinger2010-11-291-3/+0
|
* Fix for #8879.Brian Curtin2010-11-281-0/+5
| | | | | | | Amaury noticed that this was originally written in a way that would fail on names that can't be encoded with the mbcs codec. Restructured the function to work with wide names first then narrow names second, to fall in line with the way other functions are written in posixmodule.c.
* Issue #10518: Bring back the callable() builtin.Antoine Pitrou2010-11-272-14/+31
| | | | Approved by Guido (BDFL) and Georg (RM).
* Issue 10242: unittest.assertItemsEqual makes too many assumptions.Raymond Hettinger2010-11-273-32/+44
|
* Replace _nbits() with int.bit_length().Raymond Hettinger2010-11-271-17/+1
|
* Fixed deprecation warnings.Alexander Belopolsky2010-11-261-2/+2
|
* Modernize code in effective().Georg Brandl2010-11-261-21/+15
|
* #10453 follow-up: Fix test_quiet on Windows, thanks to Stephan Krah.Éric Araujo2010-11-261-6/+8
|