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
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
Benjamin Peterson
0e61350d3a
propgate error in other conditions
2011-12-27 15:16:34 -06: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
2bc801c4ea
Issue #7502 : Fix equality comparison for DocTestCase instances.
...
Patch by Cédric Krier.
2011-12-18 19:27:45 +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
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
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
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
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
35e0275e59
merge with 3.2
2012-01-01 18:05:06 +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
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
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
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
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
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
fb0901c968
In the test SSL server, also output the cipher name
2011-12-18 19:00:02 +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
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
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
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
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
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
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
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
Antoine Pitrou
38d9643d5e
Issue #13464 : Add a readinto() method to http.client.HTTPResponse.
...
Patch by Jon Kuhn.
2011-12-06 22:33:57 +01:00
Lars Gustäbel
bb44b73e17
Remove no longer needed work-around for bz2 file object support.
2011-12-06 13:44:10 +01:00
Lars Gustäbel
45fb082180
Merge with 3.2: Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 13:00:58 +01:00
Lars Gustäbel
ed1ac587df
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 12:56:38 +01:00
Jason R. Coombs
9c3895f376
Corrected order of parameters to HTTPError in test_urllib2.py.
2011-12-04 08:14:18 -05:00
Jason R. Coombs
7ff21d7a3c
Pass positional arguments - HTTPError is not accepting keyword arguments. Reference #13211 and #12555 .
2011-12-03 23:18:11 -05:00
Jason R. Coombs
0612e8c2a2
Merged fix for #13211 from 3.2
2011-12-03 09:39:58 -05:00
Ezio Melotti
b3d188f779
#8414 : merge with 3.2.
2011-12-02 18:23:54 +02:00
Ezio Melotti
6cc5bf7656
#8414 : add more tests for "assert". Initial patch by Gregory Nofi.
2011-12-02 18:22:52 +02:00
Nadeem Vawda
44ae4a2a22
Make error handling in BZ2File.{readable,seekable,writable,fileno} consistent with TextIOWrapper.
...
Also, add tests for these methods.
2011-11-30 17:39:30 +02:00
Nadeem Vawda
3ff069ebc6
Issue #6715 : Add module for compression using the LZMA algorithm.
2011-11-30 00:25:06 +02:00
Éric Araujo
c8e032006a
Merge 3.2
2011-11-29 17:14:27 +01:00
Éric Araujo
ff91306127
Add a regrtest cleanup check for shutil registries
2011-11-29 16:45:07 +01:00
Antoine Pitrou
1439c77417
Merge test_xmlrpc_net fixes (issue #13434 )
2011-11-28 21:15:22 +01:00
Antoine Pitrou
f1c141b7fb
Fix resource warning in test_xmlrpc_net
2011-11-28 21:14:46 +01:00
Antoine Pitrou
5a88c38fab
Issue #13434 : skip the time.xmlrpc.com test, and reenable the buildbot test.
2011-11-28 21:12:24 +01:00
Antoine Pitrou
39a73a4cfa
Issue #7111 : Python can now be run without a stdin, stdout or stderr stream.
...
It was already the case with Python 2. However, the corresponding
sys module entries are now set to None (instead of an unusable file object).
2011-11-28 19:09:45 +01:00
Antoine Pitrou
11942a58a1
Issue #7111 : Python can now be run without a stdin, stdout or stderr stream.
...
It was already the case with Python 2. However, the corresponding
sys module entries are now set to None (instead of an unusable file object).
2011-11-28 19:08:36 +01:00
Meador Inge
31b798d3c8
Issue #12618 : py_compile cannot create files in current directory
...
Initial patch by Sjoerd de Vries.
2011-11-28 09:34:47 -06:00
Meador Inge
22b9b37915
Issue #12618 : py_compile cannot create files in current directory
...
Initial patch by Sjoerd de Vries.
2011-11-28 09:27:32 -06:00
Victor Stinner
d1b097f884
Issue #13415 : test_curses skips unencodable characters
2011-11-28 07:26:19 +01:00
Charles-François Natali
7be8f68d37
Issue #13415 : Skip test_os.test_unset_error on FreeBSD and OS X.
2011-11-27 12:49:27 +01:00
Victor Stinner
756c6ecdc4
Issue #13415 : Help to locate curses.h when _curses module is linked to ncursesw
2011-11-27 00:19:53 +01:00
Antoine Pitrou
5604ef3e36
Issue #13444 : When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.
...
This also adds a test for issue #5319 , whose resolution introduced the issue.
2011-11-26 22:02:29 +01:00
Antoine Pitrou
d7c8fbf89e
Issue #13444 : When stdout has been closed explicitly, we should not attempt to flush it at shutdown and print an error.
...
This also adds a test for issue #5319 , whose resolution introduced the issue.
2011-11-26 21:59:36 +01:00
Meador Inge
59ff2c5640
Issue #12618 : fix py_compile unit tests to handle different drives on Windows
2011-11-26 11:39:49 -06:00
Meador Inge
fb36b3f6a0
Issue #12618 : fix py_compile unit tests to handle different drives on Windows
2011-11-26 11:37:02 -06:00
Giampaolo Rodola'
6a5dcd4b2a
sched.py: fix test_queue by making sure that queue property returns an orderd list of upcoming events
2011-11-26 12:17:42 +01:00
Charles-François Natali
2966f10ec0
Issue #13415 : Skip test_os.test_unset_error on FreeBSD < 7 and OS X < 10.6
...
(where unsetenv() doesn't return a value).
2011-11-26 11:32:46 +01:00
Meador Inge
261a6d7c21
Issue #12618 : create unit tests for the py_compile module
2011-11-25 23:40:53 -06:00
Meador Inge
6f16660ca7
Issue #12618 : create unit tests for the py_compile module
2011-11-25 23:36:48 -06:00
Meador Inge
4bc45b7a9f
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:37:44 -06:00
Meador Inge
11e381310b
Issue #13380 : add an internal function for resetting the ctypes caches
2011-11-25 22:33:32 -06:00
Antoine Pitrou
4d098735c6
Some libcs' snprintf may output a leading minus sign when %p-formatting
...
(should fix a failure on the OpenIndiana AMD64 buildbot)
2011-11-26 01:42:03 +01:00
Victor Stinner
0fdfceb782
Issue #12567 : The curses module uses Unicode functions for Unicode arguments
...
when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8.
2011-11-25 22:10:02 +01:00
Antoine Pitrou
c24847658f
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:29:27 +01:00
Antoine Pitrou
4558bad7d6
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:28:15 +01:00
Victor Stinner
6345be9a14
Close #13093 : PyUnicode_EncodeDecimal() doesn't support error handlers
...
different than "strict" anymore. The caller was unable to compute the
size of the output buffer: it depends on the error handler.
2011-11-25 20:09:01 +01:00
Antoine Pitrou
86a36b500a
PEP 3155 / issue #13448 : Qualified name for classes and functions.
2011-11-25 18:56:07 +01:00
Antoine Pitrou
0e86a5842d
Issue #9957 : SpooledTemporaryFile.truncate() now accepts an optional size parameter, as other file-like objects.
...
Patch by Ryan Kelly.
2011-11-25 18:03:09 +01:00
Victor Stinner
9329029ed7
(Merge 3.2) Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:32:28 +01:00
Victor Stinner
b3f8268031
Issue #13436 : Fix unsetenv() test on Windows
2011-11-22 22:30:19 +01:00
Victor Stinner
cbbd562f00
Merge branch default
2011-11-22 22:23:23 +01:00
Victor Stinner
896f4714f4
Merge branch 3.2
2011-11-22 22:22:26 +01:00
Victor Stinner
65170954e0
(Merge 3.2) Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:16:17 +01:00
Amaury Forgeot d'Arc
942d5ba125
Merge branch 3.2
2011-11-22 22:02:01 +01:00
Victor Stinner
60b385e813
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:01:28 +01:00
Amaury Forgeot d'Arc
58e8761da6
Issue #13436 : Fix a bogus error message when an AST object was passed
...
an invalid integer value.
2011-11-22 21:51:55 +01:00
Charles-François Natali
221ef67fd6
Issue #12156 : Skip test_multiprocessing on systems which don't support enough
...
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:55:22 +01:00
Charles-François Natali
3be00953b2
Issue #12156 : Skip test_multiprocessing on systems which don't support enough
...
POSIX semaphores (among which FreeBSD < 8).
2011-11-22 18:36:39 +01:00
Giampaolo Rodola'
be55d99b3d
Fix 13245:
...
sched.scheduler class constructor's timefunc and delayfunct parameters are now optional.
scheduler.enter and scheduler.enterabs methods gained a new kwargs parameter.
Patch contributed by Matt Mulsow.
2011-11-22 13:33:34 +01:00
Victor Stinner
b84d723509
(Merge 3.2) Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
2011-11-22 01:50:07 +01:00
Victor Stinner
ab1d16b456
Issue #13093 : Fix error handling on PyUnicode_EncodeDecimal()
...
* Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII()
* Remove the unused "e" variable in replace()
2011-11-22 01:45:37 +01:00
Victor Stinner
c814a38f3f
Add a test on str.__getnewargs__()
...
It tests indirectly PyUnicode_Copy(): ensure that the string is a copy.
2011-11-22 01:06:15 +01:00
Victor Stinner
42bf77537e
Rewrite PyUnicode_EncodeDecimal() to use the new Unicode API
...
Add tests for PyUnicode_EncodeDecimal() and
PyUnicode_TransformDecimalToASCII().
2011-11-21 22:52:58 +01:00
Antoine Pitrou
ce4a9da705
Issue #13411 : memoryview objects are now hashable when the underlying object is hashable.
2011-11-21 20:46:33 +01:00
Antoine Pitrou
7fe601c5bf
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:22:01 +01:00
Antoine Pitrou
58fcf9f801
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:16:44 +01:00
Victor Stinner
41dde32bf2
Issue #13441 : Reenable strxfrm() tests on Solaris
2011-11-21 18:04:30 +01:00
Victor Stinner
0293db69a0
Issue #13441 : Disable temporary localeconv() tests on Solaris
2011-11-21 03:19:05 +01:00
Victor Stinner
a1c03b0a58
Issue #13441 : Disable temporary strxfrm() tests on Solaris
2011-11-21 01:02:23 +01:00
Victor Stinner
242b6ea975
(Merge 3.2) Close #13401 : Skip TestFileTypeW of test_argparse if the current user is root
...
Patch written by Arfrever Frehtes Taifersar Arahesis.
2011-11-20 23:10:12 +01:00
Victor Stinner
a04b39b261
Close #13401 : Skip TestFileTypeW of test_argparse if the current user is root
...
Patch written by Arfrever Frehtes Taifersar Arahesis.
2011-11-20 23:09:09 +01:00
Ezio Melotti
4a7abe7ca6
#11112 : merge with 3.2.
2011-11-18 18:35:53 +02:00
Ezio Melotti
7f78ddc3ad
#11112 : Fix typo in a base class in test_socket.
2011-11-18 18:33:14 +02:00
Ezio Melotti
304261e85d
#13358 : merge with 3.2.
2011-11-18 18:02:59 +02:00
Ezio Melotti
15cb489234
#13358 : HTMLParser now calls handle_data only once for each CDATA.
2011-11-18 18:01:49 +02:00
Ezio Melotti
def4728fd6
#4147 : merge with 3.2.
2011-11-18 17:36:07 +02:00
Ezio Melotti
8008f2aba0
#4147 : minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg.
2011-11-18 17:34:26 +02:00
Ezio Melotti
adc417ce36
#13406 : fix more deprecation warnings and move the deprecation of unicode-internal earlier in the code.
2011-11-17 12:23:34 +02:00
Victor Stinner
f7c5ae2257
Issue #13374 : Deprecate os.getcwdb() on Windows
2011-11-16 23:43:07 +01:00
Ezio Melotti
345379a7f8
#13406 : correct the error message in check_warnings too.
2011-11-16 09:54:19 +02:00
Ezio Melotti
11060a4a48
#13406 : silence deprecation warnings in test_codecs.
2011-11-16 09:39:10 +02:00
Victor Stinner
2821644d8a
Issue #13374 : Skip deprecation tests for os.symlink() on Windows XP
...
To avoid a NotImplementedError('CreateSymbolicLinkW not found') error.
2011-11-16 00:34:44 +01:00
Victor Stinner
040e16e3e8
"unicode_internal" codec has been deprecated: fix related tests
2011-11-15 22:44:05 +01:00
Victor Stinner
1ab6c2d2c2
Issue #13374 : The Windows bytes API has been deprecated in the os module. Use
...
Unicode filenames instead of bytes filenames to not depend on the ANSI code
page anymore and to support any filename.
2011-11-15 22:27:41 +01:00
Florent Xicluna
6166519d2b
Closes #13297 : use bytes type to send and receive binary data through XMLRPC.
2011-11-15 20:53:25 +01:00
Éric Araujo
3f2ba3bd86
Branch merge
2011-11-15 16:12:22 +01:00
Antoine Pitrou
13f8b682a7
Mark test_devpoll as unexpected on most platforms
2011-11-15 15:25:59 +01:00
Antoine Pitrou
78edf7576e
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:44:16 +01:00
Antoine Pitrou
5418ee0b9a
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:42:21 +01:00
Jesus Cea
d8b9ae6e8f
Issue #6397 : Support '/dev/poll' polling objects in select module, under Solaris & derivatives.
2011-11-14 19:07:41 +01:00
Éric Araujo
bfc972974b
Fix a few typos
2011-11-14 18:18:15 +01:00
Ezio Melotti
d5d4406c8e
#1745761 , #755670 , #13357 , #12629 , #1200313 : merge with 3.2.
2011-11-14 18:56:11 +02:00
Ezio Melotti
c2fe57762b
#1745761 , #755670 , #13357 , #12629 , #1200313 : improve attribute handling in HTMLParser.
2011-11-14 18:53:33 +02:00