Serhiy Storchaka
cc83b0c8f6
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:14:19 +02:00
Serhiy Storchaka
593568bf47
Issue #19912 : Fixed numerous bugs in ntpath.splitunc().
...
* splitunc() no more return illegal result for paths with redundant slashes.
* splitunc() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* Deprecation warnings now emitted for every use of splitunc().
* Added tests for splitunc().
2013-12-16 15:13:28 +02:00
Serhiy Storchaka
f5ad91c392
Issue #19911 : ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:36:10 +02:00
Serhiy Storchaka
3d7e11520e
Issue #19911 : ntpath.splitdrive() now correctly processes the 'İ' character
...
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
2013-12-16 14:34:55 +02:00
Christian Heimes
e9b034b72d
Issue #17919 : add missing import of USHRT_MAX
2013-12-16 13:27:16 +01:00
R David Murray
755d5ea12a
Merge: #19532 : make compileall with no file/dir args respect -f and -q.
2013-12-15 20:56:00 -05:00
R David Murray
8a1d1e647e
#19532 : make compileall with no file/dir args respect -f and -q.
...
Patch by Vajrasky Kok.
2013-12-15 20:49:38 -05:00
Christian Heimes
575596e19a
test_ssl: skip tests when SNI is not available
2013-12-15 21:49:17 +01:00
Christian Heimes
e8a257cdb1
test_poplib: skip stls_context test when SNI is not available
2013-12-15 21:44:43 +01:00
Christian Heimes
b2a794d235
fixed test_ftplib
2013-12-15 19:50:13 +01:00
Christian Heimes
aab99fdd65
test_imaplib: skip check_hostname test when SNI is not available
2013-12-15 19:39:32 +01:00
Christian Heimes
e7945d76ff
test_ftplib: skip check_hostname test when SNI is not available
2013-12-15 19:38:22 +01:00
Christian Heimes
a5f0eda91a
Skip some tests that require server name indication (SNI)
2013-12-15 17:02:36 +01:00
Christian Heimes
21ebbb2777
Import USHRT_MAX to fix failing test_devpool test
2013-12-15 15:36:20 +01:00
Nick Coghlan
720c7e28cb
Issue #19700 : set __spec__ appropriately in runpy
...
Note that __spec__.name is not currently guaranteed to be in
sys.modules when the code is running, only __name__ is.
The "running module is in sys.modules" invariant will be
expanded to also cover __spec__.name in a subsequent patch.
2013-12-15 20:33:02 +10:00
Serhiy Storchaka
c836a28cc1
Issue #17576 : Removed deprecation warnings added in changeset 618cca51a27e.
2013-12-14 21:07:09 +02:00
Serhiy Storchaka
79f19f9e7c
Issue #19623 : Fixed writing to unseekable files in the aifc module.
2013-12-14 20:42:22 +02:00
Serhiy Storchaka
84d28b4ee5
Issue #19623 : Fixed writing to unseekable files in the aifc module.
2013-12-14 20:35:04 +02:00
Serhiy Storchaka
03241e8017
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:18:39 +02:00
Serhiy Storchaka
5da107ac72
Issue #17919 : Fixed integer overflow in the eventmask parameter.
2013-12-14 19:12:02 +02:00
R David Murray
3c2a178af2
Merge: #19970 : Fix some comment typos.
2013-12-13 20:53:26 -05:00
R David Murray
fc06999e0b
#19970 : Fix some comment typos.
...
Report and patch by Vajrasky Kok.
2013-12-13 20:52:19 -05:00
Brett Cannon
c091a5762e
Issue #19704 : Port test.test_threaded_import to PEP 451
2013-12-13 16:47:19 -05:00
Victor Stinner
507ac3a591
(Merge 3.3) Issue #19969 : PyBytes_FromFormatV() now raises an OverflowError if
...
"%c" argument is not in range [0; 255].
2013-12-13 12:15:31 +01:00
Victor Stinner
c9362cf86a
Issue #19969 : PyBytes_FromFormatV() now raises an OverflowError if "%c"
...
argument is not in range [0; 255].
2013-12-13 12:14:44 +01:00
Serhiy Storchaka
cb1c4c8c22
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:08:55 +02:00
Serhiy Storchaka
3ad2d70947
Issue #17919 : select.poll.poll() again works with poll.POLLNVAL on AIX.
2013-12-13 12:08:01 +02:00
R David Murray
775632ba10
#19957 : Simplify encode_7or8bit now that _payload is always str.
...
Patch by Vajrasky Kok, test enhancement by me.
2013-12-12 21:40:20 -05:00
Victor Stinner
24bd028092
Issue #19952 : test_asyncio: relax timings of Windows events, buildbots are
...
sometimes busy
2013-12-13 02:45:18 +01:00
Victor Stinner
1310510793
Issue #14432 : Generator now clears the borrowed reference to the thread state
...
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:17:29 +01:00
Victor Stinner
fdeb6ec45a
Issue #14432 : Remove the thread state field from the frame structure. Fix a
...
crash when a generator is created in a C thread that is destroyed while the
generator is still used. The issue was that a generator contains a frame, and
the frame kept a reference to the Python state of the destroyed C thread. The
crash occurs when a trace function is setup.
2013-12-13 02:01:38 +01:00
Victor Stinner
56668dc187
Issue #19751 : Fix hash_info test of test_sys on SPARC Solaris
2013-12-12 23:07:40 +01:00
Victor Stinner
4b6d4b56d3
Issue #19751 : Fix typo in configuration option
2013-12-12 23:06:07 +01:00
Zachary Ware
8fda4749e3
Merge fix from 3.3
2013-12-12 10:33:27 -06:00
Zachary Ware
0f533acf88
Avoid UnicodeEncodeError by only printing ASCII.
...
This fixes running test_decimal in verbose mode on Windows,
which I broke in issue #19572 .
2013-12-12 10:32:16 -06:00
Zachary Ware
63321b4978
Issue #19828 : Merge with 3.3
2013-12-11 17:01:21 -06:00
Zachary Ware
36193e73b8
Issue #19828 : Fixed test_site when the whole suite is run with -S.
...
Also, cleaned up an unused import.
2013-12-11 16:59:44 -06:00
R David Murray
50bfbb9903
#19063 : fix set_payload handling of non-ASCII string input.
...
This version of the fix raises an error instead of accepting the invalid
input (ie: if a non-ASCII string is used but no charset is specified).
2013-12-11 16:52:11 -05:00
R David Murray
d5c4c7411a
#19063 : partially fix set_payload handling of non-ASCII string input.
...
This is a backward compatible partial fix, the complete fix requires raising
an error instead of accepting the invalid input, so the real fix is only
suitable for 3.4.
2013-12-11 16:34:34 -05:00
Serhiy Storchaka
c4f3212abc
Issue #17576 : Deprecation warning emitted now when __int__() or __index__()
...
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:26:36 +02:00
Serhiy Storchaka
31a655411a
Issue #17576 : Deprecation warning emitted now when __int__() or __index__()
...
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
2013-12-11 21:07:54 +02:00
Eric Snow
b282b3d804
Issue #18864 : Add a setter for ModuleSpec.has_location.
2013-12-10 22:16:41 -07:00
Zachary Ware
7f7f3d7879
Issue #19928 : Fix test on Windows
2013-12-10 14:18:30 -06:00
Zachary Ware
ea6854a9ef
Issue #19928 : Fix test on Windows
2013-12-10 14:17:22 -06:00
Serhiy Storchaka
2a446bf76c
Issue #19928 : Implemented a test for repr() of cell objects.
2013-12-10 10:21:51 +02:00
Serhiy Storchaka
1f79cdfbfa
Issue #19928 : Implemented a test for repr() of cell objects.
2013-12-10 10:20:31 +02:00
Eric Snow
e3c39ddd97
Remove commented-out module spec test code and an out-of-date note.
2013-12-09 20:33:33 -07:00
Eric Snow
c1e7c747f9
Issue 19851: Fix a regression in reloading submodules.
2013-12-09 19:59:10 -07:00
Serhiy Storchaka
2dae92a807
Issue #15475 : Add __sizeof__ implementations for itertools objects.
2013-12-09 17:45:57 +02:00
Victor Stinner
383bff4d74
Backed out changeset c4c1c4bc8086
2013-12-09 01:59:07 +01:00
Victor Stinner
1adc2371b8
Issue #19876 : Run also test_selectors.test_unregister_after_fd_close_and_reuse() on Windows
...
os.dup2() is available on Windows.
2013-12-09 01:57:14 +01:00
Victor Stinner
28dd6deca8
Fix #19830 : Fix a ResourceWarning in test_poplib.
...
Patch written by Vajrasky Kok.
2013-12-09 01:15:10 +01:00
Victor Stinner
8622ac3ce2
(Merge 3.3) Issue #17429 : Oops, remove unused import
2013-12-09 00:26:12 +01:00
Victor Stinner
271493b68c
Issue #17429 : Oops, remove unused import
2013-12-09 00:25:57 +01:00
Victor Stinner
0aba1a2663
(Merge 3.3) Issue #17429 : platform.linux_distribution() now decodes files from
...
the UTF-8 encoding with the surrogateescape error handler, instead of decoding
from the locale encoding in strict mode. It fixes the function on Fedora 19
which is probably the first major distribution release with a non-ASCII name.
Patch written by Toshio Kuratomi.
2013-12-09 00:04:09 +01:00
Victor Stinner
620c48b7ea
Issue #17429 : platform.linux_distribution() now decodes files from the UTF-8
...
encoding with the surrogateescape error handler, instead of decoding from the
locale encoding in strict mode. It fixes the function on Fedora 19 which is
probably the first major distribution release with a non-ASCII name. Patch
written by Toshio Kuratomi.
2013-12-09 00:01:27 +01:00
Serhiy Storchaka
b12cb6a550
Issue #19535 : Fixed test_docxmlrpc, test_functools, test_inspect, and
...
test_statistics when python is run with -OO.
2013-12-08 18:16:18 +02:00
Serhiy Storchaka
3e60a9d602
Issue #19535 : Fixed test_docxmlrpc when python is run with -OO.
2013-12-08 18:14:49 +02:00
Christian Heimes
5bb414d176
Issue #19343 : Expose FreeBSD-specific APIs in resource module. Original patch by Koobs.
2013-12-08 14:35:55 +01:00
Charles-François Natali
ead8d0858b
Fix test_selectors failure introduced by 39e7995f9ad1.
2013-12-08 10:06:04 +01:00
Zachary Ware
34bc8974cd
Issue #19926 : Removed unneeded test_main from test_abstract_numbers.
...
Patch by Vajrasky Kok.
2013-12-08 01:01:42 -06:00
Zachary Ware
4adb37c40f
Issue #19926 : Removed unneeded test_main from test_abstract_numbers.
...
Patch by Vajrasky Kok.
2013-12-08 01:00:14 -06:00
Zachary Ware
101d9e7250
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:44:27 -06:00
Zachary Ware
7ef00ff91a
Normalize whitespace
2013-12-08 00:38:54 -06:00
Zachary Ware
9fe6d86709
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:20:35 -06:00
Eric Snow
5c29424f4b
Issue #19758 : silence PendingDeprecationWarnings in test_importlib.
2013-12-07 19:37:31 -07:00
Guido van Rossum
9710ff04ac
Silently ignore unregistering closed files. Fixes issue 19876. With docs and slight test refactor.
2013-12-07 15:57:01 -08:00
Charles-François Natali
6c527cf37f
Issue #19857 : Make sure that test_imaplib reaps server threads even in face of
...
error upon client disconnection.
2013-12-07 20:30:17 +01:00
Charles-François Natali
9b116e8b02
Issue #19857 : Make sure that test_imaplib reaps server threads even in face of
...
error upon client disconnection.
2013-12-07 20:27:41 +01:00
Christian Heimes
2e7d4f0cbf
Solaris needs a readable file for shared lock
2013-12-07 18:19:21 +01:00
Alexandre Vassalotti
d05c9ff845
Issue #6784 : Strings from Python 2 can now be unpickled as bytes objects.
...
Initial patch by Merlijn van Deen.
I've added a few unrelated docstring fixes in the patch while I was at
it, which makes the documentation for pickle a bit more consistent.
2013-12-07 01:09:27 -08:00
Christian Heimes
cd6f61137a
copy 'n paste typo (thx Antoine)
2013-12-07 00:14:55 +01:00
Christian Heimes
b82c915fa2
Skip new SSL tests with IocpEventLoop
2013-12-07 00:09:45 +01:00
Guido van Rossum
1a605ed5a3
asyncio: Add Task.current_task() class method.
2013-12-06 12:57:40 -08:00
Brett Cannon
2f8c83568c
Issue #19712 : Update test.test_importlib.source for PEP 451
2013-12-06 14:25:01 -05:00
Brett Cannon
86aae6a7b3
Issue #19712 : Update test.test_importlib.import_ to test/use PEP 451
...
where appropriate.
2013-12-06 12:07:25 -05:00
Serhiy Storchaka
010ff584bc
Test same drive in different cases (issue #19908 ).
2013-12-06 17:25:51 +02:00
Serhiy Storchaka
a993902a28
Issue #19908 : pathlib now joins relative Windows paths correctly when a drive
...
is present. Original patch by Antoine Pitrou.
2013-12-06 17:14:12 +02:00
Alexandre Vassalotti
6e73ff1a31
Issue #19881 : Fix bad pickling of large bytes in cpickle.
2013-12-05 19:29:32 -08:00
Christian Heimes
6d8c1abb00
Issue #19509 : Finish implementation of check_hostname
...
The new asyncio package now supports the new feature and comes with additional tests for SSL.
2013-12-06 00:23:13 +01:00
Christian Heimes
0a956f1aec
Add simple test for fcntl.flock()
2013-12-05 16:13:03 +01:00
Christian Heimes
ac98a4e407
Test syslog.openlog() without args to test syslog_get_argv()
2013-12-05 13:56:56 +01:00
Christian Heimes
db8f5c3fd1
normalize white space
2013-12-05 07:53:38 +01:00
Christian Heimes
c6d471d653
Add a script similar to xmltests.py to run all SSL-related unit tests
2013-12-05 07:45:36 +01:00
Christian Heimes
8e7f394282
Test SSLSock's context getter and setter
2013-12-05 07:41:08 +01:00
Christian Heimes
647f120850
touch _lsprof's clear() method for C code coverage
2013-12-05 07:40:29 +01:00
Nadeem Vawda
ae02d07bc2
Closes #19839 : Fix regression in bz2 module's handling of non-bzip2 data at EOF.
...
Also fix an analogous bug (not a regression) in the lzma module.
2013-12-04 23:29:51 +01:00
Nadeem Vawda
9c72ebc96b
#19839 : Fix lzma module's handling of non-lzma data at EOF.
2013-12-04 23:03:49 +01:00
Nadeem Vawda
1de19ac7da
#19839 : Fix regression in bz2 module's handling of non-bzip2 data at EOF.
2013-12-04 23:01:15 +01:00
Guido van Rossum
ebb8e58f0a
asyncio: Write flow control for proactor event loop.
2013-12-04 12:12:07 -08:00
Tim Peters
13e6d23bb1
Issue #19138 : doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
...
(grafted from c80083ad142db2939507800c755082293a87f2de)
2013-12-03 21:02:05 -06:00
Tim Peters
f9a07f2e11
Issue #19138 : doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
2013-12-03 21:02:05 -06:00
Antoine Pitrou
cc157516a9
Issue #19877 : fix regression in test_pathlib when Windows has symlink support available (i.e. in administrator mode).
...
Patch by Vajrasky Kok.
2013-12-03 17:13:13 +01:00
Vinay Sajip
dc96ca25df
Added some diagnostics to help with #19690 .
2013-12-03 12:31:23 +00:00
Vinay Sajip
ef2d8a597c
Closes #19665 : Merged fi from 3.3.
2013-12-03 11:29:45 +00:00
Vinay Sajip
827f5d35e5
Issue #19665 : Increased timeout for SMTPHandler test.
2013-12-03 11:28:55 +00:00
Antoine Pitrou
51af82cc39
Add a test for complex symlinks.
2013-12-03 11:01:08 +01:00
Antoine Pitrou
6e8bc50317
Issue #19800 : make the pickle framing tests more precise.
2013-12-03 09:51:40 +01:00
Guido van Rossum
f10345e102
asyncio: Improve default writelines().
2013-12-02 18:36:30 -08:00
Christian Heimes
a02c69a73b
add check_hostname arg to ssl._create_stdlib_context()
2013-12-02 20:59:28 +01:00
Christian Heimes
a5768f7292
Issue #19785 : smtplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:44:17 +01:00
Christian Heimes
1bc7068d7f
Issue #19784 : poplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:10:50 +01:00
Christian Heimes
48aae57996
Issue #19782 : imaplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 20:01:29 +01:00
Walter Doerwald
69359f6207
Fix #19834 : merge with 3.3.
2013-12-02 11:43:20 +01:00
Walter Doerwald
9d1dbca5e2
Fix issue #19834 : Support unpickling of exceptions pickled by Python 2.
2013-12-02 11:41:01 +01:00
Christian Heimes
e5b5edfa2c
Issue #19781 : ftplib now supports SSLContext.check_hostname and server name
...
indication for TLS/SSL connections.
2013-12-02 02:56:02 +01:00
Christian Heimes
1aa9a75fbf
Issue #19509 : Add SSLContext.check_hostname to match the peer's certificate
...
with server_hostname on handshake.
2013-12-02 02:41:19 +01:00
Gregory P. Smith
708a3182c9
Fixes issue #15798 : subprocess.Popen() no longer fails if file
...
descriptor 0, 1 or 2 is closed.
The errpipe_write fd will always be >= 3.
2013-12-01 17:27:40 -08:00
Alexandre Vassalotti
28d271ef6b
Issue #19754 : Make pickletools.optimize respect the frame size target.
2013-12-01 16:27:46 -08:00
Gregory P. Smith
53dd8167ff
Fixes issue #15798 : subprocess.Popen() no longer fails if file
...
descriptor 0, 1 or 2 is closed. (correct fix for 3.4 this time)
2013-12-01 16:03:24 -08:00
Alexandre Vassalotti
5a63aa62ca
Issue #11480 : Merge with 3.3.
2013-12-01 13:26:32 -08:00
Alexandre Vassalotti
5c1c3b4f19
Issue #11480 : Fixed copy.copy to work with classes with custom metaclasses.
...
Patch by Daniel Urban.
2013-12-01 13:25:26 -08:00
Charles-François Natali
b3330a0abf
Issue #19842 : Refactor BaseSelector to make it an actual usable ABC.
2013-12-01 11:04:17 +01:00
Gregory P. Smith
54532c9742
Undo supposed fix for Issue #15798 until I understand why this is
...
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).
2013-12-01 00:13:35 -08:00
Gregory P. Smith
361e30c17a
Undo supposed fix for Issue #15798 until I understand why this is
...
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).
2013-12-01 00:12:24 -08:00
Gregory P. Smith
1c27e3c7fb
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
...
descriptor 0, 1 or 2 is closed.
2013-11-30 19:04:00 -08:00
Gregory P. Smith
1eda9e7c30
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
...
descriptor 0, 1 or 2 is closed.
2013-11-30 19:02:57 -08:00
Alexandre Vassalotti
3c23e7a5dc
Issue #6477 : Merge with 3.3.
2013-11-30 16:21:20 -08:00
Alexandre Vassalotti
19b6fa6ebb
Issue #6477 : Added support for pickling the types of built-in singletons.
2013-11-30 16:06:39 -08:00
Alexandre Vassalotti
a1eedf9ff0
Merge with 3.3.
2013-11-30 13:55:39 -08:00
Alexandre Vassalotti
896414fedf
Fixed _pickle.Unpickler to handle empty persistent IDs correctly.
2013-11-30 13:52:35 -08:00
Nick Coghlan
8ddd59e870
Issue #19728 : don't be sensitive to line endings
2013-11-30 18:35:32 +10:00
Nick Coghlan
fdf3a620a2
Issue #19728 : add private ensurepip._uninstall CLI
...
MvL would like to be able to preserve CPython's existing clean
uninstall behaviour on Windows before enabling the pip
installation option by default.
This private CLI means running "python -m ensurepip._uninstall"
will remove pip and setuptools before proceeding with the rest
of the uninstallation process.
If the version of pip differs from the one bootstrapped by
CPython, then the uninstallation helper will leave it alone
(just like any other pip installed packages)
2013-11-30 17:15:09 +10:00
Nick Coghlan
1b1b1789d0
Fix and test pip version consistency
2013-11-30 15:56:58 +10:00
Alexandre Vassalotti
9730e33535
Issue #3693 : Fix array obscure error message when given a str.
2013-11-29 20:47:15 -08:00
Brett Cannon
ed05b8a1a1
Issue #19712 : Port test.test_importlib.import_ tests to use PEP 451
...
that don't require changing test.test_importlib.util.mock_modules().
2013-11-29 16:17:05 -05:00
Brett Cannon
d2476c6e4b
Issue #19698 : Remove exec_module() from the built-in and extension
...
module loaders.
Due to the fact that the call signatures for extension modules and
built-in modules does not allow for the specifying of what module to
initialize and that on Windows all extension modules are built-in
modules, work to clean up built-in and extension module initialization
will have to wait until Python 3.5. Because of this the semantics of
exec_module() would be incorrect, so removing the methods for now is
the best option; load_module() is still used as a fallback by
importlib and so this won't affect semantics.
2013-11-29 11:00:11 -05:00
Eli Bendersky
8148164353
Issue #19815 : Fix segfault when parsing empty namespace declaration.
...
Based on patches by Christian Heimes and Vajrasky Kok
2013-11-28 06:35:40 -08:00
Eli Bendersky
5dd40e555b
Issue #19815 : Fix segfault when parsing empty namespace declaration.
...
Based on patches by Christian Heimes and Vajrasky Kok
2013-11-28 06:31:58 -08:00
Zachary Ware
04a684b2f2
Issue #19595 : Re-enable a long-disabled test in test_winsound
2013-11-27 23:56:04 -06:00
Zachary Ware
50a5dad608
Issue #19595 : Re-enable a long-disabled test in test_winsound
2013-11-27 23:56:04 -06:00
Guido van Rossum
a5062c5d81
asyncio: Change write buffer use to avoid O(N**2). Make write()/sendto() accept bytearray/memoryview too. Change some asserts with proper exceptions.
2013-11-27 14:12:48 -08:00
Victor Stinner
f28ce60441
Closes #19786 : tracemalloc, remove the arbitrary limit of 100 frames
...
The limit is now 178,956,969 on 64 bit (it is greater on 32 bit because
structures are smaller).
Use int instead of Py_ssize_t to store the number of frames to have smaller
traceback_t objects.
2013-11-27 22:27:13 +01:00
Victor Stinner
3c0481d426
Close #19798 : replace "maximum" term with "peak" in get_traced_memory()
...
documentation. Use also the term "current" for the current size.
2013-11-27 21:39:49 +01:00
Guido van Rossum
cced076218
asyncio: Fix get_event_loop() to call set_event_loop() when setting the loop. By Anthony Baire.
2013-11-27 10:37:13 -08:00
Serhiy Storchaka
ba9d75e1be
Skip test_find_mac on Windows (issue #19804 ).
...
This test requires the ifconfig executable on $PATH, /sbin/, or /usr/sbin.
2013-11-27 08:58:13 +02:00
Serhiy Storchaka
c303cfdb8a
Skip test_find_mac on Windows (issue #19804 ).
...
This test requires the ifconfig executable on $PATH, /sbin/, or /usr/sbin.
2013-11-27 08:57:51 +02:00
Benjamin Peterson
d75803c1fc
merge 3.3 ( #19729 )
2013-11-26 19:24:01 -06:00
Benjamin Peterson
0ee22bf774
fix format spec recursive expansion ( closes #19729 )
2013-11-26 19:22:36 -06:00
Zachary Ware
910b1c3993
Merge heads
2013-11-26 14:57:45 -06:00
Zachary Ware
99fb0513dd
Merge heads
2013-11-26 14:57:10 -06:00
Zachary Ware
29f8cb64e6
Issue #19588 : Merge with 3.3
2013-11-26 14:54:21 -06:00
Zachary Ware
a6edea530b
Issue #19588 : Fixed tests in test_random that were silently skipped most
...
of the time. Patch by Julian Gindi.
2013-11-26 14:50:10 -06:00
Serhiy Storchaka
822963ed5d
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
...
virtual interface. Original patch by Kent Frazier.
2013-11-26 22:49:36 +02:00
Serhiy Storchaka
56507c7862
Issue #11508 : Fixed uuid.getnode() and uuid.uuid1() on environment with
...
virtual interface. Original patch by Kent Frazier.
2013-11-26 22:47:16 +02:00
Mark Dickinson
518e6ee98b
Use @bigmemtest more accurately.
2013-11-26 20:29:06 +00:00
Mark Dickinson
a04f4e0374
Use @bigmemtest more accurately.
2013-11-26 20:28:29 +00:00
Serhiy Storchaka
687ff0ecdf
Issue #11489 : JSON decoder now accepts lone surrogates.
2013-11-26 21:27:11 +02:00
Serhiy Storchaka
c93329b3dd
Issue #11489 : JSON decoder now accepts lone surrogates.
2013-11-26 21:25:28 +02:00
Mark Dickinson
1df88677e9
Issue #19638 : Merge from 3.3
2013-11-26 16:19:38 +00:00
Mark Dickinson
f45bbb6211
Issue #19638 : Raise ValueError instead of crashing when converting billion character strings to float.
2013-11-26 16:19:13 +00:00
Serhiy Storchaka
eaec3597dd
Issue #19760 : Silence sysconfig's 'SO' key deprecation warnings in tests.
...
Change stacklevel in warnings.warn() for 'SO' key to 2.
2013-11-26 17:08:24 +02:00
Christian Heimes
ad39360a02
Fix suspicious test case
2013-11-26 01:32:15 +01:00
Antoine Pitrou
2cf4b0f159
Issue #19742 : fix a test_pathlib failure when a file owner or group isn't in the system database
2013-11-25 19:51:53 +01:00
Guido van Rossum
27bfe468cc
asyncio: Hopeful fix for issue 19765.
2013-11-25 10:06:34 -08:00
Guido van Rossum
14c3e14053
asyncio: Change mock pipe to mock socket. Hope to fix issue 19750.
2013-11-25 09:43:52 -08:00
Victor Stinner
23ed7e3d12
Issue #19753 : New try to fix test_gdb on System Z buildbot
2013-11-25 10:43:59 +01:00
Victor Stinner
a89ecc7d23
Cleanup test_tracemalloc.py. Patch written by Vajrasky Kok.
2013-11-25 09:29:45 +01: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
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
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
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
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
878d258a22
Issue #19744 (temp workaround): without ssl, skip pip test
2013-11-24 12:45:25 +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
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
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
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
Antoine Pitrou
8f2ee6e407
Fix writing out 64-bit size fields on 32-bit builds
2013-11-23 21:05:08 +01:00
Guido van Rossum
d41c343f28
asyncio: Use socketpair() from test_utils in tests (Saúl Ibarra Corretgé).
2013-11-23 11:51:53 -08:00
Antoine Pitrou
7cd9fbe087
Fix whitespace
2013-11-23 19:01:36 +01:00
Antoine Pitrou
c9dc4a2a8a
Issue #17810 : Implement PEP 3154, pickle protocol 4.
...
Most of the work is by Alexandre.
2013-11-23 18:59:12 +01:00
Ezio Melotti
95401c5f6b
#13633 : Added a new convert_charrefs keyword arg to HTMLParser that, when True, automatically converts all character references.
2013-11-23 19:52:05 +02:00
Guido van Rossum
94097b02c2
Relax timing even more, hopefully again fixes issue 19579.
2013-11-23 09:20:12 -08:00
Serhiy Storchaka
434d27a490
Merge heads
2013-11-23 19:08:38 +02:00
Victor Stinner
0da64f7ffb
Isue #19634 : test_y_before_1900() is expected to fail on Solaris
2013-11-23 17:58:26 +01:00