Guido van Rossum
f75debda94
Unsilence several asyncio AIX tests that no longer hang, and silence a new hang.
2013-10-21 20:57:25 -07:00
Ethan Furman
5875d74748
Close #19263 : add tests to ensure __objclass__ correctly set.
2013-10-21 20:45:55 -07:00
Guido van Rossum
934f6ea7fb
Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX hang).
2013-10-21 20:37:14 -07:00
Guido van Rossum
8a0fe85fbe
Avoid test_asyncio hang on AIX.
2013-10-21 20:26:12 -07:00
Christian Tismer
410d931a17
add filtering of individual files to PyZipFile
...
changed output of debug messages to say "path" or "file"
extended test for filtering certain files in a package
added test for filtering files in a python dir (no package)
2013-10-22 04:09:28 +02:00
Guido van Rossum
8da15cc218
asyncio: be more lenient if we don't understand status returned by waitpid().
...
This should have no effect, it's a "shouldn't happe" case.
Also tidied up some comments.
2013-10-21 15:00:44 -07:00
Peter Moody
22c3176426
#17400 ; ipaddress should make it easy to identify rfc6598 addresses
2013-10-21 13:58:06 -07:00
Charles-François Natali
1a82f7e6a5
Fix test_pydoc failure introduced by 2f09a6980e1a (issue #19030 ).
2013-10-21 14:46:34 +02:00
Charles-François Natali
6459025b24
Issue #19170 : telnetlib: use selectors.
2013-10-21 14:02:12 +02:00
Georg Brandl
a606542e95
#19274 : use captured_stdout() in the test suite; add NEWS entry.
2013-10-21 08:29:29 +02:00
Ethan Furman
b0c84cdaac
Issue #19030 : final pieces for proper location of various class attributes located in the metaclass.
...
Okay, hopefully the very last patch for this issue. :/
I realized when playing with Enum that the metaclass attributes weren't always displayed properly.
New patch properly locates DynamicClassAttributes, virtual class attributes (returned by __getattr__ and friends), and metaclass class attributes (if they are also in the metaclass __dir__ method).
Also had to change one line in pydoc to get this to work.
Added tests in test_inspect and test_pydoc to cover these situations.
2013-10-20 22:37:39 -07:00
Christian Tismer
59202e5fc7
add a filterfunc to zip file.PyZipFile.writepy, issue 19274
2013-10-21 03:59:23 +02:00
Guido van Rossum
7be5d7d0e0
Issue 19306: Add extra hints to faulthandler stack dumps that they are upside down.
2013-10-20 18:21:02 -07:00
Ezio Melotti
5c16c2eb45
#8964 : merge with 3.3.
2013-10-21 03:05:46 +03:00
Ezio Melotti
f076f53386
#8964 : fix platform._sys_version to handle IronPython 2.6+.
2013-10-21 03:03:32 +03:00
Ezio Melotti
566a2be95c
#18958 : Improve error message for json.load(s) while passing a string that starts with a UTF-8 BOM.
2013-10-21 02:10:55 +03:00
Ezio Melotti
a0e768ccc2
#19307 : Improve error message for json.load(s) while passing objects of the wrong type.
2013-10-21 01:52:33 +03:00
Benjamin Peterson
6b4f7803f8
cleanup the construction of __qualname__ ( closes #19301 again)
2013-10-20 17:50:28 -04:00
Antoine Pitrou
a7a150c7c6
Close #19297 : fix resource warnings in test_asyncio. Patch by Vajrasky Kok.
2013-10-20 23:26:23 +02:00
Charles-François Natali
5121debebf
Issue #19310 : asyncio: fix child processes reaping logic.
2013-10-20 23:23:44 +02:00
Antoine Pitrou
7d61800489
Skip one asyncio test when IPv6 isn't supported (Windows buildbots)
2013-10-20 21:45:29 +02:00
Antoine Pitrou
cb1fe98f76
Make various asyncio test files individually runnable
2013-10-20 21:02:53 +02:00
Charles-François Natali
bcd76827f4
Issue #19309 : asyncio: make waitpid() wait for all child processes, not only
...
those in the same process group.
2013-10-20 20:31:43 +02:00
Serhiy Storchaka
f3e21ba5af
Make test_audioop discoverable by unittest.
2013-10-20 17:25:34 +03:00
Serhiy Storchaka
6e9e4fe97c
Make test_audioop discoverable by unittest.
2013-10-20 17:24:42 +03:00
Serhiy Storchaka
2acc456c33
Issue #16038 : CVE-2013-1752: ftplib: Limit amount of data read by
...
limiting the call to readline(). Original patch by Michał
Jastrzębski and Giampaolo Rodola.
2013-10-20 17:02:10 +03:00
Serhiy Storchaka
c30b178cbc
Issue #16038 : CVE-2013-1752: ftplib: Limit amount of data read by
...
limiting the call to readline(). Original patch by Michał
Jastrzębski and Giampaolo Rodola.
2013-10-20 16:58:27 +03:00
Serhiy Storchaka
36af10c1f7
Issue #17087 : Improved the repr for regular expression match objects.
2013-10-20 13:13:31 +03:00
Serhiy Storchaka
d5fd8df22f
Add yet some 24-bit tests.
2013-10-20 12:49:04 +03:00
Larry Hastings
bd61c3ae1f
Version bump for 3.4.0a4.
2013-10-20 02:01:29 -07:00
Larry Hastings
f32ce7fd31
Rebuild pydoc topics for 3.4.0a4 release.
2013-10-20 01:59:09 -07:00
Serhiy Storchaka
ce82eb2e13
Issue #12866 : Fix bias() for 24-bit. Add more tests.
2013-10-20 09:42:26 +03:00
Guido van Rossum
d49c47bfb0
Break out of loop on EOF in asyncio echo test programs.
2013-10-19 21:26:34 -07:00
Antoine Pitrou
92945c574b
Un-backout e3ec6b17260c - the test fix was actually also necessary
2013-10-20 02:16:40 +02:00
Antoine Pitrou
c1b78419e6
Backout e3ec6b17260c after Guido's fix
2013-10-20 02:09:08 +02:00
Guido van Rossum
32e46850a1
(Hopefully) proper fix for gentoo buildbot failure due to lacking AF_INET6 support.
...
This should supersede revision e3ec6b17260c (but please test before removing that).
2013-10-19 17:04:25 -07:00
Antoine Pitrou
d20afad7d4
Issue #19305 : try to fix sporadic test_asyncio failure on FreeBSD 10.0
2013-10-20 01:51:25 +02:00
Antoine Pitrou
0d9eefda34
Try to fix test_asyncio dual stack test when creating an IPv6 socket fails
2013-10-20 01:10:52 +02:00
Antoine Pitrou
4ca7355901
Issue #19299 : fix refleak test failures in test_asyncio
2013-10-20 00:54:10 +02:00
Antoine Pitrou
e55013febe
Issue #18235 : Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
...
Patch by David Edelsohn.
2013-10-19 22:06:26 +02:00
Antoine Pitrou
0abb21884c
Issue #18235 : Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.
...
Patch by David Edelsohn.
2013-10-19 22:05:05 +02:00
Benjamin Peterson
3d9e481ece
give explicitly global functions and classes a global __qualname__ ( closes #19301 )
2013-10-19 16:01:13 -04:00
Larry Hastings
f5e987bbe6
Issue #18606 : Add the new "statistics" module (PEP 450). Contributed
...
by Steven D'Aprano.
2013-10-19 11:50:09 -07:00
Serhiy Storchaka
0e071c967c
Fixed tests for issue #19279 .
2013-10-19 21:14:57 +03:00
Serhiy Storchaka
eaea5e9107
Issue #12866 : The audioop module now supports 24-bit samples.
2013-10-19 21:10:46 +03:00
Christian Heimes
0fbd94ced9
Issue #18582 : skip test of _hashlib.pbkdf2_hmac if OpenSSL is not available or too old
2013-10-19 19:40:49 +02:00
Serhiy Storchaka
55e092f545
Issue #19279 : UTF-7 decoder no more produces illegal strings.
2013-10-19 20:39:28 +03:00
Serhiy Storchaka
35804e4c63
Issue #19279 : UTF-7 decoder no more produces illegal strings.
2013-10-19 20:38:19 +03:00
Guido van Rossum
f19a6ef2c9
Verify hostname if verify_mode is CERT_OPTIONAL too.
2013-10-19 09:52:09 -07:00
Guido van Rossum
3743711a96
Disable some subprocess tests that hang on AIX.
...
See http://bugs.python.org/issue19293
2013-10-19 09:10:13 -07:00
Guido van Rossum
7058dad0bd
Skip the asyncio tests when threads are not available.
...
See http://bugs.python.org/issue19295
2013-10-19 08:47:26 -07:00
Nick Coghlan
8608d26e81
contextlib doc updates and refactoring
...
- explain single use, reusable and reentrant in docs
- converted suppress to a reentrant class based impl
- converted redirect_stdout to a reusable impl
- moved both suppress and redirect_stdout behind a functional
facade
- added reentrancy tests for the updated suppress
- added reusability tests for the updated redirect_stdio
- slightly cleaned up an exception from contextmanager
2013-10-20 00:30:51 +10:00
Christian Heimes
3626a505db
Issue #19254 : Provide an optimized Python implementation of PBKDF2_HMAC
2013-10-19 14:12:02 +02:00
Ned Deily
87adb6ef38
Issue #14499 : Fix several problems with OS X universal build support:
...
1. ppc arch detection for extension module builds broke with Xcode 5
2. ppc arch detection in configure did not work on OS X 10.4
3. -sysroot and -arch flags were unnecessarily duplicated
4. there was no obvious way to configure an intel-32 only build.
2013-10-18 21:09:56 -07:00
Guido van Rossum
355491dc47
Write flow control for asyncio (includes asyncio.streams overhaul).
2013-10-18 15:17:11 -07:00
Guido van Rossum
051a331488
Relax some asyncio test timeouts ( http://bugs.python.org/issue19285 ).
2013-10-18 15:15:56 -07:00
Nadeem Vawda
ee1be99e05
Issue #19222 : Add support for the 'x' mode to the gzip module.
...
Original patch by Tim Heaney.
2013-10-19 00:11:13 +02:00
Nadeem Vawda
8a9e99cffc
Issue #19223 : Add support for the 'x' mode to the bz2 module.
...
Patch by Tim Heaney and Vajrasky Kok.
2013-10-19 00:11:06 +02:00
Nadeem Vawda
42ca98217c
Issue #19201 : Add support for the 'x' mode to the lzma module.
...
Patch by Tim Heaney and Vajrasky Kok.
2013-10-19 00:06:19 +02:00
Brett Cannon
c516815353
Fix test to not consider mixin a standalone test
2013-10-18 16:55:15 -04:00
Brett Cannon
1340049f65
Issue #16803 : Move test_importlib.test_util to use both frozen and
...
source code.
2013-10-18 15:40:11 -04:00
Brett Cannon
6a57dd8635
Issue #16803 : Have test_importlib.test_locks use frozen and source
...
code.
2013-10-18 15:12:21 -04:00
Brett Cannon
58f5680462
Issue #18810 : Be optimistic with stat calls when seeing if a directory
...
exists when checking for a package.
Before there was an isdir check and then various isfile checks for
possible __init__ files when looking for a package.
This change drops the isdir check by leaning
on the assumption that a directory will not contain something named
after the module being imported which is not a directory. If the module
is a package then it saves a stat call. If there is nothing in the
directory with the potential package name it also saves a stat call.
Only if there is something in the directory named the same thing as
the potential package will the number of stat calls increase
(due to more wasteful __init__ checks).
Semantically there is no change as the isdir check moved
down so that namespace packages continue to have no chance of
accidentally collecting non-existent directories.
2013-10-18 13:24:13 -04:00
Guido van Rossum
2546a17765
Important race condition fix for Tulip.
2013-10-18 10:10:36 -07:00
Brett Cannon
bb9e481efa
Issue #18416 : Fix various os calls in importlib.machinery.FileFinder
...
now that self.path is no longer forced to '.'.
2013-10-18 12:01:06 -04:00
Brett Cannon
af002e6482
merge
2013-10-18 11:39:32 -04:00
Brett Cannon
27e27f7ee1
Issue #18416 : Have importlib.machinery.PathFinder treat '' as the cwd
...
and stop importlib.machinery.FileFinder treating '' as '.'.
Previous PathFinder transformed '' into '.' which led to __file__ for
modules imported from the cwd to always be relative paths. This meant
the values of the attribute were wrong as soon as the cwd changed.
This change now means that as long as the site module is run (which
makes all entries in sys.path absolute) then all values for __file__
will also be absolute unless it's for __main__ when specified by file
path in a relative way (modules imported by runpy will have an
absolute path).
Now that PathFinder is no longer treating '' as '.' it only makes
sense for FileFinder to stop doing so as well. Now no transformation
is performed for the directory given to the __init__ method.
Thanks to Madison May for the initial patch.
2013-10-18 11:39:04 -04:00
Guido van Rossum
57497ad181
Rename Transport.pause/resume to pause_reading/pause_writing. Also relax timeout in test_call_later().
2013-10-18 07:58:20 -07:00
Brett Cannon
40b22d0661
Issue #16803 : test.test_importlib.test_api now runs under frozen and
...
source.
2013-10-18 10:45:59 -04:00
Nick Coghlan
3321fb8e3a
Issue #16129 : this should appease the buildbots
2013-10-18 23:59:58 +10:00
Richard Oudkerk
8acc3c574a
Remove test_sigterm().
2013-10-18 14:42:56 +01:00
Nick Coghlan
ac1a248968
Close #19284 : Handle -R properly in flag helper
...
Previously, the -R option would be specified multiple times
if PYTHONHASHSEED was set.
2013-10-18 22:39:50 +10:00
Ethan Furman
a8b0707d91
Issue #19030 : special-cased __dict__ as the actual dict is not returned, a proxy is.
2013-10-18 01:22:08 -07:00
Ethan Furman
63c141cacd
Close #19030 : inspect.getmembers and inspect.classify_class_attrs
...
Order of search is now:
1. Try getattr
2. If that throws an exception, check __dict__ directly
3. If still not found, walk the mro looking for the eldest class that has
the attribute (e.g. things returned by __getattr__)
4. If none of that works (e.g. due to a buggy __dir__, __getattr__, etc.
method or missing __slot__ attribute), ignore the attribute entirely.
2013-10-18 00:27:39 -07:00
Guido van Rossum
fc29e0f37e
Rename the logger to plain "logger".
2013-10-17 15:39:45 -07:00
Ned Deily
b795aa8547
Issue #19275 : Fix test_site failure on OS X due to typo.
2013-10-17 15:21:40 -07:00
Guido van Rossum
5ea7f93dcd
Make asyncio tests run on Windows.
2013-10-17 14:23:17 -07:00
Guido van Rossum
27b7c7ebf1
Initial checkin of asyncio package (== Tulip, == PEP 3156).
2013-10-17 13:40:50 -07:00
Serhiy Storchaka
5b37f97ea5
Issue #19276 : Fixed the wave module on 64-bit big-endian platforms.
2013-10-17 23:05:19 +03:00
Serhiy Storchaka
d3b750516f
Issue #19276 : Fixed the wave module on 64-bit big-endian platforms.
2013-10-17 23:04:04 +03:00
Nick Coghlan
8f9571e70e
Skip #16129 test until I debug cross-platform issues
2013-10-18 01:46:19 +10:00
Nick Coghlan
6508dc5f06
Try to debug overspecified test :(
2013-10-18 01:44:22 +10:00
Richard Oudkerk
cc5c728513
Fix signal handler in test.
2013-10-17 15:22:10 +01:00
Nick Coghlan
240f86d7dd
Close #19266 : contextlib.ignore -> contextlib.suppress
...
Patch by Zero Piraeus.
2013-10-17 23:40:57 +10:00
Richard Oudkerk
1e2f67c05f
Try doing a raw test of os.fork()/os.kill().
2013-10-17 14:24:06 +01:00
Nick Coghlan
7d270ee05d
Issue #16129 : Add `Py_SetStandardStreamEncoding`
...
This new pre-initialization API allows embedding
applications like Blender to force a particular
encoding and error handler for the standard IO streams.
Also refactors Modules/_testembed.c to let us start
testing multiple embedding scenarios.
(Initial patch by Bastien Montagne)
2013-10-17 22:35:35 +10:00
Richard Oudkerk
26f92680da
Stop trying to use strace, but add a sleep before terminate().
2013-10-17 13:56:18 +01:00
Christian Heimes
86823a52fc
Issue #19275 : Fix test_site on AMD64 Snow Leopard
2013-10-17 13:40:00 +02:00
Richard Oudkerk
e4508eebb4
Try strace instead of gdb to see what wedged child is doing.
2013-10-17 12:10:45 +01:00
Serhiy Storchaka
a3cf1aa864
Merge heads
2013-10-17 12:48:32 +03:00
Serhiy Storchaka
b5f8a5e134
Issue 19276: Fix tests for wave files on big-endian platforms.
...
Skip tests for 24-bit wave file on big-endian platforms.
2013-10-17 12:46:53 +03:00
Serhiy Storchaka
c955291a05
Issue 19276: Fix tests for wave files on big-endian platforms.
...
Skip tests for 24-bit wave file on big-endian platforms.
2013-10-17 12:46:00 +03:00
Richard Oudkerk
d44500affe
Try to print a backtrace of wedged child process in test.
2013-10-17 10:38:37 +01:00
R David Murray
3da240fd01
#18891 : Complete new provisional email API.
...
This adds EmailMessage and, MIMEPart subclasses of Message
with new API methods, and a ContentManager class used by
the new methods. Also a new policy setting, content_manager.
Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka,
and reflects their feedback.
I will ideally add some examples of using the new API to the
documentation before the final release.
2013-10-16 22:48:40 -04:00
Ethan Furman
1a16288197
Close #19252 : better test coverage for Enum. Thanks, CliffM
2013-10-16 19:09:31 -07:00
Richard Oudkerk
1f2eaa97eb
Fix import of SimpleQueue.
2013-10-16 17:06:22 +01:00
Richard Oudkerk
b1694cf588
Issue #18999 : Make multiprocessing use context objects.
...
This allows different parts of a program to use different methods for
starting processes without interfering with each other.
2013-10-16 16:41:56 +01:00
Serhiy Storchaka
3e4b52875e
Add shorten to __all_ (issues #18585 and #18725 ).
2013-10-16 13:07:53 +03:00
Serhiy Storchaka
25324971fb
Issue #18468 : The re.split, re.findall, and re.sub functions and the group()
...
and groups() methods of match object now always return a string or a bytes
object.
2013-10-16 12:46:28 +03:00
Antoine Pitrou
355dda8d17
Issue #14407 : Fix unittest test discovery in test_concurrent_futures.
2013-10-15 23:24:44 +02:00
Antoine Pitrou
9816a1e643
Issue #14407 : Fix unittest test discovery in test_concurrent_futures.
2013-10-15 23:23:32 +02:00
Serhiy Storchaka
acc9f3fb16
Issue #18725 : The textwrap module now supports truncating multiline text.
2013-10-15 21:22:54 +03:00
Richard Oudkerk
bc2bfa6b68
Merge
2013-10-15 16:49:59 +01:00
Richard Oudkerk
b46fe79735
Print process instead of pid.
2013-10-15 16:48:51 +01:00
Serhiy Storchaka
481c6dd79f
Issue #18919 : Fixed resource leaks in audio tests.
2013-10-14 20:10:18 +03:00
Serhiy Storchaka
85812bca21
Issue #18919 : Fixed resource leaks in audio tests.
2013-10-14 20:09:47 +03:00
Serhiy Storchaka
1f56a94a9e
Issue #18919 : Check warnings messages in the aifc module tests.
2013-10-14 20:06:04 +03:00
Serhiy Storchaka
4606d36d7f
Issue #18919 : Check warnings messages in the aifc module tests.
2013-10-14 20:05:33 +03:00
Georg Brandl
fb0b5f20bd
merge with 3.3
2013-10-14 16:53:07 +02:00
Georg Brandl
d98d6cb451
Closes #19258 : close WSGI server after handling request in demo code.
2013-10-14 16:52:13 +02:00
Georg Brandl
979541935a
merge with 3.3
2013-10-14 16:08:25 +02:00
Georg Brandl
0079ffc092
Closes #17154 : error out gracefully on "ignore" or "condition" without argument.
2013-10-14 16:08:15 +02:00
Georg Brandl
64bed06036
merge with 3.3
2013-10-13 23:34:06 +02:00
Georg Brandl
9e091e120b
Closes #16657 : fix docstring of traceback.format_tb().
2013-10-13 23:32:14 +02:00
Georg Brandl
12ec29f105
Closes #17335 : remove no-op assignment.
2013-10-13 22:16:48 +02:00
Antoine Pitrou
6039db8de3
Issue #18776 : atexit callbacks now display their full traceback when they raise an exception.
2013-10-13 21:54:15 +02:00
Antoine Pitrou
24201d497c
Issue #18776 : atexit callbacks now display their full traceback when they raise an exception.
2013-10-13 21:53:13 +02:00
Georg Brandl
fbc3c3c2be
Closes #17730 : in code.interact(), when banner="", do not print anything.
...
Also adds tests for banner printing.
2013-10-13 21:49:06 +02:00
Georg Brandl
6e22055ee1
pdb: modernize find_function() and add tests for it.
...
Closes #18714 .
2013-10-13 20:51:47 +02:00
Ethan Furman
9efcb6bf38
Issue19030: commit tests for DynamicClassAttribute
2013-10-13 10:52:10 -07:00
Serhiy Storchaka
eb7414fc29
Issue #18919 : Unified and extended tests for audio modules: aifc, sunau and
...
wave.
2013-10-13 18:06:45 +03:00
Serhiy Storchaka
1b80e63d70
Issue #18919 : Unified and extended tests for audio modules: aifc, sunau and
...
wave.
2013-10-13 17:55:07 +03:00
Mark Dickinson
ed7bb488b4
Remove failing checks for explicit error messages.
2013-10-13 11:34:01 +01:00
Mark Dickinson
ef8627b3f0
Issue #18659 : fix test_format test that wasn't being executed. Thanks Vajrasky Kok for the patch.
2013-10-13 11:04:36 +01:00
Georg Brandl
bb2ed516cc
merge with 3.3
2013-10-13 10:44:04 +02:00
Georg Brandl
c30b59fe3d
Closes #17375 : port new threading docstrings from 2.7.
2013-10-13 10:43:59 +02:00
Georg Brandl
daa1fa991c
Back out accidentally pushed changeset b51218966201.
2013-10-13 09:32:59 +02:00
Georg Brandl
4300019e1a
Add re.fullmatch() function and regex.fullmatch() method, which anchor the
...
pattern at both ends of the string to match.
Patch by Matthew Barnett.
Closes #16203 .
2013-10-13 09:18:45 +02:00
Ethan Furman
da14920247
Close #18281 : superfluous stat constants removed from tarfile
2013-10-12 18:13:02 -07:00
Christian Heimes
5703cd58ca
whitespace cleanup
2013-10-13 02:27:22 +02:00
Christian Heimes
06239f62b0
merge
2013-10-13 02:22:10 +02:00
Christian Heimes
bf235bd212
Issue #19218 : set __name__ of _collections_abc to collections.abc in order to fix tests and keep beautiful qualified names.
2013-10-13 02:21:33 +02:00
Christian Heimes
52c5e57dbc
Issue #19218 : Add facade collections.abc
2013-10-13 02:04:50 +02:00
Christian Heimes
f1dc3ee16d
Issue #19218 : Rename collections.abc to _collections_abc in order to speed up interpreter start
2013-10-13 02:04:20 +02:00
Christian Heimes
ad9c9bb5a9
Remove import functools from re module. The re module imports functools but never uses it.
2013-10-13 02:00:09 +02:00
Richard Oudkerk
7b4a36194a
Merge.
2013-10-13 00:52:21 +01:00
Richard Oudkerk
4f35079858
Make test_terminate() succeed or fail quickly.
...
This does not fix #19227 , but should stop the Gentoo buildbot from hanging.
2013-10-13 00:49:27 +01:00
Christian Heimes
e92ef13b0a
Issue #18582 : Add 'pbkdf2_hmac' to the hashlib module.
2013-10-13 00:52:43 +02:00
Antoine Pitrou
1164dfcb86
Issue #19219 : Speed up marshal.loads(), and make pyc files slightly (5% to 10%) smaller.
2013-10-12 22:25:39 +02:00
Serhiy Storchaka
e23b2d06c7
Issue #18919 : If the close() method of a writer in the sunau or wave module
...
failed, second invocation of close() and destructor no more raise an
exception.
2013-10-12 21:36:10 +03:00
Serhiy Storchaka
4ae423ded4
Issue #19131 : The aifc module now correctly reads and writes sampwidth of
...
compressed streams.
2013-10-12 18:23:21 +03:00
Serhiy Storchaka
4b5325963b
Issue #19131 : The aifc module now correctly reads and writes sampwidth of
...
compressed streams.
2013-10-12 18:21:33 +03:00
Christian Heimes
f403f50378
Issue #19205 : _osx_support uses the re module all over the place. Omit the test for nw.
2013-10-12 15:08:42 +02:00
Antoine Pitrou
4aa8f8e225
Fix wrong exception in _bootlocale (apparently this error condition is never triggered)
2013-10-12 15:00:44 +02:00
Victor Stinner
e8785ff82a
Close #18754 : Run Python child processes in isolated more in the test suite.
2013-10-12 14:44:01 +02:00
Christian Heimes
179a3dbc9e
Issue #19205 : add debugging output for failing test on Snow Leopard
2013-10-12 12:32:21 +02:00
Christian Heimes
cbf6e95de5
merge
2013-10-12 01:41:49 +02:00
Christian Heimes
c1df2729ea
Issue #19209 : fix structseq test
2013-10-12 01:38:52 +02:00
Victor Stinner
370cb25307
test_os: report tests as skipped when os.statvfs() fails with ENOSYS
2013-10-12 01:33:54 +02:00
Christian Heimes
2582762b1b
Issue #19209 : Remove import of copyreg from the os module to speed up
...
interpreter startup. stat_result and statvfs_result are now hard-coded to
reside in the os module.
The patch is based on Victor Stinner's patch.
2013-10-12 01:27:08 +02:00
Christian Heimes
1a5fb4e3c1
Also test that the locale module isn't loaded during normal startup
2013-10-12 01:00:51 +02:00
Christian Heimes
bfc3a9a5c3
Issue #19205 fix 406529adf156
...
I forgot to hit save.
2013-10-12 00:28:17 +02:00
Christian Heimes
8c9cd5a3d4
Issue #19205 : Don't import the 're' module in site and sysconfig module to
...
to speed up interpreter start.
2013-10-12 00:24:55 +02:00
Antoine Pitrou
fd4722cacf
Issue #9548 : Add a minimal "_bootlocale" module that is imported by the _io module instead of the full locale module.
2013-10-12 00:13:50 +02:00
Antoine Pitrou
73abc527eb
Fix expected checksum for new unicodedata (after full rebuild)
2013-10-11 21:40:55 +02:00
R David Murray
aaf17b33a5
#19192 : Give up on time.xmlrpc.com as an xmlrpc network test.
...
time.xmlrpc.com has come and gone over the years, and has been gone again for
a while. The test did test one thing that the current xmlrpc tests don't: the
use of multiple levels of attribute names in the call. So in addition to
removing the network test, we add a test in xmlrpc of dotted name access.
There should also be a test for when dotted name access is disallowed, but
that requires more extensive test harness refactoring, and in any case was not
tested by the network test we are deleting, since it is a server-side setting.
This is a slightly simplified version of a patch by Vajrasky Kok.
2013-10-11 12:09:51 -04:00
Raymond Hettinger
1254b407ac
Rename contextlib.ignored() to contextlib.ignore().
2013-10-10 22:39:39 -07:00
Benjamin Peterson
94d08d908b
upgrade unicode db to 6.3.0 ( closes #19221 )
2013-10-10 17:24:45 -04:00
R David Murray
78d692f98e
18764: remove the problematic 'print' alias for the PDB 'p' command.
...
So that it no longer shadows the print function.
Patch by Connor Osborn, doc and test changes by R. David Murray.
2013-10-10 17:23:26 -04:00
Raymond Hettinger
088cbf2d39
Issue #15805 : Add contextlib.redirect_stdout()
2013-10-10 00:46:57 -07:00
Tim Peters
3d1b7a0c10
Whitespace normalization.
2013-10-08 21:29:27 -05:00
Tim Peters
e99bdb9694
Issue 19158: a rare race in BoundedSemaphore could allow .release() too often.
2013-10-08 21:12:58 -05:00
Tim Peters
7634e1cf90
Issue 19158: a rare race in BoundedSemaphore could allow .release() too often.
2013-10-08 20:55:51 -05:00
Antoine Pitrou
77e904e6a6
Issue #18948 : improve SuppressCoreFiles to include Windows crash popup suppression, and use it in more tests.
...
Patch by Valerie Lambert and Zachary Ware.
2013-10-08 23:04:32 +02:00
Serhiy Storchaka
1322f9e2d1
Issue #18037 : Do not escape '\u' and '\U' in raw strings.
2013-10-08 21:08:48 +03:00
Serhiy Storchaka
5e596769b0
Issue #18037 : Do not escape '\u' and '\U' in raw strings.
2013-10-08 21:07:46 +03:00
Ethan Furman
648f860c22
Close #19156 : add tests and fix for Enum helper edge cases. Patch from CliffM.
2013-10-06 17:19:54 -07:00
Victor Stinner
ab5a58d827
test_import.test_module_with_large_stack(): unload the test module
...
Ensure that the module is unloaded to be able to run the test more than once,
and to not leak memory.
2013-10-06 22:52:37 +02:00
Vinay Sajip
38c741c1fc
Issue #19182 : Fixed socket leak on exception when connecting.
2013-10-06 18:36:00 +01:00
Raymond Hettinger
d4b9f925ec
Issue 14927: Remove a docstring line that is no longer applicable.
2013-10-05 22:11:16 -07:00
Raymond Hettinger
be74a3d721
Minor clean-up of function parameters in random().
2013-10-05 21:52:06 -07:00
Raymond Hettinger
8fe47c3991
Minor clean-up of function parameters in random().
2013-10-05 21:48:21 -07:00
Raymond Hettinger
3472fafe74
merge
2013-10-05 17:20:18 -07:00
Raymond Hettinger
f77cdbeff7
Issue #19169 : Micro refactoring with a micro benefit for brevity and speed.
2013-10-05 17:18:36 -07:00
Raymond Hettinger
facd0a346f
Strengthen one of the collections.Counter() tests
2013-10-05 17:14:51 -07:00
Antoine Pitrou
5df8a8a1fd
Issue #19087 : Improve bytearray allocation in order to allow cheap popping of data at the front (slice deletion).
2013-10-05 21:12:18 +02:00
Eric Snow
7e70fa5314
[issue 19152] Ensure we have actually registered ExtensionFileLoader as an ExecutionLoader.
2013-10-04 20:28:52 -06:00
Ezio Melotti
a349478573
#19166 : merge with 3.3.
2013-10-05 03:14:13 +03:00
Ezio Melotti
4e1f3d669b
#19166 : use an unused var in a test. Patch by Vajrasky Kok.
2013-10-05 03:07:03 +03:00
Raymond Hettinger
07573d7b24
merge
2013-10-04 16:52:39 -07:00
Raymond Hettinger
cb1d96f782
Issue #18594 : Make the C code more closely match the pure python code.
2013-10-04 16:51:02 -07:00
Brett Cannon
3ad327ec3a
Issue #16803 : Run test.test_importlib.test_abc under both
...
_frozen_importlib and source.
2013-10-04 14:47:14 -04:00
Brett Cannon
1448ecf470
Issue #18716 : Deprecate the formatter module
2013-10-04 11:38:59 -04:00
Eric Snow
5c4b4c530f
[issue19152] Revert 832579dbafd6.
2013-10-03 15:03:29 -06:00
Antoine Pitrou
7d36e2fc5c
Remove builtin "caching" in pprint
2013-10-03 21:29:36 +02:00
Eric Snow
af8566c847
[issue19152] Add ExtensionFileLoader.get_filename().
2013-10-03 12:08:55 -06:00
Eric Snow
5179445520
[issue19152] Add ExtensionFileLoader.get_filename().
2013-10-03 12:08:55 -06:00
Eric Snow
efbc475278
[issue19151] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
2013-10-03 12:08:55 -06:00
Eric Snow
e8bbfebee0
[issue19951] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
2013-10-03 12:08:55 -06:00
Antoine Pitrou
0e61ed8400
Issue #19014 : memoryview.cast() is now allowed on zero-length views.
2013-10-03 19:56:54 +02:00
Antoine Pitrou
60b183407c
Issue #19014 : memoryview.cast() is now allowed on zero-length views.
2013-10-03 19:55:41 +02:00
Serhiy Storchaka
026af2a597
Issue #18037 : 2to3 now escapes '\u' and '\U' in native strings.
2013-10-03 12:10:49 +03:00
Serhiy Storchaka
def0a4c298
Issue #18037 : 2to3 now escapes '\u' and '\U' in native strings.
2013-10-03 12:08:38 +03:00
Serhiy Storchaka
57d5c08966
Use cached builtins.
2013-10-02 19:15:54 +03:00
Nick Coghlan
fdf239a855
Close #17839 : support bytes-like objects in base64 module
...
This mostly affected the encodebytes and decodebytes function
(which are used by base64_codec)
Also added a test to ensure all bytes-bytes codecs can handle
memoryview input and tests for handling of multidimensional
and non-bytes format input in the modern base64 API.
2013-10-03 00:43:22 +10:00
Brett Cannon
0de3f0197b
Tweak skipIf message
2013-10-02 10:58:58 -04:00
Brett Cannon
634a8fc042
Try to fix issue #19134 again
2013-10-02 10:25:42 -04:00
Nick Coghlan
45163ccce4
Close #18690 : register memoryview with Sequence ABC
2013-10-02 22:31:47 +10:00
Nick Coghlan
a0f169cde8
Close #19078 : memoryview now supports reversed
...
Patch by Claudiu Popa
2013-10-02 22:06:54 +10:00
Vinay Sajip
dff9e2535f
Closes #19139 : Changed usage of __VENV_NAME__ and added __VENV_PROMPT__.
2013-10-02 11:36:16 +01:00
Serhiy Storchaka
7c411a4041
Issue #19132 : The pprint module now supports compact mode.
2013-10-02 11:56:18 +03:00
Serhiy Storchaka
092bd388ce
Issue #19137 : The pprint module now correctly formats instances of set and
...
frozenset subclasses.
2013-10-02 11:43:30 +03:00
Serhiy Storchaka
51844384f4
Issue #19137 : The pprint module now correctly formats instances of set and
...
frozenset subclasses.
2013-10-02 11:40:49 +03:00
Nick Coghlan
f05d981f58
Close #10042 : functools.total_ordering now handles NotImplemented
...
(Patch by Katie Miller)
2013-10-02 00:02:03 +10:00
Nick Coghlan
e6f4631f08
Merge #19092 from 3.3
2013-10-01 23:28:00 +10:00
Nick Coghlan
1a33b2f35b
Close #19092 : ExitStack now reraises exceptions from __exit__
...
Report and patch by Hrvoje Nikšić
2013-10-01 23:24:56 +10:00
Antoine Pitrou
6a9c0e50a9
Issue #12641 : Avoid passing "-mno-cygwin" to the mingw32 compiler, except when necessary.
...
Patch by Oscar Benjamin.
2013-09-30 22:29:48 +02:00
Antoine Pitrou
3c678c33a7
Issue #12641 : Avoid passing "-mno-cygwin" to the mingw32 compiler, except when necessary.
...
Patch by Oscar Benjamin.
2013-09-30 22:28:10 +02:00
Brett Cannon
63f03ed3db
Issue #19134 : Make a test in inspect conditional on multiprocessing
...
being available.
Thanks to Remi Pointel for the bug report.
2013-09-30 15:21:09 -04:00
Senthil Kumaran
b0ce820bb3
merge from 3.3
2013-09-29 18:59:27 -07:00
Senthil Kumaran
600b735062
Minor code improvement. Review comment by Eric V. Smith
2013-09-29 18:59:04 -07:00
Larry Hastings
d92af0f1d9
Merge 3.4.0a3 release changes.
2013-09-30 01:13:32 +01:00
Antoine Pitrou
5d23e6d543
Issue #5845 : In site.py, only load readline history from ~/.python_history if no history has been read already. This avoids double writes to the history file at shutdown.
2013-09-29 22:18:38 +02:00
Benjamin Peterson
95536b8405
rename some more tests to avoid duplicate names ( #19123 )
2013-09-29 15:18:43 -04:00
Benjamin Peterson
eea020f1ae
merge 3.3
2013-09-29 14:59:19 -04:00
Benjamin Peterson
a5ec63b5eb
remove unused imports
2013-09-29 14:49:17 -04:00
Antoine Pitrou
20b85557f2
Issue #19095 : SSLSocket.getpeercert() now raises ValueError when the SSL handshake hasn't been done.
2013-09-29 19:50:53 +02:00
Richard Oudkerk
085ab4a553
Merge.
2013-09-29 17:33:04 +01:00
Richard Oudkerk
8b3f5aafd3
Issue #19112 : avoid using function defined in method.
2013-09-29 17:29:56 +01:00
Benjamin Peterson
84c1205043
merge 3.3 ( #19127 )
2013-09-29 11:15:49 -04:00
Benjamin Peterson
72a98541f0
remove duplicate method ( closes #19127 )
2013-09-29 11:15:31 -04:00
Benjamin Peterson
5395d211f9
merge 3.3 ( #19114 )
2013-09-29 11:13:50 -04:00
Benjamin Peterson
56b143d758
condense two tests with the same name ( closes #19114 )
2013-09-29 11:13:27 -04:00
Benjamin Peterson
70157e8f02
merge 3.3 ( #19112 )
2013-09-29 11:11:10 -04:00
Benjamin Peterson
cc6ef3620f
move helper function into its test method ( closes #19112 )
2013-09-29 11:08:04 -04:00
Benjamin Peterson
353d450928
merge 3.3 ( #19117 )
2013-09-29 10:53:59 -04:00
Benjamin Peterson
52010b40f6
fix duplicate test names in test_dis ( closes #19117 )
2013-09-29 10:53:49 -04:00
Benjamin Peterson
42686e45c1
merge 3.3 ( #19118 )
2013-09-29 10:51:08 -04:00
Benjamin Peterson
f8ab76039b
remove duplicate test_mkd ( closes #19118 )
2013-09-29 10:51:00 -04:00
Benjamin Peterson
3dcdacfe6a
merge 3.3 ( #19116 )
2013-09-29 10:50:24 -04:00
Benjamin Peterson
db0601f871
combine two tests to avoid duplicate names ( closes #19116 )
2013-09-29 10:50:15 -04:00
Benjamin Peterson
177d89ce90
merge 3.3 ( #19126 )
2013-09-29 10:48:39 -04:00
Benjamin Peterson
e8c8a592e7
fix duplicate test name ( closes #19126 )
2013-09-29 10:48:19 -04:00
Benjamin Peterson
e86eb89b97
merge 3.3 ( #19125 )
2013-09-29 10:47:04 -04:00
Benjamin Peterson
1eca062be6
fix test to run and test that smtpd does support ELHO ( closes #19125 )
2013-09-29 10:46:31 -04:00
Benjamin Peterson
11f34caac4
delete duplicate test ( closes #19123 )
2013-09-29 10:39:51 -04:00
Benjamin Peterson
96609b701e
merge 3.3 ( #19122 )
2013-09-29 10:02:28 -04:00
Benjamin Peterson
05ab7028ba
remove duplicate test from test_import ( closes #19122 )
2013-09-29 10:01:40 -04:00
Antoine Pitrou
61e10a5efe
Issue #4366 : Fix building extensions on all platforms when --enable-shared is used.
2013-09-29 01:49:07 +02:00
Antoine Pitrou
643238eb53
Issue #4366 : Fix building extensions on all platforms when --enable-shared is used.
2013-09-29 01:48:40 +02:00
Larry Hastings
44719a7717
Version bump to 3.4.0a3.
2013-09-28 23:51:00 +01:00
Larry Hastings
346f40204b
Updated pydoc topics.py for 3.4a3 release.
2013-09-28 23:43:34 +01:00
Benjamin Peterson
b3b0720597
merge 3.3 ( #19115 )
2013-09-28 15:13:10 -04:00
Benjamin Peterson
3103631f66
fix duplicate test names ( closes #19115 )
...
Patch by Xavier de Gaye.
2013-09-28 15:12:37 -04:00
Serhiy Storchaka
f7622bfcfb
Issue #18950 : Fix miscellaneous bugs in the sunau module.
...
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now
correctly updates current file position. Au_read.getnframes() now returns an
integer (as in Python 2). Au_read and Au_write now correctly works with file
object if start file position is not a zero.
2013-09-28 21:24:43 +03:00
Serhiy Storchaka
0300a8db49
Issue #18950 : Fix miscellaneous bugs in the sunau module.
...
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now
correctly updates current file position. Au_read.getnframes() now returns an
integer (as in Python 2). Au_read and Au_write now correctly works with file
object if start file position is not a zero.
2013-09-28 21:21:39 +03:00
Nick Coghlan
4cc2afa0ec
Close #18990 : remove root attribute from XMLPullParser
...
- this was an internal implementation detail for iterparse
- this has been changed to use a new private method instead
- XMLPullParser.close docs are now more explicit about not
returning a root element and instead direct users towards
read_events
- also added missing docstrings and clarified some details
related to exactly *when* events are consumed from the
internal queue
(Initial patch by Stefan Behnel)
2013-09-28 23:50:35 +10:00
Ethan Furman
33918c128b
Issue19030: fixed comment that was still referring to a changed descriptor.
2013-09-27 23:02:02 -07:00
Serhiy Storchaka
ab25c7c011
Issue #19053 : ZipExtFile.read1() with non-zero argument no more returns empty
...
bytes until end of data.
2013-09-27 22:14:31 +03:00
Serhiy Storchaka
d2c07a58af
Issue #19053 : ZipExtFile.read1() with non-zero argument no more returns empty
...
bytes until end of data.
2013-09-27 22:11:57 +03:00