Commit Graph

20055 Commits

Author SHA1 Message Date
Brett Cannon cdf1121076 Merge 2012-01-31 14:58:07 -05:00
Terry Jan Reedy 5d605c2861 Merge with 3.2 whitespace 2012-01-31 02:58:39 -05:00
Terry Jan Reedy 4d82ade424 whitespace 2012-01-31 02:57:29 -05:00
Terry Jan Reedy f8672bec68 Merge 3.2
- Issue #13506: Add '' to path for IDLE Shell when started and restarted with Restart Shell.
  Original patches by Marco Scataglini and Roger Serwy.
Merge 3.2 #13506 Add '' to path for interactive interpreter by adding with_cwd
parameter to PyShell.PyShell.transfer_path() and changing elsewhere as needed.
Original patches by Marco Scataglini and Roger Serwy.
2012-01-31 02:42:19 -05:00
Terry Jan Reedy da4c467210 #13506 Add '' to path for interactive interpreter by adding with_cwd parameter
to PyShell.PyShell.transfer_path() and changing elsewhere as needed.
Original patches by Marco Scataglini and Roger Serwy.
2012-01-31 02:26:32 -05:00
Brett Cannon e3a9ae5ece Let importlib.test.benchmark take a specific benchmark name to run. 2012-01-30 19:27:51 -05:00
Brett Cannon 190f33cd2b Allow for the specification of a file to dump importlib benchmark
results to (and to compare against previous runs).
* * *
Move importlib.test.benchmark to argparse.
2012-01-30 19:12:29 -05:00
Antoine Pitrou f3b2d88b67 Issue #8828: Add new function os.replace(), for cross-platform renaming with overwriting. 2012-01-30 22:08:52 +01:00
Brett Cannon 8a8945085f Issue #13890: Also fix for extension module tests for case-insensitivity. 2012-01-30 12:51:49 -05:00
Brett Cannon 01ad3251ae Issue #13890: Fix importlib case-sensitivity tests to not run on Windows.
Thanks to os.environ under Windows only updating the dict and not the
environment itself (as exposed by nt.environ), tests using
PYTHONCASEOK always fail. Now the tests are skipped when os.environ
does not do what is expected.
2012-01-30 12:48:16 -05:00
Victor Stinner 2d6251c7f7 Issue #13847: Fix test_time, time.gmtime() doesn't use localtime()
On Windows, localtime(-1) fails, but not gmtime(1).
2012-01-30 00:23:32 +01:00
Antoine Pitrou 7ab4af0427 Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name.
Patch by Hynek Schlawack.
2012-01-29 18:43:36 +01:00
Antoine Pitrou 1334884ff2 Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name.
Patch by Hynek Schlawack.
2012-01-29 18:36:34 +01:00
Benjamin Peterson df13b5fae1 merge 3.2 2012-01-28 20:33:52 -05:00
Benjamin Peterson 3cd4607176 remove tests from really old regex module 2012-01-28 20:33:21 -05:00
Antoine Pitrou 04d9dd06aa Issue #13806: The size check in audioop decompression functions was too strict and could reject valid compressed data.
Patch by Oleg Plakhotnyuk.
2012-01-28 22:02:47 +01:00
Antoine Pitrou 75ff65ef96 Issue #13806: The size check in audioop decompression functions was too strict and could reject valid compressed data.
Patch by Oleg Plakhotnyuk.
2012-01-28 22:01:59 +01:00
Antoine Pitrou ce816a5111 Issue #13895: fix test_ssl hanging under Ubuntu 2012-01-28 17:40:23 +01:00
Antoine Pitrou eba63c4203 Issue #13895: fix test_ssl hanging under Ubuntu 2012-01-28 17:38:34 +01:00
Nadeem Vawda d770fe45a0 Fix typo in comment. 2012-01-28 17:32:47 +02:00
Charles-François Natali 9ab91c60b2 Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
by Matt Joiner.
2012-01-28 11:37:42 +01:00
Charles-François Natali 6b671b2591 Issue #13894: Skip test_threading.CRLockTests if _CRLock isn't available. Patch
by Matt Joiner.
2012-01-28 11:36:04 +01:00
Antoine Pitrou 6636887104 Fix intermittent test_ssl failure. 2012-01-27 17:34:56 +01:00
Antoine Pitrou eced82ecbf Fix intermittent test_ssl failure. 2012-01-27 17:33:01 +01:00
Antoine Pitrou 2d843d2520 Issue #13812: When a multiprocessing Process child raises an exception, flush stderr after printing the exception traceback. 2012-01-27 10:53:35 +01:00
Antoine Pitrou 84a0fbf6b0 Issue #13812: When a multiprocessing Process child raises an exception, flush stderr after printing the exception traceback. 2012-01-27 10:52:37 +01:00
Brett Cannon c9f71481d4 Merge 2012-01-26 19:09:44 -05:00
Brett Cannon 51d14f8e56 Relocate importlib._case_ok to importlib._bootstrap.
This required updating the code to use posix instead of os. This is
all being done to make bootstrapping easier to removing dependencies
that are kept in importlib.__init__ and thus outside of the single
file to bootstrap from.
2012-01-26 19:03:52 -05:00
Victor Stinner 53d3645f95 Issue #13847: Make test_localtime_failure() more robust
Skip the test if we are unable to find an invalid time_t value.
2012-01-27 01:03:25 +01:00
Victor Stinner 2cbae98ea4 Issue #13847: Fix test_mktime(), time.localtime() now raises OSError 2012-01-27 00:50:33 +01:00
Victor Stinner c1b5d34ede Issue #13847: time.localtime() and time.gmtime() now raise an OSError instead
of ValueError on failure. time.ctime() and time.asctime() now raises an
OSError if localtime() failed.
2012-01-27 00:08:48 +01:00
Brett Cannon 7f2b576875 Merge 2012-01-26 08:58:19 -05:00
Raymond Hettinger 4fd3f0c850 Merge 2012-01-26 00:15:07 -08:00
Raymond Hettinger eaac4f0d30 Issue 13870: Fix out of date comment. 2012-01-26 00:14:16 -08:00
Brett Cannon c264e3ee20 Move some code from importlib.__init__ to importlib._bootstrap that
does not need to be exposed from C code for bootstrapping reasons.
2012-01-25 18:58:03 -05:00
Nadeem Vawda 131c7079d3 Issue #13862: Relax zlib version test to avoid spurious failures. 2012-01-25 23:16:50 +02:00
Vinay Sajip 9b727eca26 Closes #13859: Merged fix from 3.2 - thanks to Matt Joiner for spotting this and the patch. 2012-01-25 17:49:45 +00:00
Vinay Sajip a50c284076 Closes #13859: Replaced reference to StandardError with reference to Exception. Thanks to Matt Joiner for spotting this and submitting a patch. 2012-01-25 17:41:13 +00:00
Antoine Pitrou 581616624d Port import fixes from 2.7. 2012-01-25 18:06:07 +01:00
Antoine Pitrou 33d15f7c85 Port import fixes from 2.7. 2012-01-25 18:01:45 +01:00
Nadeem Vawda 61baebd0e1 Issue #12804: Fix test failures on systems without internet access. 2012-01-25 08:02:05 +02:00
Nadeem Vawda a58c01ba48 Remove redundant resource check in test_socket. 2012-01-25 06:48:47 +02:00
Antoine Pitrou 157c1263a2 Port remaining test fixes, and fix test_importlib too. 2012-01-25 03:01:34 +01:00
Antoine Pitrou dd21f68963 Port remaining test fixes, and fix test_importlib too. 2012-01-25 03:00:57 +01:00
Antoine Pitrou 05f29b7a3a Make test work under 32-bit systems, and when invoked through Lib/test/regrtest.py
(rather than `-m test.regrtest`)
2012-01-25 01:35:26 +01:00
Antoine Pitrou abaf89b2be Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp. 2012-01-24 17:45:50 +01:00
Antoine Pitrou 2be60afb7e Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp. 2012-01-24 17:44:06 +01:00
Antoine Pitrou 91ecea24f5 Issue #13772: In os.symlink() under Windows, do not try to guess the link
target's type (file or directory).  The detection was buggy and made the
call non-atomic (therefore prone to race conditions).
2012-01-24 09:05:18 +01:00
Antoine Pitrou 5311c1d7ab Issue #13772: In os.symlink() under Windows, do not try to guess the link
target's type (file or directory).  The detection was buggy and made the
call non-atomic (therefore prone to race conditions).
2012-01-24 08:59:28 +01:00
Victor Stinner 4ccc727793 Issue #10278: wallclock() cannot go backward, but two consecutive calls
may return the same time.
2012-01-23 23:48:41 +01:00
Gregory P. Smith 0648458b84 Fix a unittest error seen on NetBSD 5. 2012-01-21 22:06:09 -08:00
Gregory P. Smith 886455cc4e Fix a unittest error seen on NetBSD 5. 2012-01-21 22:05:10 -08:00
Gregory P. Smith d635af5a61 Fixes issue #8052: The posix subprocess module's close_fds behavior was
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().

It now closes only the open fds when it is possible to safely determine what
those are.
2012-01-21 14:39:29 -08:00
Gregory P. Smith 8facece99a Fixes issue #8052: The posix subprocess module's close_fds behavior was
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().

It now closes only the open fds when it is possible to safely determine what
those are.
2012-01-21 14:01:08 -08:00
Victor Stinner a4ac600d6f Issue #13706: Support non-ASCII fill characters 2012-01-21 15:50:49 +01:00
Senthil Kumaran 3242577a08 merge from 3.2 2012-01-21 11:55:40 +08:00
Senthil Kumaran 3800ea9f65 Fix Issue6631 - Disallow relative file paths in urllib urlopen 2012-01-21 11:52:48 +08:00
Benjamin Peterson 77fc1f3c06 add another test case 2012-01-20 11:01:06 -05:00
Łukasz Langa 002890861f #13760: picklability tests for configparser exceptions 2012-01-20 15:53:10 +01:00
Łukasz Langa e7851956de #13760: picklability tests for configparser exceptions 2012-01-20 14:57:55 +01:00
Vinay Sajip 5d116b758a Closes #13807: Merged fix from 3.2. 2012-01-20 11:31:46 +00:00
Vinay Sajip 315a62befc Closes #13807: Merged fix from 3.1. 2012-01-20 11:27:36 +00:00
Vinay Sajip 889bb2969d Closes #13807: Now checks for sys.stderr being there before writing to it. 2012-01-20 11:23:02 +00:00
Victor Stinner 2dd254d17a Issue #10278: Be more explicit in tests than wallclock() is monotonic (cannot
go backward)
2012-01-20 02:24:18 +01:00
Benjamin Peterson cff9237d57 check after comments, too (#13832) 2012-01-19 17:46:13 -05:00
Meador Inge fa21bf015d Issue #12705: Raise SyntaxError when compiling multiple statements as single interactive statement 2012-01-19 01:08:41 -06:00
Meador Inge 00c7f85298 Issue #2134: Add support for tokenize.TokenInfo.exact_type. 2012-01-19 00:44:45 -06:00
Antoine Pitrou 391166fbfc Be more lenient in test_wallclock (issue #10278). 2012-01-18 22:35:21 +01:00
Antoine Pitrou af5facc4ca Add part of test_inspect test from 2.7 2012-01-18 17:40:48 +01:00
Antoine Pitrou 0c60381749 Add part of test_inspect test from 2.7 2012-01-18 17:40:18 +01:00
Lars Gustäbel c5e1199f38 Issue #5689: Avoid excessive memory usage by using the default lzma preset. 2012-01-18 14:01:17 +01:00
Nadeem Vawda 50a4d5debb Merge: #13781: Fix GzipFile to work with os.fdopen()'d file objects. 2012-01-18 09:32:25 +02:00
Nadeem Vawda 892b0b928d Issue #13781: Fix GzipFile to work with os.fdopen()'d file objects. 2012-01-18 09:25:58 +02:00
Jesus Cea 5c1d814e6f MERGE: And yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 05:05:41 +01:00
Jesus Cea 031605ad99 And yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 05:04:49 +01:00
Jesus Cea b78e1df68b MERGE: Yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:49:54 +01:00
Jesus Cea 1aa1cf3548 Yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:49:26 +01:00
Jesus Cea 2c5b688081 MERGE: Emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:28:05 +01:00
Jesus Cea 6e35d417f7 Emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:27:37 +01:00
Jesus Cea 44acda4c97 MERGE: Closes #13803: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 04:01:24 +01:00
Jesus Cea 8874fd6bb0 Closes #13803: Under Solaris, distutils doesn't include bitness in the directory name 2012-01-18 03:58:42 +01:00
Victor Stinner b94b266cfc Close #10278: Add time.wallclock() function, monotonic clock. 2012-01-18 01:50:21 +01:00
Nadeem Vawda 72750a85f9 Issue #13809: Make bz2 module work with threads disabled.
Original patch by Amaury Forgeot d'Arc.
2012-01-18 01:57:14 +02:00
Antoine Pitrou 7422b22e5e Test running of code in a sub-interpreter
(prelude to issue #6531).
2012-01-18 00:22:06 +01:00
Antoine Pitrou 2f828f2c88 Test running of code in a sub-interpreter
(prelude to issue #6531).
2012-01-18 00:21:11 +01:00
Antoine Pitrou 0174db50a5 Issue #13589: Fix some serialization primitives in the aifc module.
Patch by Oleg Plakhotnyuk.
2012-01-17 17:14:30 +01:00
Antoine Pitrou 03757ec4a5 Issue #13589: Fix some serialization primitives in the aifc module.
Patch by Oleg Plakhotnyuk.
2012-01-17 17:13:04 +01:00
Brett Cannon f522aea7a1 Issue #13588: Rename decorators in importlib.
More descriptive names are now used in order to make tracebacks
more readable.
2012-01-16 11:46:22 -05:00
Terry Jan Reedy b5a6deb26c Merge with 3.2 #6528 None, True, False are keywords in 3.x. Patch by R. Serwy. 2012-01-16 03:22:33 -05:00
Terry Jan Reedy dc224f82c0 #6528 None, True, False are keywords in 3.x. Patch by Roger Serwy. 2012-01-16 03:20:27 -05:00
Benjamin Peterson 6f5b6d7e8f kill useless import added by 87331661042b 2012-01-15 22:43:10 -05:00
Benjamin Peterson 0c6bab1c24 merge 3.2 (#13766) 2012-01-15 21:28:13 -05:00
Benjamin Peterson a846d0ac5e explain why we need this grammar file (closes #13766) 2012-01-15 21:28:00 -05:00
Meador Inge da05f454e3 Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames indexes. 2012-01-15 19:31:57 -06:00
Meador Inge 3388060127 Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames indexes. 2012-01-15 19:15:36 -06:00
Terry Jan Reedy 2d496005fd Merge with 3.2 #13039 allow proper deletion of '>>> ' in IDLE editor windows.
Patch by Roger Serwy.
2012-01-15 19:08:28 -05:00
Terry Jan Reedy 7f53aea53b #13039 allow proper deletion of '>>> ' in IDLE editor windows.
Patch by Roger Serwy.
2012-01-15 19:03:23 -05:00
Éric Araujo 73cec21af2 Stop ignoring RPMs in distutils' upload command (#2945).
Bug reported by Hartmut Goebel and patch contributed by Carl Robben.
Carl tested the fix and we have a buildbot with rpm installed, so I’m
committing even though I could not run this test (but I do understand
the changed code :)
2012-01-15 02:48:55 +01:00
Benjamin Peterson d5890c8db5 add str.casefold() (closes #13752) 2012-01-14 13:23:30 -05:00
Meador Inge 94d5a7174a Issue #13786: Remove unimplemented 'trace' long option from regrtest.py. 2012-01-14 11:54:43 -06:00