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
Meador Inge
b0ae0ac668
Issue #13786 : Remove unimplemented 'trace' long option from regrtest.py.
2012-01-14 11:50:33 -06:00
Meador Inge
124598caf7
Issue #13725 : regrtest does not recognize -d flag.
...
Patch by Erno Tukia.
2012-01-14 09:17:10 -06:00
Meador Inge
3f55e59282
Issue #13725 : regrtest does not recognize -d flag.
...
Patch by Erno Tukia.
2012-01-14 09:12:55 -06:00
Benjamin Peterson
527c622926
make YieldFrom its own distinct from Yield ( closes #13780 )
2012-01-14 08:58:23 -05:00
Senthil Kumaran
91f252b179
merge from 3.2 - Fix issue13726: -S accepts an argument just as --start.
2012-01-14 21:08:15 +08:00
Senthil Kumaran
3ffd7ca041
Fix issue13726: -S accepts an argument just as --start.
2012-01-14 21:07:31 +08:00
Senthil Kumaran
87c0bebead
merge heads.
2012-01-14 19:13:06 +08:00
Senthil Kumaran
4479577388
merge from 3.2 - Fix Issue #13642 : Unquote before b64encoding user:password during Basic Authentication.
2012-01-14 19:12:28 +08:00
Senthil Kumaran
c5c5a14577
Fix Issue #13642 : Unquote before b64encoding user:password during Basic Authentication.
2012-01-14 19:09:04 +08:00
Charles-François Natali
512d54fea2
Merge.
2012-01-14 11:53:37 +01:00
Charles-François Natali
d612de10e5
Issue #12760 : Refer to the new 'x' open mode as "exclusive creation" mode.
2012-01-14 11:51:00 +01:00
Senthil Kumaran
6c3dd7ea42
merge from 3.2
2012-01-14 18:39:23 +08:00
Senthil Kumaran
0e0772d859
merge from 3.2
2012-01-14 18:39:06 +08:00
Senthil Kumaran
9bbcb254db
Adding the -o option for Issue13726
2012-01-14 18:38:28 +08:00
Senthil Kumaran
bcfe56d77c
Issue13726 - Fix the ambiguous -S flag in regrtest. It is -o/--slow for printing the 10 slowest test.
2012-01-14 18:26:27 +08:00
Amaury Forgeot d'Arc
e557da804a
Fix a crash when the return value of a subgenerator is a temporary
...
object (with a refcount of 1)
2012-01-13 21:06:12 +01:00
Antoine Pitrou
bbf53614b7
test_strlit was never run
2012-01-12 22:36:48 +01:00
Antoine Pitrou
f7bfff0e42
Remove unused certificate from the test directory.
2012-01-10 23:45:54 +01:00
Terry Jan Reedy
ee91e0990a
#11906 Make test_argparse work interactively by removing extra space
...
in comparison string that argparse does not add when program name is blank.
2012-01-09 18:20:09 -05:00
Ross Lagerwall
66e2fb68ac
Issue #12364 : Fix a hang in concurrent.futures.ProcessPoolExecutor.
2012-01-08 08:29:40 +02:00
Charles-François Natali
ded0348c08
Issue #13502 : threading: Fix a race condition in Event.wait() that made it
...
return False when the event was set and cleared right after.
2012-01-07 18:24:56 +01:00
Lars Gustäbel
dee45e20f6
Issue #12926 : Fix a bug in tarfile's link extraction.
...
On platforms that do not support (symbolic) links, tarfile offers a
work-around and extracts a link in an archive as the regular file the link is
pointing to. On other platforms, this code was accidentally executed even
after the link had been successfully extracted which failed due to the already
existing link.
2012-01-05 18:48:06 +01:00
Vinay Sajip
cdf6cd9ff3
Closes #13699 . Skipped two tests if Python is optimised.
2012-01-05 11:45:31 +00:00
Senthil Kumaran
6497aa3e00
Issue13696 - Fix 302 Redirection for Relative urls.
2012-01-04 13:46:59 +08:00
Benjamin Peterson
a8d7037e32
merge 3.1
2012-01-03 16:24:39 -06:00
Benjamin Peterson
b462da8c0a
fix this to not depend on dictionary order
2012-01-03 16:23:11 -06:00
Antoine Pitrou
8f85f907e3
Issue #13636 : Weak ciphers are now disabled by default in the ssl module
...
(except when SSLv2 is explicitly asked for).
2012-01-03 22:46:48 +01:00
Charles-François Natali
366999a011
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
...
Vilmos Nebehaj.
2012-01-02 15:47:29 +01:00
Sandro Tosi
70efbefcc5
Issue #13594 : various fixes to aifc module; patch by Oleg Plakhotnyuk
2012-01-01 22:53:08 +01:00
Sandro Tosi
bdd5354700
Issue #13680 : add lowecase compression type to write header; patch by Oleg Plakhotnyuk
2012-01-01 18:04:37 +01:00
Antoine Pitrou
7c9907e565
Fix no-op tests in importlib.
2011-12-30 21:25:15 +01:00
Benjamin Peterson
0e61350d3a
propgate error in other conditions
2011-12-27 15:16:34 -06:00
Charles-François Natali
fe8039b3e5
Issue #13565 : Increase multiprocessing's server socket backlog, to avoid
...
dropped connections in case of simultaneous connection requests.
2011-12-23 19:06:48 +01:00
Senthil Kumaran
3075549d53
Minor code style improvements in http.server suggested in Issue13294.
2011-12-23 17:03:41 +08:00
Michael Foord
3ba95f8bd9
Metaclasses with metaclasses with a __dict__ descriptor can no longer trigger code execution with inspect.getattr_static.
...
Closes issue 11829.
2011-12-22 01:13:37 +00:00
Antoine Pitrou
65a3f4b8c5
Use context managers in test_ssl to simplify test writing.
2011-12-21 16:52:40 +01:00
Antoine Pitrou
28f8bee5c8
Issue #13645 : fix test_import failure when run immediately after test_coding.
2011-12-21 15:50:42 +01:00
Antoine Pitrou
86a8a9ae98
Issue #1785 : Fix inspect and pydoc with misbehaving descriptors.
...
Also fixes issue #13581 : `help(type)` wouldn't display anything.
2011-12-21 09:57:40 +01:00
Charles-François Natali
bf38315446
Followup to issue #11867 : Use socketpair(), since FreeBSD < 8 doesn't really
...
support multiprocessing.Event.
2011-12-20 11:48:22 +01:00
Antoine Pitrou
7ded21e917
Issue #5424 : add tests for inet_ntoa, inet_ntop, inet_aton and inet_pton.
...
Patch by Philipp Hagemeister.
2011-12-19 16:21:21 +01:00
Charles-François Natali
4ce2f36461
Issue #13453 : Try to increase some socket timeouts to make some buildbots stop
...
failing.
2011-12-19 16:12:23 +01:00
Victor Stinner
d208416a40
Issue #13628 : python-gdb.py is now able to retrieve more frames in the Python
...
traceback if Python is optimized.
* delay the lookup of the size_t type, it is not available at startup
* The second argument of the PyFrameObjectPtr constructor is optional, as
done in other constructors
* iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
an empty tuple instead of None if Python is optimized
* Fix py-bt and py-bt-full to handle correctly "optimized" frames
* Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:42:24 +01:00
Charles-François Natali
78ed83da46
Issue #11867 : Make test_mailbox.test_lock_conflict deterministic (and fix a
...
race condition).
2011-12-19 12:18:55 +01:00
Ezio Melotti
62f3d0300e
#13576 : add tests about the handling of (possibly broken) condcoms.
2011-12-19 07:29:03 +02:00
Michael Foord
a51623b160
Fix inspect.getattr_static to work on modules (again).
...
Closes issue 11813.
2011-12-18 22:01:40 +00:00
Antoine Pitrou
165b1283ff
Followup to #7502 : add __hash__ method and tests.
2011-12-18 20:20:17 +01:00
Antoine Pitrou
a74252633f
Merge
2011-12-18 19:28:33 +01:00
Antoine Pitrou
2bc801c4ea
Issue #7502 : Fix equality comparison for DocTestCase instances.
...
Patch by Cédric Krier.
2011-12-18 19:27:45 +01:00
Charles-François Natali
6d5f9e73d9
Issue #11870 : threading: Properly reinitialize threads internal locks and
...
condition variables to avoid deadlocks in child processes.
2011-12-18 18:35:09 +01:00
Charles-François Natali
cf53ae2171
Issue #8035 : urllib: Fix a bug where the client could remain stuck after a
...
redirection or an error.
2011-12-18 16:05:07 +01:00
Benjamin Peterson
0296a56520
NULL and no exception set from tp_iternext means StopIteration
2012-01-13 14:54:31 -05:00
Benjamin Peterson
9a80fa81b0
add test, which was missing from d64ac9ab4cd0
2012-01-13 14:39:38 -05:00
Georg Brandl
bc3b682923
Closes #13761 : add a "flush" keyword argument to print().
2012-01-13 19:41:25 +01:00
Antoine Pitrou
5136ac0ca2
Issue #13645 : pyc files now contain the size of the corresponding source
...
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
2012-01-13 18:52:16 +01:00
Nick Coghlan
1f7ce62bd6
Implement PEP 380 - 'yield from' ( closes #11682 )
2012-01-13 21:43:40 +10:00
Antoine Pitrou
3a5d4cb940
Issue #13748 : Raw bytes literals can now be written with the `rb` prefix as well as `br`.
2012-01-12 22:46:19 +01:00
Antoine Pitrou
b63a450cc4
test_strlit was never run
2012-01-12 22:38:13 +01:00
Benjamin Peterson
b2bf01d824
use full unicode mappings for upper/lower/title case ( #12736 )
...
Also broaden the category of characters that count as lowercase/uppercase.
2012-01-11 18:17:06 -05:00
Antoine Pitrou
9007f72db0
Remove unused certificate from the test directory.
2012-01-10 23:46:26 +01:00
Charles-François Natali
76961faaa0
Issue #13757 : Change os.fdlistdir() so that it duplicates the passed file
...
descriptor (instead of closing it).
2012-01-10 20:25:09 +01:00
Terry Jan Reedy
8d172343ad
Merge with 3.2
2012-01-09 18:33:27 -05:00
Charles-François Natali
dc3044c704
Issue #12760 : Add a create mode to open(). Patch by David Townshend.
2012-01-09 22:40:02 +01:00
Raymond Hettinger
7b7caa8ec6
Fix nasty typo
2012-01-09 20:02:24 +00:00
Giampaolo Rodola'
8bc8585873
provide a common method to check for RETR_DATA validity, first checking the expected len and then the actual data content; this way we get a failure on len mismatch rather than content mismatch (which is very long and unreadable)
2012-01-09 17:10:10 +01:00
Raymond Hettinger
0c5e52f0bd
Make the docstring style consistent.
2012-01-09 06:17:39 +00:00
Raymond Hettinger
61bd72924e
Improve clarity with keyword argument for block. Move nowait methods together.
2012-01-09 06:02:08 +00:00
Raymond Hettinger
143f51ade5
Minor code clean-ups and beautifications.
2012-01-09 05:32:01 +00:00
Charles-François Natali
7546ad327d
Issue #13739 : In os.listdir(), rewind the directory stream (so that listdir()
...
can be called again on the same open file).
2012-01-08 18:34:06 +01:00
Ross Lagerwall
69f39a53f6
Merge with 3.2 for #12364 .
2012-01-08 08:42:03 +02:00
Raymond Hettinger
7540427434
Simplify the code using with-statements.
2012-01-07 15:32:52 -08:00
Vinay Sajip
2c94cdde6d
Closes #13732 : now use os.linesep instead of a literal newline.
2012-01-07 23:26:17 +00:00
Charles-François Natali
61d28d6a74
Issue #13502 : threading: Fix a race condition in Event.wait() that made it
...
return False when the event was set and cleared right after.
2012-01-07 18:26:39 +01:00
Antoine Pitrou
0a08d7a095
Issue #9993 : When the source and destination are on different filesystems,
...
and the source is a symlink, shutil.move() now recreates a symlink on the
destination instead of copying the file contents.
Patch by Jonathan Niehof and Hynek Schlawack.
2012-01-06 20:16:19 +01:00
Lars Gustäbel
8f771a4716
Merge from 3.2: Issue #12926 : Fix a bug in tarfile's link extraction.
...
On platforms that do not support (symbolic) links, tarfile offers a
work-around and extracts a link in an archive as the regular file the link is
pointing to. On other platforms, this code was accidentally executed even
after the link had been successfully extracted which failed due to the already
existing link.
2012-01-05 18:53:00 +01:00
Antoine Pitrou
f7e7818e24
Issue #13713 : fix a regression in HTTP chunked reading after 806cfe39f729
...
(originally issue #13464 : Add a readinto() method to http.client.HTTPResponse)
2012-01-04 18:57:22 +01:00
Benjamin Peterson
d710d147f6
convince regrtest.py we aren't modifying _CONFIG_VARS
2012-01-04 10:12:14 -06:00
Vinay Sajip
2549f87520
Closes #13699 . Skipped two tests if Python is optimised.
2012-01-04 12:07:30 +00:00
Vinay Sajip
23b94d0b98
Refactored logging rotating handlers for improved flexibility.
2012-01-04 12:02:26 +00:00
Senthil Kumaran
239a0429fd
merge from 3.2
2012-01-04 14:47:30 +08:00
Benjamin Peterson
c095956ca5
merge 3.2
2012-01-03 16:26:34 -06:00
Antoine Pitrou
72aeec35a1
Issue #13636 : Weak ciphers are now disabled by default in the ssl module
...
(except when SSLv2 is explicitly asked for).
2012-01-03 22:49:08 +01:00
Eli Bendersky
74c503b40d
use io.SEEK_* constants instead of os.SEEK_* where an IO stream is seeked, leaving the os.SEEK_* constants only for os.lseek, as documented
2012-01-03 06:26:13 +02:00
Antoine Pitrou
c041ab6c7d
Mock the rename failure a bit better
2012-01-02 19:18:02 +01:00
Charles-François Natali
42663334cd
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
...
Vilmos Nebehaj.
2012-01-02 15:57:30 +01:00
Sandro Tosi
9912b395c3
merge with 3.2
2012-01-01 22:53:29 +01:00
Sandro Tosi
a56ee04536
Issue #13640 : add application/vnd.apple.mpegurl MIME type; (partial) patch by Hiroaki Kawai
2012-01-01 18:34:29 +01:00
Sandro Tosi
35e0275e59
merge with 3.2
2012-01-01 18:05:06 +01:00
Antoine Pitrou
5e8767c764
Fix no-op tests in importlib.
2011-12-30 21:26:08 +01:00
Antoine Pitrou
78091e63d6
Issue #12715 : Add an optional symlinks argument to shutil functions (copyfile, copymode, copystat, copy, copy2).
...
When that parameter is true, symlinks aren't dereferenced and the operation
instead acts on the symlink itself (or creates one, if relevant).
Patch by Hynek Schlawack.
2011-12-29 18:54:15 +01:00
Jason R. Coombs
bbb0803924
Limit test scope to those platforms that can save the target filenames. Reference #11638 .
2011-12-28 10:45:08 -05:00
Benjamin Peterson
70069fcd4b
don't fail if CLOEXEC doesn't exist
2011-12-27 16:52:20 -06:00
Benjamin Peterson
a5f6f2aba3
merge 3.2
2011-12-27 15:17:15 -06:00
Benjamin Peterson
2fb9ae9dfc
add a flags parameter to select.epoll
2011-12-27 15:15:41 -06:00
Jason R. Coombs
e7437a7cb3
Ported some test cases from 2.7 for #11638
2011-12-26 12:17:01 -05:00
Charles-François Natali
78c1b42fde
Issue #13565 : Increase multiprocessing's server socket backlog, to avoid
...
dropped connections in case of simultaneous connection requests.
2011-12-23 19:07:58 +01:00
Antoine Pitrou
5b62942074
Issue #13577 : Built-in methods and functions now have a __qualname__.
...
Patch by sbt.
2011-12-23 12:40:16 +01:00
Senthil Kumaran
d22983d081
merge from 3.2. Minor code style improvements in http.server suggested in Issue13294.
2011-12-23 17:04:23 +08:00
Antoine Pitrou
5285518fe0
Forgot the data file for Diffie-Hellman tests.
2011-12-22 10:05:50 +01:00
Antoine Pitrou
0e576f1f50
Issue #13626 : Add support for SSL Diffie-Hellman key exchange, through the
...
SSLContext.load_dh_params() method and the ssl.OP_SINGLE_DH_USE option.
2011-12-22 10:03:38 +01:00
Michael Foord
85530aa1c3
Merge
2011-12-22 01:15:53 +00:00
Antoine Pitrou
6b15c90fd8
Use context managers in test_ssl to simplify test writing.
2011-12-21 16:54:45 +01:00
Antoine Pitrou
f0a49a9e27
Issue #13645 : fix test_import failure when run immediately after test_coding.
2011-12-21 15:53:16 +01:00
Senthil Kumaran
ea6b4187cf
Issue 13620 - Support chrome browser in webbrowser.py module.
2011-12-21 22:20:32 +08:00
Antoine Pitrou
de911b2915
Issue #12708 : Add starmap() and starmap_async() methods (similar to itertools.starmap()) to multiprocessing.Pool.
...
Patch by Hynek Schlawack.
2011-12-21 11:03:24 +01:00
Antoine Pitrou
12f65d1fef
Issue #1785 : Fix inspect and pydoc with misbehaving descriptors.
...
Also fixes issue #13581 : `help(type)` wouldn't display anything.
2011-12-21 09:59:49 +01:00
Antoine Pitrou
501da61671
Fix ssl module compilation if ECDH support was disabled in the OpenSSL build.
...
(followup to issue #13627 )
2011-12-21 09:27:41 +01:00
Antoine Pitrou
1743db5c10
Merge
2011-12-20 14:00:12 +01:00
Antoine Pitrou
0831676962
Issue #13637 : "a2b" functions in the binascii module now accept ASCII-only unicode strings.
2011-12-20 13:58:41 +01:00
Charles-François Natali
29b15d11bb
Followup to issue #11867 : Use socketpair(), since FreeBSD < 8 doesn't really
...
support multiprocessing.Event.
2011-12-20 11:49:25 +01:00
Antoine Pitrou
8691bff6db
Fix for buggy test
2011-12-20 10:47:42 +01:00
Antoine Pitrou
8abdb8abd8
Issue #13634 : Add support for querying and disabling SSL compression.
2011-12-20 10:13:40 +01:00
Giampaolo Rodola'
2fa22818bd
(bug #8684 ) fix 'fedora without thread buildbot' as per http://bugs.python.org/issue8684
2011-12-19 19:12:01 +01:00
Antoine Pitrou
923df6f22a
Issue #13627 : Add support for SSL Elliptic Curve-based Diffie-Hellman
...
key exchange, through the SSLContext.set_ecdh_curve() method and the
ssl.OP_SINGLE_ECDH_USE option.
2011-12-19 17:16:51 +01:00
Antoine Pitrou
d1301953fe
Issue #5424 : add tests for inet_ntoa, inet_ntop, inet_aton and inet_pton.
...
Patch by Philipp Hagemeister.
2011-12-19 16:22:26 +01:00
Charles-François Natali
b01c32dab4
Issue #13453 : Try to increase some socket timeouts to make some buildbots stop
...
failing.
2011-12-19 16:12:59 +01:00
Victor Stinner
d974393419
(Merge 3.2) Issue #13628 : python-gdb.py is now able to retrieve more frames in
...
the Python traceback if Python is optimized.
* delay the lookup of the size_t type, it is not available at startup
* The second argument of the PyFrameObjectPtr constructor is optional, as
done in other constructors
* iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
an empty tuple instead of None if Python is optimized
* Fix py-bt and py-bt-full to handle correctly "optimized" frames
* Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:47:10 +01:00
Antoine Pitrou
6db4944cc5
Issue #13635 : Add ssl.OP_CIPHER_SERVER_PREFERENCE, so that SSL servers
...
choose the cipher based on their own preferences, rather than on the
client's.
2011-12-19 13:27:11 +01:00
Charles-François Natali
bfaa79a982
Issue #11867 : Make test_mailbox.test_lock_conflict deterministic (and fix a
...
race condition).
2011-12-19 12:19:52 +01:00
Ezio Melotti
ca9afca07c
#13576 : merge with 3.2.
2011-12-19 07:35:21 +02:00
Michael Foord
a699a2d0c1
Merge 3.2
2011-12-18 22:09:27 +00:00
Antoine Pitrou
7bfe89945b
Followup to #7502 : add __hash__ method and tests.
2011-12-18 20:22:50 +01:00
Antoine Pitrou
92d4acb7a7
Issue #7502 : Fix equality comparison for DocTestCase instances.
...
Patch by Cédric Krier.
2011-12-18 19:29:06 +01:00
Antoine Pitrou
0f694d72a2
Merge
2011-12-18 19:00:16 +01:00
Antoine Pitrou
fb0901c968
In the test SSL server, also output the cipher name
2011-12-18 19:00:02 +01:00
Charles-François Natali
b055bf6acb
Issue #11870 : threading: Properly reinitialize threads internal locks and
...
condition variables to avoid deadlocks in child processes.
2011-12-18 18:45:16 +01:00
Charles-François Natali
3c4dcea712
Issue #8035 : urllib: Fix a bug where the client could remain stuck after a
...
redirection or an error.
2011-12-18 16:08:33 +01:00
Victor Stinner
f8eac00779
Issue #13623 : Fix a performance regression introduced by issue #12170 in
...
bytes.find() and handle correctly OverflowError (raise the same ValueError than
the error for -1).
2011-12-18 01:17:41 +01:00
Gregory P. Smith
e85488c6f4
Mention that level can be an int or str in the setLevel docstring.
2011-12-17 12:36:34 -08:00
Antoine Pitrou
1637487a0c
Skip test if the path is too long for a AF_UNIX socket
2011-12-16 15:04:12 +01:00
Antoine Pitrou
6ec29e299b
Issue #8373 : The filesystem path of AF_UNIX sockets now uses the filesystem
...
encoding and the surrogateescape error handler, rather than UTF-8. Patch
by David Watson.
2011-12-16 14:46:36 +01:00
Benjamin Peterson
ca81bf76e5
fix this test to actually test something ( closes #13606 )
...
Thanks Mark Shannon.
2011-12-15 15:57:15 -05:00
Victor Stinner
9c49036e70
(Merge 3.2) Issue #13545 : Fix platform.libc_version() is the SO version is missing
2011-12-15 21:42:28 +01:00
Victor Stinner
87448819ab
Issue #13545 : Fix platform.libc_version() is the SO version is missing
2011-12-15 21:42:03 +01:00
Benjamin Peterson
bfebb7b54a
improve abstract property support ( closes #11610 )
...
Thanks to Darren Dale for patch.
2011-12-15 15:34:02 -05:00
Antoine Pitrou
e0e2735f41
Fix OSError.__init__ and OSError.__new__ so that each of them can be
...
overriden and take additional arguments (followup to issue #12555 ).
2011-12-15 14:31:28 +01:00
Meador Inge
96ff0840b6
Issue #13593 : updating the importlib utility decorators for __qualname__.
2011-12-14 22:53:13 -06:00
Meador Inge
d7afeeeb8d
Issue #13591 : import_module potentially imports a module twice.
2011-12-14 22:27:28 -06:00
Meador Inge
416f12ddb3
Issue #13591 : import_module potentially imports a module twice.
2011-12-14 22:23:46 -06:00
Ned Deily
1b0b6ae36b
Issue #4625 : If IDLE cannot write to its recent file or breakpoint
...
files, display a message popup and continue rather than crash.
(original patch by Roger Serwy)
2011-12-14 15:03:31 -08:00
Ned Deily
f505b7425c
Issue #4625 : If IDLE cannot write to its recent file or breakpoint
...
files, display a message popup and continue rather than crash.
(original patch by Roger Serwy)
2011-12-14 14:58:24 -08:00
Charles-François Natali
77e1bfc377
Issue #13453 : Fix a race condition in test_poplib.
2011-12-14 19:29:56 +01:00
Charles-François Natali
83ef2549de
Issue #13453 : Fix a race condition in test_poplib.
2011-12-14 19:28:56 +01:00
Giampaolo Rodola'
556ba04a8d
Fix #13449 : add 'blocking' parameter to sched.scheduler.run() so that the scheduler can be used in non-blocking applications
2011-12-14 14:38:45 +01:00
Giampaolo Rodola'
73520d57eb
Fix #8684 : make sched.scheduler class thread-safe
2011-12-14 13:34:26 +01:00
Alexandre Vassalotti
a23d65ccfe
Merge 3.2
2011-12-13 13:22:42 -05:00
Alexandre Vassalotti
3bfc65a25b
Issue #13505 : Make pickling of bytes object compatible with Python 2.
...
Initial patch by sbt.
2011-12-13 13:08:09 -05:00
Florent Xicluna
aa6c1d240f
Issue #13575 : there is only one class type.
2011-12-12 18:54:29 +01:00
Antoine Pitrou
9d57481f04
Issue #13577 : various kinds of descriptors now have a __qualname__ attribute.
...
Patch by sbt.
2011-12-12 13:47:25 +01:00
Meador Inge
ff7f64ca0e
Issue #13544 : Add __qualname__ to functools.WRAPPER_ASSIGNMENTS.
...
Patch by Filip Gruszczyński.
2011-12-11 22:37:31 -06:00
Giampaolo Rodola'
836e9aab2f
fix #13563 : make use of with statement in ftplib.py where needed
2011-12-10 21:25:04 +01:00
Florent Xicluna
313b2ad1a8
Fix imports in xml.dom.
2011-12-10 21:14:53 +01:00
Lars Gustäbel
0a9dd2f11d
Issue #5689 : Add support for lzma compression to the tarfile module.
2011-12-10 20:38:14 +01:00
Benjamin Peterson
ce2af33562
merge 3.2
2011-12-10 12:44:37 -05:00
Benjamin Peterson
b870aa1255
we're always going to have gc
2011-12-10 12:44:25 -05:00
Benjamin Peterson
d3a345a21f
merge 3.2
2011-12-10 12:38:52 -05:00
Benjamin Peterson
964561bb7c
you can't get resource.error if you can't import resource
2011-12-10 12:31:42 -05:00
Victor Stinner
10a6ddb062
Issue #11886 : Fix also test_time for the non-DST timezone name (EST/AEST)
2011-12-10 14:37:53 +01:00
Charles-François Natali
1635e9cc59
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:17:46 +01:00
Charles-François Natali
13859bfedc
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
2011-12-10 13:16:44 +01:00
Florent Xicluna
7f1c15b854
Fix comment in difflib.
2011-12-10 13:02:17 +01:00
Florent Xicluna
67317750af
Issue #13248 : turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd).
2011-12-10 11:07:42 +01:00
Florent Xicluna
1b7458b2a1
Closes #2979 : add parameter 'use_builtin_types' to the SimpleXMLRPCServer.
2011-12-09 22:35:06 +01:00
Victor Stinner
e3b47152a4
Write tests for invalid characters (U+00110000)
...
Test the following functions:
* codecs.raw_unicode_escape_decode()
* PyUnicode_FromWideChar()
* PyUnicode_FromUnicode()
* "unicode_internal" and "unicode_escape" decoders
2011-12-09 20:49:49 +01:00
Victor Stinner
7f54f75900
Issue #13441 : Enable the workaround for Solaris locale bug
...
Skip locales triggering the mbstowcs() bug. I collected the locale list thanks
my previous commit:
* hu_HU (ISO8859-2): character U+30000020
* de_AT (ISO8859-1): character U+30000076
* cs_CZ (ISO8859-2): character U+30000020
* sk_SK (ISO8859-2): character U+30000020
* pl_PL (ISO8859-2): character U+30000020
* fr_CA (ISO8859-1): character U+30000020
2011-12-09 11:29:44 +01:00
Victor Stinner
69291c4af0
Issue #13441 : Skip some locales (e.g. cs_CZ and hu_HU) on Solaris to workaround
...
a mbstowcs() bug. For example, on Solaris, the hu_HU locale uses the locale
encoding ISO-8859-2, the thousauds separator is b'\xA0' and it is decoded as
U+30000020 (an invalid character) by mbstowcs().
The workaround is not enabled yet (commented): I would like first to get
more information about the failing locales.
2011-12-09 10:28:45 +01:00
Victor Stinner
5446bba269
Issue #13441 : Don't test the hu_HU locale on Solaris to workaround a mbstowcs()
...
bug. On Solaris, if the locale is hu_HU (and if the locale encoding is not
UTF-8), the thousauds separator is b'\xA0' which is decoded as U+30000020
instead of U+0020 by mbstowcs().
2011-12-09 01:20:03 +01:00
Victor Stinner
706141316a
Issue #13441 : Log the locale when localeconv() fails
2011-12-08 23:42:52 +01:00
Victor Stinner
bc9f0c68f5
(Merge 3.2) Issue #11886 : workaround an OS bug (time zone data) in test_time
...
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
2011-12-08 00:33:14 +01:00
Victor Stinner
0cd479074d
Issue #11886 : workaround an OS bug (time zone data) in test_time
...
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
2011-12-08 00:32:51 +01:00
Ezio Melotti
96e76775bc
#13531 : merge with 3.2.
2011-12-08 00:03:59 +02:00
Ezio Melotti
eb5879414d
#13531 : add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
2011-12-08 00:02:00 +02:00
Ned Deily
3be637e67f
Issue #8641 : Update IDLE 3 syntax coloring to recognize b".." and not u"..".
...
(Patch by Tal Einat)
2011-12-07 01:12:50 -08:00
Ned Deily
2f0ad742b5
Issue #8641 : Update IDLE 3 syntax coloring to recognize b".." and not u"..".
...
(Patch by Tal Einat)
2011-12-07 01:08:35 -08:00
Antoine Pitrou
4ce6aa4ba7
Fix dangling whitespace
2011-12-06 22:34:36 +01:00