summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Implement the PEP 302 protocol for get_filename() asBrett Cannon2009-07-204-22/+95
| | | | | | importlib.abc.ExecutionLoader. PyLoader now inherits from this ABC instead of InspectLoader directly. Both PyLoader and PyPycLoader provide concrete implementations of get_filename in terms of source_path and bytecode_path.
* Importlib's documentation said that importlib.abc.PyLoader inherited fromBrett Cannon2009-07-202-15/+62
| | | | | | | | | importlib.abc.ResourceLoader, when in fact it did not. Fixed the ABC to inherit as documented. This doesn't introduce an backwards-incompatiblity as the code in PyLoader already required the single method ResourceLoader defined as an abstract method.
* Remove custom test-skipping code in importlib tests for unittest code.Brett Cannon2009-07-201-13/+14
|
* Some tests in importlib.test.source.test_abc_loader were testing what happensBrett Cannon2009-07-201-8/+16
| | | | | | | | when a loader is given missing or bad code object bytecode. Unfortunately an exception related to source paths was masking what the proper exception to test should be. Making the test explicitly set the environment fixed the test. The code being test was not affected.
* Update importlib.test.source.test_abc_loader to new features added in Python ↵Brett Cannon2009-07-191-17/+19
| | | | 3.1.
* merging revision 74100 from trunk:Kristján Valur Jónsson2009-07-191-1/+1
| | | | | http://bugs.python.org/issue6499 gzip.GzipFile may not exist as a parent class
* porting revision 74098 from trunk:Kristján Valur Jónsson2009-07-193-6/+25
| | | | | http://bugs.python.org/issue6499 zlib/gzip may not be present for all builds. Make xmlrpclib gracefully not supporg gzip encoding in this case
* skip test when distutils is not made for py3kBenjamin Peterson2009-07-191-2/+2
|
* Merged revisions 74095 via svnmerge fromBenjamin Peterson2009-07-1913-928/+948
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74095 | benjamin.peterson | 2009-07-19 15:18:21 -0500 (Sun, 19 Jul 2009) | 1 line split unittest.py into a package ........
* Fix for issue5102, timeout value propages between redirects, proxy, digest andSenthil Kumaran2009-07-192-6/+10
| | | | auth handlers. Fixed tests to reflect the same.
* Issue #6431: Fix Fraction comparisons to return NotImplemented whenMark Dickinson2009-07-182-30/+158
| | | | | | the Fraction type doesn't know how to handle the comparison without loss of accuracy. Also, make sure that comparisons between Fractions and float infinities or nans do the right thing.
* Merged revisions 73694,73708,73738 via svnmerge fromAlexandre Vassalotti2009-07-172-2/+71
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73694 | jesse.noller | 2009-06-29 14:24:26 -0400 (Mon, 29 Jun 2009) | 1 line Issue 5740: multiprocessing.connection.* authkey fixes ........ r73708 | jesse.noller | 2009-06-30 13:11:52 -0400 (Tue, 30 Jun 2009) | 1 line Resolves issues 5155, 5313, 5331 - bad file descriptor error with processes in processes ........ r73738 | r.david.murray | 2009-06-30 22:49:10 -0400 (Tue, 30 Jun 2009) | 2 lines Make punctuation prettier and break up run-on sentence. ........
* Merged revisions 73870,73879,73899-73900,73905-73906 via svnmerge fromAlexandre Vassalotti2009-07-171-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73870 | r.david.murray | 2009-07-06 21:06:13 -0400 (Mon, 06 Jul 2009) | 5 lines Issue 6070: when creating a compiled file, after copying the mode bits, on posix zap the execute bit in case it was set on the .py file, since the compiled files are not directly executable on posix. Patch by Marco N. ........ r73879 | r.david.murray | 2009-07-07 05:54:16 -0400 (Tue, 07 Jul 2009) | 3 lines Update issue 6070 patch to match the patch that was actually tested on Windows. ........ r73899 | r.david.murray | 2009-07-08 21:43:41 -0400 (Wed, 08 Jul 2009) | 3 lines Conditionalize test cleanup code to eliminate traceback, which will hopefully reveal the real problem. ........ r73900 | r.david.murray | 2009-07-08 22:06:17 -0400 (Wed, 08 Jul 2009) | 2 lines Make test work with -O. ........ r73905 | r.david.murray | 2009-07-09 09:55:44 -0400 (Thu, 09 Jul 2009) | 3 lines Specify umask in execute bit test to get consistent results and make sure we test resetting all three execute bits. ........ r73906 | r.david.murray | 2009-07-09 11:35:33 -0400 (Thu, 09 Jul 2009) | 5 lines Curdir needs to be in the path for the test to work on all buildbots. (I copied this from another import test, but currently this will fail if TESTFN ends up in /tmp...see issue 2609). ........
* Merged revisions 73930-73932,73937-73939,73945,73951,73954,73962-73963,73970 ↵Alexandre Vassalotti2009-07-172-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73930 | amaury.forgeotdarc | 2009-07-10 12:47:42 -0400 (Fri, 10 Jul 2009) | 2 lines #6447: typo in subprocess docstring ........ r73931 | ezio.melotti | 2009-07-10 16:25:56 -0400 (Fri, 10 Jul 2009) | 1 line more cleanups and if zlib -> skipUnless(zlib) ........ r73932 | kristjan.jonsson | 2009-07-11 04:44:43 -0400 (Sat, 11 Jul 2009) | 3 lines http://bugs.python.org/issue6460 Need to be careful with thread switching when testing the xmlrpc server. The server thread may not have updated stats when the client thread tests them. ........ r73937 | georg.brandl | 2009-07-11 06:12:36 -0400 (Sat, 11 Jul 2009) | 1 line Fix style. ........ r73938 | georg.brandl | 2009-07-11 06:14:54 -0400 (Sat, 11 Jul 2009) | 1 line #6446: fix import_spam() function to use correct error and reference handling. ........ r73939 | georg.brandl | 2009-07-11 06:18:10 -0400 (Sat, 11 Jul 2009) | 1 line #6448: clarify docs for find_module(). ........ r73945 | georg.brandl | 2009-07-11 06:51:31 -0400 (Sat, 11 Jul 2009) | 1 line #6456: clarify the meaning of constants used as arguments to nl_langinfo(). ........ r73951 | georg.brandl | 2009-07-11 10:23:38 -0400 (Sat, 11 Jul 2009) | 2 lines array.array is actually a class. ........ r73954 | tarek.ziade | 2009-07-11 13:21:00 -0400 (Sat, 11 Jul 2009) | 1 line reverted changes for #6459 (doesn't apply on 2.x) ........ r73962 | benjamin.peterson | 2009-07-11 18:15:13 -0400 (Sat, 11 Jul 2009) | 1 line put downloaded test support files in Lib/test/data instead of the cwd ........ r73963 | benjamin.peterson | 2009-07-11 18:25:24 -0400 (Sat, 11 Jul 2009) | 1 line ignore things in Lib/test/data/ ........ r73970 | hirokazu.yamamoto | 2009-07-11 22:04:47 -0400 (Sat, 11 Jul 2009) | 1 line Fixed distutils test. ........
* Merged revisions 73995,74002,74005,74007-74008,74011,74019-74023 via ↵Alexandre Vassalotti2009-07-177-16/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73995 | vinay.sajip | 2009-07-13 07:21:05 -0400 (Mon, 13 Jul 2009) | 1 line Issue #6314: logging: Extra checks on the "level" argument in more places. ........ r74002 | marc-andre.lemburg | 2009-07-13 16:23:49 -0400 (Mon, 13 Jul 2009) | 6 lines Use a new global DEV_NULL instead of hard-coding /dev/null into the system command helper functions. See #6479 for some motivation. ........ r74005 | marc-andre.lemburg | 2009-07-13 17:28:33 -0400 (Mon, 13 Jul 2009) | 6 lines Use a different VER command output parser to address the localization issues mentioned in #3410. Prepare for Windows 7 (still commented out). ........ r74007 | michael.foord | 2009-07-14 13:58:12 -0400 (Tue, 14 Jul 2009) | 1 line Move TestRunner initialisation into unittest.TestProgram.runTests. Fixes issue 6418. ........ r74008 | benjamin.peterson | 2009-07-14 20:46:42 -0400 (Tue, 14 Jul 2009) | 1 line update year ........ r74011 | ezio.melotti | 2009-07-15 13:07:04 -0400 (Wed, 15 Jul 2009) | 1 line methods' names pep8ification ........ r74019 | amaury.forgeotdarc | 2009-07-15 17:29:27 -0400 (Wed, 15 Jul 2009) | 2 lines #6076 Add a title to the IDLE Preferences window. ........ r74020 | georg.brandl | 2009-07-16 03:18:07 -0400 (Thu, 16 Jul 2009) | 1 line #5910: fix kqueue for calls with more than one event. ........ r74021 | georg.brandl | 2009-07-16 03:33:04 -0400 (Thu, 16 Jul 2009) | 1 line #6486: start with built in functions rather than "built in objects". ........ r74022 | georg.brandl | 2009-07-16 03:38:35 -0400 (Thu, 16 Jul 2009) | 1 line #6481: fix typo in os.system() replacement. ........ r74023 | jesse.noller | 2009-07-16 10:23:04 -0400 (Thu, 16 Jul 2009) | 1 line Issue 6433: multiprocessing.pool.map hangs on empty list ........
* Merged revisions 74040,74042 via svnmerge fromHirokazu Yamamoto2009-07-171-0/+14
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74040 | hirokazu.yamamoto | 2009-07-17 15:20:46 +0900 | 1 line Issue #6415: Fixed warnings.warn sagfault on bad formatted string. ........ r74042 | hirokazu.yamamoto | 2009-07-17 15:26:54 +0900 | 1 line NEWS about r74040. ........
* Merged revisions 74024 via svnmerge fromTarek Ziadé2009-07-166-113/+232
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74024 | tarek.ziade | 2009-07-16 17:35:45 +0200 (Thu, 16 Jul 2009) | 1 line #6466 refactored distutils duplicate get_versions() functions (used to get gcc/ld/dllwrap versions) ........
* Don't check 64-bit test cases on 32-bit machine.Alexandre Vassalotti2009-07-151-1/+15
|
* Issue #2389: Implement a portable mechanism for pickling array objects.Alexandre Vassalotti2009-07-151-10/+140
| | | | Reviewed by: Martin v. Löwis
* Merged revisions 74011 via svnmerge fromEzio Melotti2009-07-151-127/+127
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74011 | ezio.melotti | 2009-07-15 20:07:04 +0300 (Wed, 15 Jul 2009) | 1 line methods' names pep8ification ........
* PEP-8-ify r73389.R. David Murray2009-07-151-1/+2
|
* Importlib was using custom code to discover all test modules in importlib.test.Brett Cannon2009-07-153-37/+15
| | | | | This has now been removed in favor of using unittest's test discovery code in TestLoader.discover().
* Oops, really pass a bytes string to the ctypes function.Amaury Forgeot d'Arc2009-07-131-27/+27
|
* Merged revisions 74000-74001 via svnmerge fromAmaury Forgeot d'Arc2009-07-131-0/+311
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74000 | amaury.forgeotdarc | 2009-07-13 22:01:11 +0200 (lun., 13 juil. 2009) | 4 lines #1616979: Add the cp720 (Arabic DOS) encoding. Since there is no official mapping file from unicode.org, the codec file is generated on Windows with the new genwincodec.py script. ........ r74001 | amaury.forgeotdarc | 2009-07-13 22:03:21 +0200 (lun., 13 juil. 2009) | 2 lines NEWS entry for r74000. ........
* Issue #6314: logging: Extra checks on the "level" argument.Vinay Sajip2009-07-131-8/+15
|
* merging revision 73986 from trunk:Kristján Valur Jónsson2009-07-121-4/+41
| | | | | http://bugs.python.org/issue6267 Add more tests for the xlmrpc.ServerProxy
* Merged revisions 73952 via svnmerge fromAmaury Forgeot d'Arc2009-07-125-9/+9
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk (Only docstrings were modified, won't backport to 3.1) ........ r73952 | amaury.forgeotdarc | 2009-07-11 16:33:51 +0200 (sam., 11 juil. 2009) | 4 lines #2622 Import errors in email.message, from a py2app standalone application. Patch by Mads Kiilerich, Reviewed by Barry Warsaw. ........
* Fixed #6438: distutils.cygwinccompiler.get_versions was trying to use a re ↵Tarek Ziadé2009-07-122-10/+13
| | | | string pattern on a bytes
* merging revision 73932 from trunk:Kristján Valur Jónsson2009-07-111-2/+8
| | | | | http://bugs.python.org/issue6460 Need to be careful with thread switching when testing the xmlrpc server. The server thread may not have updated stats when the client thread tests them.
* Merged revisions 73931 via svnmerge fromEzio Melotti2009-07-111-90/+93
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73931 | ezio.melotti | 2009-07-10 23:25:56 +0300 (Fri, 10 Jul 2009) | 1 line more cleanups and if zlib -> skipUnless(zlib) ........
* Merged revisions 73946 via svnmerge fromTarek Ziadé2009-07-112-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73946 | tarek.ziade | 2009-07-11 12:55:27 +0200 (Sat, 11 Jul 2009) | 1 line fixed #6459: distutils.command.build_ext.get_export_symbols now uses 'PyInit' ........
* #6358: Merge r73933: Add basic tests for the return value of os.popen().close().Amaury Forgeot d'Arc2009-07-112-1/+14
| | | | And fix the implementation to make these tests pass with py3k
* Merged revisions 73925-73926 via svnmerge fromTarek Ziadé2009-07-102-4/+54
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73925 | tarek.ziade | 2009-07-10 11:57:15 +0200 (Fri, 10 Jul 2009) | 1 line Added test coverage for distutils.command.build ........ r73926 | tarek.ziade | 2009-07-10 12:00:21 +0200 (Fri, 10 Jul 2009) | 1 line cleaned up distutils.command.build ........
* Merged revisions 73921 via svnmerge fromTarek Ziadé2009-07-101-4/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73921 | tarek.ziade | 2009-07-10 11:10:33 +0200 (Fri, 10 Jul 2009) | 1 line Fixed #6455 (the test shall use pyd files under win32, rather than so files) ........
* #6323: pdb doesn't deal well with SyntaxErrors.Amaury Forgeot d'Arc2009-07-091-1/+1
| | | | | | | | | It seems necessary to keep two layers of 'exec' (one in Bdb.run, one in Pdb._runscript); this allows the tracing function to be active when the inner 'exec' runs and tries to compile the real code. This partially revert r58127, the net effet of the two changes is to replace "exec('%s')" with "exec(%r)".
* Merged revisions 73916 via svnmerge fromAmaury Forgeot d'Arc2009-07-092-6/+7
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73916 | amaury.forgeotdarc | 2009-07-10 00:37:22 +0200 (ven., 10 juil. 2009) | 5 lines #6416: Fix compilation of the select module on Windows, as well as test_subprocess: PIPE_BUF is not defined on Windows, and probably has no meaning there. Anyway the subprocess module uses another way to perform non-blocking reads (with a thread) ........
* Merged revisions 73907-73908 via svnmerge fromR. David Murray2009-07-091-1/+1
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73907 | r.david.murray | 2009-07-09 12:17:30 -0400 (Thu, 09 Jul 2009) | 4 lines Temporarily ignore rmtree errors in test_getcwd_long_pathnames to see if the test gives useful failure info on Solaris buildbot. ........ r73908 | r.david.murray | 2009-07-09 14:41:03 -0400 (Thu, 09 Jul 2009) | 6 lines Try to fix Solaris buildbot rmtree failure in test_getcwd_long_pathnames cleanup. If this fix works, it means that Solaris is unique among our platforms in what happens when shutil.rmtree is called on the current working directory (ie: it doesn't work on Solaris, but it does everywhere else). ........
* Merged revisions 73901 via svnmerge fromTarek Ziadé2009-07-091-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73901 | tarek.ziade | 2009-07-09 09:42:42 +0200 (Thu, 09 Jul 2009) | 1 line PendingDeprecationWarning -> DeprecationWarning in build_ext ........
* Merged revisions 73895 via svnmerge fromTarek Ziadé2009-07-082-4/+29
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73895 | tarek.ziade | 2009-07-09 00:40:51 +0200 (Thu, 09 Jul 2009) | 1 line Sets the compiler attribute to keep the old behavior for third-party packages. ........
* Merged revisions 73841 via svnmerge fromEzio Melotti2009-07-081-38/+54
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73841 | ezio.melotti | 2009-07-04 17:58:27 +0300 (Sat, 04 Jul 2009) | 1 line if zlib -> skipUnless(zlib) and minor cleanups ........
* http://bugs.python.org/issue6382Kristján Valur Jónsson2009-07-071-6/+22
| | | | added the shutdown_request() which can perform shutdown before calling close. This is needed for the ForkingMixIn because different close semantics are required for child and parent process. shutdown_request(), for TCP servers, calls socket.shutdown() and then calls close_request(). Therefore, this is not an backwards incompatible change, since subclasses that continue to override close_request() continue to work.
* Add a unittest for r73566.Gregory P. Smith2009-07-071-0/+8
|
* Merged revisions 73864 via svnmerge fromTarek Ziadé2009-07-062-23/+68
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73864 | tarek.ziade | 2009-07-06 14:50:46 +0200 (Mon, 06 Jul 2009) | 1 line Fixed #6377: distutils compiler switch ignored (and added a deprecation warning if compiler is not used as supposed = a string option) ........
* Add the fix for issue 4509 to the mapping methods.Alexandre Vassalotti2009-07-051-26/+21
|
* Issue 4005: Remove .sort() call on dict_keys object.Alexandre Vassalotti2009-07-052-2/+7
| | | | | | This caused pydoc to fail when there was a zip file in sys.path. Patch contributed by Amaury Forgeot d'Arc.
* Fix array.extend and array.__iadd__ to handle the case where an arrayAlexandre Vassalotti2009-07-051-0/+13
| | | | | | is extended with itself. This bug is specific the py3k version of arraymodule.c
* Add more test cases to BaseTest.test_memoryview_no_resize.Alexandre Vassalotti2009-07-051-0/+6
|
* Issue 4509: Do not modify an array if we know the change would resultAlexandre Vassalotti2009-07-051-0/+16
| | | | in a failure due to exported buffers.
* http://bugs.python.org/issue6381Kristján Valur Jónsson2009-07-041-1/+6
| | | | merging revision 73819 from trunk
* Revert last change, which was incorrect.Kristján Valur Jónsson2009-07-042-8/+1
|