Victor Stinner
a89ecc7d23
Cleanup test_tracemalloc.py. Patch written by Vajrasky Kok.
2013-11-25 09:29:45 +01:00
Guido van Rossum
16c42391f1
asyncio: Fix docstring of get_nowait().
2013-11-24 22:41:35 -08:00
Guido van Rossum
a58d1c32f8
asyncio: Add BoundedSemaphore to export list in locks.__all__.
2013-11-24 22:32:09 -08:00
Ezio Melotti
5833c00427
#19620 : merge with 3.3.
2013-11-25 05:16:09 +02:00
Ezio Melotti
4bcc796acc
#19620 : Fix typo in docstring (noticed by Christopher Welborn).
2013-11-25 05:14:51 +02:00
Christian Heimes
217f5c4eda
Issue #19758 : silence PendingDeprecationWarnings in test_hmac
...
I also removed some bare excepts from the tests.
2013-11-24 23:14:16 +01:00
Larry Hastings
99e101013f
Merged 3.4.0b1 release head back into trunk.
2013-11-24 14:05:57 -08:00
Serhiy Storchaka
2480c2ed59
Issue #15204 : Silence and check the 'U' mode deprecation warnings in tests.
...
Changed deprecation message in the fileinput module.
2013-11-24 23:13:26 +02:00
Stefan Krah
daa96b7669
Merge from 3.3.
2013-11-24 19:56:23 +01:00
Stefan Krah
45059eb1d0
1) Prepare libmpdec for the 2.4.0 release. None of the following changes affects
...
_decimal:
o Make all "mpd_t to C integer" conversion functions available in both the
64-bit and the 32-bit versions.
o Make all mixed mpd_t/C integer arithmetic functions available in the
32-bit version.
o Better handling of __STDC_LIMIT_MACROS for C++ users.
o Add struct tags (at the request of C++ users).
2) Check for libmpdec.so.2 if --with-system-libmpdec is used.
2013-11-24 19:44:57 +01:00
Victor Stinner
f4a4898c18
Issue #19753 : Try to fix test_gdb on SystemZ buildbot
2013-11-24 18:55:25 +01:00
Richard Oudkerk
71196e7f55
Issue #19740 : Use WaitForSingleObject() instead of trusting TimerOrWaitFired.
2013-11-24 17:50:40 +00:00
Serhiy Storchaka
b5d386314f
Issue #19545 : Avoid chained exceptions while passing stray % to
...
time.strptime(). Initial patch by Claudiu Popa.
2013-11-24 18:17:11 +02:00
Serhiy Storchaka
cdac302af3
Issue #19545 : Avoid chained exceptions while passing stray % to
...
time.strptime(). Initial patch by Claudiu Popa.
2013-11-24 18:15:37 +02:00
Larry Hastings
7e611dab4a
Bump version number to 3.4.0b1.
2013-11-24 06:59:35 -08:00
Larry Hastings
37b7900fcf
Updated pydoc topics for 3.4.0b1.
2013-11-24 06:53:15 -08:00
Antoine Pitrou
a8892a1aa5
Issue #19743 : fix test_gdb on some optimized Python builds
2013-11-24 14:58:17 +01:00
Antoine Pitrou
f6eb31fdc6
Issue #19743 : fix test_gdb on some optimized Python builds
2013-11-24 14:58:17 +01:00
Antoine Pitrou
3ab9cfc501
Selectively re-enable framing tests
2013-11-24 14:33:37 +01:00
Alexandre Vassalotti
c49477b184
Make Ellipsis and NotImplemented picklable through the reduce protocol.
2013-11-24 02:53:45 -08:00
Alexandre Vassalotti
4c05d3bc56
Make built-in methods picklable through the reduce protocol.
2013-11-24 02:41:05 -08:00
Zachary Ware
7119b454fd
Issue #3158 : Relax new doctests a bit.
...
Apparently, the number of objects with docstrings in builtins varies
with --with-pydebug (non-debug has one fewer).
Also, skip the new tests entirely if built --without-doc-strings.
2013-11-24 02:21:57 -06:00
Zachary Ware
fe94d8adfc
Merge heads
2013-11-24 01:20:14 -06:00
Zachary Ware
a4b7a7548c
Issue #3158 : doctest can now find doctests in functions and methods
...
written in C.
As a part of this, a few doctests have been added to the builtins module
(on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all
platforms) on float, and test_builtins now runs doctests in builtins.
2013-11-24 01:19:09 -06:00
Nick Coghlan
1d1d834328
Issue #19734 : Also run pip version check in isolated mode
2013-11-24 16:49:20 +10:00
Nick Coghlan
091167c1ca
Issue #19734 : Ensure test_venv ignores PIP_REQUIRE_VIRTUALENV
2013-11-24 14:58:31 +10:00
Alexandre Vassalotti
5e411b7035
Disable annoying tests which doesn't work optimized pickles.
2013-11-23 20:58:24 -08:00
Alexandre Vassalotti
b6a2f2a0d1
Make framing optional in pickle protocol 4.
...
This will allow us to control in the future whether to use framing or not.
For example, we may want to turn it off for tiny pickle where it doesn't
help.
The change also improves performance slightly:
### fastpickle ###
Min: 0.608517 -> 0.557358: 1.09x faster
Avg: 0.798892 -> 0.694738: 1.15x faster
Significant (t=3.45)
Stddev: 0.17145 -> 0.12704: 1.3496x smaller
Timeline: http://goo.gl/3xQE1J
### pickle_dict ###
Min: 0.669920 -> 0.615271: 1.09x faster
Avg: 0.733633 -> 0.645058: 1.14x faster
Significant (t=5.05)
Stddev: 0.12041 -> 0.02961: 4.0662x smaller
Timeline: http://goo.gl/LpLSXI
### pickle_list ###
Min: 0.397583 -> 0.368112: 1.08x faster
Avg: 0.412784 -> 0.397223: 1.04x faster
Significant (t=2.78)
Stddev: 0.01518 -> 0.03653: 2.4068x larger
Timeline: http://goo.gl/v39E59
### unpickle_list ###
Min: 0.692935 -> 0.594870: 1.16x faster
Avg: 0.730012 -> 0.628395: 1.16x faster
Significant (t=17.76)
Stddev: 0.02720 -> 0.02995: 1.1012x larger
Timeline: http://goo.gl/2P9AEt
The following not significant results are hidden, use -v to show them:
fastunpickle.
2013-11-23 20:30:03 -08:00
Nick Coghlan
1889623e1a
Issue #19734 : ctypes resource management fixes
2013-11-24 12:53:50 +10:00
Nick Coghlan
878d258a22
Issue #19744 (temp workaround): without ssl, skip pip test
2013-11-24 12:45:25 +10:00
Nick Coghlan
1631b9b4b5
Issue #19734 : venv still needs isolated mode
2013-11-24 11:53:03 +10:00
Nick Coghlan
6fd12f2b33
Issue 19734: better diagnostics for test_venv failures
2013-11-24 11:36:31 +10:00
Larry Hastings
fcafe43320
Fix inspect.signature tests for builtins when docstrings are compiled out.
2013-11-23 17:35:48 -08:00
Antoine Pitrou
3b7b1e533e
Try to fix test_tarfile under Windows
2013-11-24 01:55:05 +01:00
Serhiy Storchaka
5e8c8091ee
Build a list of supported test tarfiles dynamically for CLI "test" command
...
tests (issue13477).
2013-11-24 02:30:59 +02:00
Larry Hastings
c8635b4192
Don't attempt to run the _opcode test if it wasn't built.
2013-11-23 16:11:17 -08:00
Serhiy Storchaka
d27b455bbc
Issue #13477 : Added command line interface to the tarfile module.
...
Original patch by Berker Peksag.
2013-11-24 01:53:29 +02:00
Larry Hastings
44e2eaab54
Issue #19674 : inspect.signature() now produces a correct signature
...
for some builtins.
2013-11-23 15:37:55 -08:00
Guido van Rossum
7fa6e1aeea
Keep asyncio working with Python 3.3 too.
2013-11-23 15:36:43 -08:00
Guido van Rossum
085869bfee
asyncio: Change bounded semaphore into a subclass, like threading.[Bounded]Semaphore.
2013-11-23 15:09:16 -08:00
Larry Hastings
3a9079742f
Issue #19722 : Added opcode.stack_effect(), which accurately
...
computes the stack effect of bytecode instructions.
2013-11-23 14:49:22 -08:00
Christian Heimes
67986f9431
Issue #19735 : Implement private function ssl._create_stdlib_context() to
...
create SSLContext objects in Python's stdlib module. It provides a single
configuration point and makes use of SSLContext.load_default_certs().
2013-11-23 22:43:47 +01:00
Serhiy Storchaka
32eddc1bbc
Issue #16203 : Add re.fullmatch() function and regex.fullmatch() method,
...
which anchor the pattern at both ends of the string to match.
Original patch by Matthew Barnett.
2013-11-23 23:20:30 +02:00
Serhiy Storchaka
a7fbf58021
Merge heads
2013-11-23 22:45:06 +02:00
Serhiy Storchaka
5c24d0e504
Issue #13592 : Improved the repr for regular expression pattern objects.
...
Based on patch by Hugo Lopes Tavares.
2013-11-23 22:42:43 +02:00
Gregory P. Smith
057e58dc01
Fix test_pickletools.py doctest's on 32-bit platforms. I hate doctests.
2013-11-23 20:40:46 +00:00
Antoine Pitrou
d5df19461d
test_pickle: speed up test_long
2013-11-23 21:20:49 +01:00
Serhiy Storchaka
3062c9a6c8
Issue #19641 : Added the audioop.byteswap() function to convert big-endian
...
samples to little-endian and vice versa.
2013-11-23 22:26:01 +02:00
Serhiy Storchaka
dd52c5a1c4
Merge heads
2013-11-23 22:12:36 +02:00
Serhiy Storchaka
6787a3806e
Issue #15204 : Deprecated the 'U' mode in file-like objects.
2013-11-23 22:12:06 +02:00