summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 74704 via svnmerge fromMark Dickinson2009-09-072-1/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74704 | mark.dickinson | 2009-09-07 17:17:41 +0100 (Mon, 07 Sep 2009) | 3 lines Issue #6850: Fix bug in Decimal._parse_format_specifier for formats with no type specifier. ........
* Fix for issue 6393: Python crashes on OSX when $LANG is set to some (butRonald Oussoren2009-09-061-1/+13
| | | | not all) invalid values due to an invalid result from nl_langinfo
* Merged revisions 74673 via svnmerge fromMark Dickinson2009-09-061-0/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74673 | mark.dickinson | 2009-09-06 11:03:31 +0100 (Sun, 06 Sep 2009) | 3 lines Issue #6846: bytearray.pop was returning ints in the range [-128, 128) instead of [0, 256). Thanks Hagen Fürstenau for the report and fix. ........
* Issue 6239: ctypes.c_char_p return value must return bytes.Thomas Heller2009-09-0413-56/+56
|
* Remove the just-removed "help" from __all__.Georg Brandl2009-09-042-2/+2
|
* Fixes issue #6838: use a list to accumulate the value instead of repeatedly ↵Chris Withers2009-09-041-12/+9
| | | | concatenating strings.
* Recorded merge of revisions 74650 via svnmerge fromGeorg Brandl2009-09-041-38/+87
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74650 | georg.brandl | 2009-09-04 13:19:34 +0200 (Fr, 04 Sep 2009) | 1 line #5101: add back tests to test_funcattrs that were lost during unittest conversion, and make some PEP8 cleanups. ........
* Turn some comments into docstrings.Georg Brandl2009-09-041-20/+16
|
* Remove pseudo-end markers from http.cookies.Georg Brandl2009-09-041-22/+1
|
* Remove backwards compatibility stuff from profile/cProfile.Georg Brandl2009-09-042-12/+0
|
* #5221: fix related topics: SEQUENCEMETHODS[12] doesnt exist any more.Georg Brandl2009-09-041-6/+6
|
* Merged revisions 74640 via svnmerge fromBrett Cannon2009-09-031-1/+7
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74640 | brett.cannon | 2009-09-03 14:25:21 -0700 (Thu, 03 Sep 2009) | 7 lines test_platform fails on OS X Snow Leopard because the UNIX command to get the canonical version, sw_vers, leaves off trailing zeros in the version number (e.g. 10.6 instead of 10.6.0). Test now compensates by tacking on extra zeros for the test comparison. Fixes issue #6806. ........
* Rework importlib benchmarks so that they measure number of executions within aBrett Cannon2009-09-031-51/+52
| | | | | | | | second instead of some fixed number. Keeps benchmark faster by putting a cap on total execution time. Before a run using importlib took longer by some factor, but now it takes roughly the same amount of time as using the built-in __import__.
* - apply issue 6582 to test all the write methods of telnetlibJack Diederich2009-09-031-5/+59
| | | | | - add patch author to ACKS - possibly fix test timeouts on non-linux platforms
* Use true booleans and a bit more PEP8.Georg Brandl2009-09-021-9/+9
|
* Use true kwonly arg instead of **kwds hackaround.Georg Brandl2009-09-021-14/+2
|
* Clarify why test_import is failing under importlib.Brett Cannon2009-08-301-2/+3
|
* Loosen an exception test in test_import to not require an explicit message ↵Brett Cannon2009-08-301-2/+1
| | | | but instead just the proper exception.
* Trying to import a submodule from another module and not a package was raisingBrett Cannon2009-08-303-4/+11
| | | | | | AttributeError in importlib when it should be an ImportError. Found when running importlib against test_runpy.
* test_pep3120 is no longer a problem for importlib as the test was tweaked.Brett Cannon2009-08-301-1/+0
|
* Make the exception message check for malformed UTF-8 source looser so that ↵Brett Cannon2009-08-301-1/+2
| | | | SyntaxError triggered from UnicodeDecodeError is also acceptable.
* When the globals argument to importlib.__import__() contained any value forBrett Cannon2009-08-302-11/+17
| | | | | | | | __package__, it was used. This was incorrect since it could be set to None to represent the fact that a proper value was unknown. Now None will trigger the calculation for __package__. Discovered when running importlib against test_importhooks.
* Turn on verbose2 for importlib.test.regrtest so as to see failures when they ↵Brett Cannon2009-08-301-2/+1
| | | | occur.
* Raise TypeError if the name given to importlib.__import__() lacks an rpartitionBrett Cannon2009-08-303-1/+24
| | | | | | | | attribute. Was throwing AttributeError before. Discovered when running test_builtin against importlib. This exception change is specific to importlib.__import__() and does not apply to import_module() as it is being done for compatibility reasons only.
* Fix the importlib_only test decorator to work again; don't capture the flag ↵Brett Cannon2009-08-301-1/+3
| | | | variable as it might change later.
* Use the public API, not a private one.Brett Cannon2009-08-301-1/+1
|
* Allow importlib.__import__ to accept any iterable for fromlist. Discovered whenBrett Cannon2009-08-302-2/+10
| | | | running importlib against test___all__.
* Provide module docstrings for the two main test drivers in importlib thatBrett Cannon2009-08-302-2/+11
| | | | | explain what they are for and how to use command-line arguments to tweak semantics.
* Tweak importlib.test.regrtest to only specify the implicit tests to excludeBrett Cannon2009-08-301-4/+6
| | | | | when running entire test suite. Allows normal command-line arguments normally given to test.regrtest to work (e.g. specifying a single test).
* Have importlib raise ImportError if None is found in sys.modules. This matchesBrett Cannon2009-08-302-5/+20
| | | | current import semantics.
* Merged revisions 74581 via svnmerge fromAmaury Forgeot d'Arc2009-08-291-0/+21
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74581 | amaury.forgeotdarc | 2009-08-29 20:14:40 +0200 (sam., 29 août 2009) | 3 lines #6750: TextIOWrapped could duplicate output when several threads write to it. this affect text files opened with io.open(), and the print() function of py3k ........
* Merged revisions 74571 via svnmerge fromLars Gustäbel2009-08-282-29/+82
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74571 | lars.gustaebel | 2009-08-28 21:23:44 +0200 (Fri, 28 Aug 2009) | 7 lines Issue #6054: Do not normalize stored pathnames. No longer use tarfile.normpath() on pathnames. Store pathnames unchanged, i.e. do not remove "./", "../" and "//" occurrences. However, still convert absolute to relative paths. ........
* Merged revisions 74564 via svnmerge fromMark Dickinson2009-08-282-2/+21
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74564 | mark.dickinson | 2009-08-28 14:25:02 +0100 (Fri, 28 Aug 2009) | 3 lines Issue #6794: Fix handling of NaNs in Decimal.compare_total and Decimal.compare_total_mag. ........
* Add a test file to importlib that runs regrtest using importlib.__import__.Brett Cannon2009-08-271-0/+33
| | | | | | | | | The file must be run using runpy. Certain tests are currently excluded from being run as they have known failures based on golden value checks that fail for various reasons (typically because __loader__ is not expected to be set on modules). Running the tests with this file does discover some incompatibilites in importlib that will be fixed in the near future (as noted currently in the docstring).
* Add support for a --builtin argument to importlib.test to trigger runningBrett Cannon2009-08-271-0/+5
| | | | import-specific tests with __import__ instead of importlib.
* Move over to using assertRaises as a context manager for importlib tests.Brett Cannon2009-08-279-24/+36
| | | | | Obviously one shouldn't do whole sale conversions like this, but I was already going through the test code and I was bored at the airport.
* Make __package__ setting tests specific to importlib. Also move to ↵Brett Cannon2009-08-271-4/+5
| | | | assertRaises context manager.
* Move a test-skipping decorator over to unittest.skipIf.Brett Cannon2009-08-271-10/+3
|
* Merged revisions 74526 via svnmerge fromTarek Ziadé2009-08-202-36/+126
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74526 | tarek.ziade | 2009-08-20 23:23:13 +0200 (Thu, 20 Aug 2009) | 1 line #6693: New functions in site.py to get user/global site packages paths. ........
* Merged revisions 74507-74511,74517 via svnmerge fromGuilherme Polo2009-08-182-21/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev/python/trunk ........ r74507 | guilherme.polo | 2009-08-18 10:23:08 -0300 (Tue, 18 Aug 2009) | 1 line Issue #1119673: Do not override Tkinter.Text methods when creating a ScrolledText. ........ r74508 | guilherme.polo | 2009-08-18 10:29:20 -0300 (Tue, 18 Aug 2009) | 1 line Issue #1250469: Fix the return value of Tix.PanedWindow.panes. ........ r74509 | guilherme.polo | 2009-08-18 10:33:30 -0300 (Tue, 18 Aug 2009) | 1 line Mark the "radio" option of Tix.CheckList as static. ........ r74510 | guilherme.polo | 2009-08-18 11:23:00 -0300 (Tue, 18 Aug 2009) | 1 line Issue #1522587: New constants and methods for the Tix.Grid widget. ........ r74511 | guilherme.polo | 2009-08-18 11:34:44 -0300 (Tue, 18 Aug 2009) | 1 line Fixes for Tix.Grid from issue #1522587. ........ r74517 | guilherme.polo | 2009-08-18 11:46:57 -0300 (Tue, 18 Aug 2009) | 1 line Issue #1356969: Add missing info methods in Tix.HList. ........
* Merged revisions 74501 via svnmerge fromTarek Ziadé2009-08-182-3/+45
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74501 | tarek.ziade | 2009-08-18 10:16:33 +0200 (Tue, 18 Aug 2009) | 1 line added more test coverage for distutils.filelist to prevent regressions when fnmatch or re are changed ........
* Merged revisions 74495 via svnmerge fromTarek Ziadé2009-08-171-16/+20
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74495 | tarek.ziade | 2009-08-17 23:48:22 +0200 (Mon, 17 Aug 2009) | 1 line module cleanup ........
* Merged revisions 74493 via svnmerge fromTarek Ziadé2009-08-172-8/+10
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74493 | tarek.ziade | 2009-08-17 23:28:34 +0200 (Mon, 17 Aug 2009) | 1 line fixed how fnmatch.translate is used (since it has changed in r74475 for #6665). Now the code is not harcoding the usage of $ anymore ........
* Merged revisions 74479 via svnmerge fromGregory P. Smith2009-08-161-33/+33
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74479 | gregory.p.smith | 2009-08-16 14:54:45 -0700 (Sun, 16 Aug 2009) | 2 lines Clean up the C library import code (based on suggestions in issue6281). ........
* Merged revisions 74477 via svnmerge fromFrank Wierzbicki2009-08-161-0/+19
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74477 | frank.wierzbicki | 2009-08-16 16:22:51 -0400 (Sun, 16 Aug 2009) | 2 lines Add test of file.write(array) extracted from Jython. ........
* Merged revisions 74475 via svnmerge fromGregory P. Smith2009-08-162-2/+11
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74475 | gregory.p.smith | 2009-08-16 11:52:58 -0700 (Sun, 16 Aug 2009) | 2 lines Issue 6665: Fix fnmatch to properly match filenames with newlines in them. ........
* Fixing Issue6711 - macurl2path has typos that raise AttributeErrorSenthil Kumaran2009-08-161-3/+3
|
* Merged revisions 74457 via svnmerge fromBenjamin Peterson2009-08-151-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74457 | benjamin.peterson | 2009-08-15 08:16:38 -0500 (Sat, 15 Aug 2009) | 1 line #6707 fix a crash with dir() on an uninitialized module ........
* Merged revisions 74446-74449 via svnmerge fromGuilherme Polo2009-08-146-150/+71
| | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev/python/trunk ........ r74446 | guilherme.polo | 2009-08-14 10:53:41 -0300 (Fri, 14 Aug 2009) | 1 line Issue #3344: Replace itertools.count by enumerate. ........ r74447 | guilherme.polo | 2009-08-14 11:03:07 -0300 (Fri, 14 Aug 2009) | 1 line Issue #3926: Fix the usage of the new showwarnings and formatwarning. ........ r74448 | guilherme.polo | 2009-08-14 11:36:45 -0300 (Fri, 14 Aug 2009) | 3 lines Issue #1135: Add the XView and YView mix-ins to avoid duplicating the xview* and yview* methods. ........ r74449 | guilherme.polo | 2009-08-14 11:43:43 -0300 (Fri, 14 Aug 2009) | 1 line Clarifying Entry.selection_present's docstring. ........
* Backport of r77429. Not merged/blocked as svnmerge.py is not liking me right ↵Brett Cannon2009-08-131-1/+20
| | | | now.