summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Adds an exit parameter to unittest.main(). If False main no longerMichael Foord2009-05-022-10/+78
| | | | | | | | calls sys.exit. Closes issue 3379. Michael Foord
* Issue #3002: `shutil.copyfile()` and `shutil.copytree()` now raise anAntoine Pitrou2009-05-012-4/+50
| | | | error when a named pipe is encountered, rather than blocking infinitely.
* Adds the ipaddr module to the standard library. Issue #3959.Gregory P. Smith2009-05-012-0/+1932
| | | | | | Based off of subversion r69 from http://code.google.com/p/ipaddr-py/ This code is 2to3 safe, I'll merge it into py3k later this afternoon.
* Make test.test_support.EnvironmentVarGuard behave like a dictionary.Walter Dörwald2009-05-0110-65/+64
| | | | | All changes are mirrored to the underlying os.environ dict, but rolled back on exit from the with block.
* Fix for Issue1648102, based on the MSDN spec: If this parameter specifies theSenthil Kumaran2009-05-011-10/+3
| | | | | "<local>" macro as the only entry, this function bypasses any host name that does not contain a period.
* Issue #1588: Add complex.__format__.Eric Smith2009-04-301-1/+60
|
* prevent ref cycles by removing bound method on close()Benjamin Peterson2009-04-301-0/+2
|
* make sure to close fileBenjamin Peterson2009-04-301-1/+1
|
* make sure mode is removable while cleaning up test droppingsBenjamin Peterson2009-04-291-0/+5
|
* fix test_shutil on ZFS #5676Benjamin Peterson2009-04-291-2/+16
|
* Backport some of the float formatting tests from py3k.Mark Dickinson2009-04-292-0/+375
|
* Issue #5864: format(1234.5, '.4') gives misleading resultMark Dickinson2009-04-291-0/+5
| | | | (Backport of r72109 from py3k.)
* More aifc tests.R. David Murray2009-04-291-7/+53
|
* Now that we've got a test_aifc, add a few tests.R. David Murray2009-04-291-0/+30
|
* Fix issue 2245. aifc now skips any chunk type it doesn't actuallyR. David Murray2009-04-294-8/+24
| | | | | | | process instead of throwing errors for anything not in an explicit skip list. This is per this spec: http://www.cnpbagwell.com/aiff-c.txt. Spec reference and test sound file provided by Santiago Peresón, fix based on patch by Hiroaki Kawai.
* Fixed #5874 : distutils.tests.test_config_cmd is not locale-sensitive anymoreTarek Ziadé2009-04-291-1/+1
|
* Update spec version number.Raymond Hettinger2009-04-271-1/+1
|
* Issue #5853: calling a function of the mimetypes module from several threadsAntoine Pitrou2009-04-271-15/+13
| | | | | at once could hit the recursion limit if the mimetypes database hadn't been initialized before.
* Issue #5854: Updated __all__ to include some missing names and remove some ↵Vinay Sajip2009-04-271-5/+8
| | | | names which should not be exported.
* Right click 'go to file/line' not working if spacesKurt B. Kaiser2009-04-262-25/+13
| | | | in path. Bug 5559.
* Use test.test_support.EnvironmentVarGuard where tests change environment vars.Walter Dörwald2009-04-266-56/+36
|
* Fix typo.Walter Dörwald2009-04-261-1/+1
|
* Update pydoc topics.Georg Brandl2009-04-261-28/+28
|
* Move pydoc_topics module to its own subdirectory, so that no generated code ↵Georg Brandl2009-04-263-5/+5
| | | | is in Lib/.
* Issue #4971: Fix titlecase for characters that are their ownMartin v. Löwis2009-04-261-1/+6
| | | | titlecase, but not their own uppercase.
* Issue #5835, deprecate PyOS_ascii_formatd.Eric Smith2009-04-251-0/+62
| | | | | | If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great. Will port to py3k with a different strategy.
* #5841: add deprecation py3k warning and notice in the docs for commands module.Georg Brandl2009-04-251-4/+4
|
* Issue #5828 (Invalid behavior of unicode.lower): Fixed bogus logic inWalter Dörwald2009-04-251-1/+14
| | | | | makeunicodedata.py and regenerated the Unicode database (This fixes u'\u1d79'.lower() == '\x00').
* #5810: Fixed Distutils test_build_scriptsTarek Ziadé2009-04-251-1/+1
|
* Issue #4951: Fixed failure in test_httpserversTarek Ziadé2009-04-251-2/+5
|
* Issue #5837: Certain sequences of calls to set() and unset() forWalter Dörwald2009-04-251-15/+17
| | | | | | | | support.EnvironmentVarGuard objects restored the environment variables incorrectly on __exit__. Fix this by recording the initial value of each environment variable on the first access in set() or unset().
* Fix typo in complex parsing code; expand tests.Mark Dickinson2009-04-251-3/+19
|
* fix a segfault when setting __class__ in __del__ #5283Benjamin Peterson2009-04-251-0/+10
|
* Issue 5041: ctypes unwilling to allow pickling wide character.Thomas Heller2009-04-241-0/+5
|
* Remove unnecessary double negativeMark Dickinson2009-04-241-1/+1
|
* Issue #5593: Use more robust test for double-rounding in test_fsum.Mark Dickinson2009-04-241-8/+9
| | | | | While we're at it, use new unittest.skipUnless decorator to implement skipping for that test.
* Issue #5812: The two-argument form of the Fraction constructorMark Dickinson2009-04-242-13/+28
| | | | now accepts arbitrary Rational instances.
* Issue #5816:Mark Dickinson2009-04-241-10/+66
| | | | | | | | - simplify parsing and printing of complex numbers - make complex(repr(z)) round-tripping work for complex numbers involving nans, infs, or negative zeros - don't accept some of the stranger complex strings that were previously allowed---e.g., complex('1..1j')
* Produce correct version string to access the .chmKurt B. Kaiser2009-04-234-10/+22
| | | | docs on Windows. Patch 5783 gpolo. Will port.
* Issue #5812: make Fraction('1e-6') valid. Backport of r71806.Mark Dickinson2009-04-222-23/+34
|
* Fixed issue 5782: formatting with commas didn't work if no specifier type ↵Eric Smith2009-04-221-0/+6
| | | | code was given.
* Issue 5354: Change API for import_fresh_module() to better support ↵Nick Coghlan2009-04-223-17/+51
| | | | test_warnings use case (also fixes some bugs in the original implementation)
* Backport of some of the work in r71665 to trunk. This reworks much ofEric Smith2009-04-222-2/+56
| | | | | | | | | | | | | | | | | | | | | int, long, and float __format__(), and it keeps their implementation in sync with py3k. Also added PyOS_double_to_string. This is the "fallback" version that's also available in trunk, and should be kept in sync with that code. I'll add an issue to document PyOS_double_to_string in the C API. There are many internal cleanups. Externally visible changes include: - Implement PEP 378, Format Specifier for Thousands Separator, for floats, ints, and longs. - Issue #5515: 'n' formatting for ints, longs, and floats handles leading zero formatting poorly. - Issue #5772: For float.__format__, don't add a trailing ".0" if we're using no type code and we have an exponent.
* Issue #5170: Fixed regression caused when fixing #5768.Vinay Sajip2009-04-221-1/+11
|
* Restore skips of posix and pty tests on Windows by calling theR. David Murray2009-04-212-3/+8
| | | | | test_support.import_module on the appropriate modules before any other imports.
* Fix for the Issue918368 - urllib doesn't correct server returned urlsSenthil Kumaran2009-04-212-0/+16
|
* Nit: integer division should use //, not /Mark Dickinson2009-04-201-1/+1
|
* Issue #3166: Make long -> float (and int -> float) conversionsMark Dickinson2009-04-202-0/+93
| | | | | | correctly rounded, using round-half-to-even. This ensures that the value of float(n) doesn't depend on whether we're using 15-bit digits or 30-bit digits for Python longs.
* making BuildWinInstTestCase silent in case bdist_wininst is not run under win32Tarek Ziadé2009-04-201-0/+1
|
* #5795 sysconfig._config_vars was shadowed in tearDownTarek Ziadé2009-04-201-3/+4
|