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
Gregory P. Smith
acd17304d2
Fixes Issue #17200 : telnetlib's read_until and expect timeout was broken by the
...
fix to Issue #14635 in Python 3.3.0 to be interpreted as milliseconds instead
of seconds when the platform supports select.poll (ie: everywhere). It is now
treated as seconds once again.
2013-12-10 18:25:21 -08:00
Ned Deily
e72b90eb7a
Issue #18270 : merge from 3.3
2013-12-10 16:32:57 -08:00
Ned Deily
f3c6589ea3
Issue #18270 : Prevent possible IDLE AttributeError on OS X when no initial
...
shell window is present. (Original patch by Terry Reedy)
2013-12-10 16:24:01 -08: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
Ezio Melotti
20719ace97
#19943 : merge with 3.3.
2013-12-10 14:06:18 +02:00
Ezio Melotti
d082b68786
#19943 : fix typo noticed by Jakub Wilk.
2013-12-10 14:05:46 +02:00
Serhiy Storchaka
184ec79bd3
Remove commented out debugging code (remnants of issue #18996 ).
2013-12-10 13:53:56 +02: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
Serhiy Storchaka
0ed6c4ae62
Issue #19481 : print() of string subclass instance in IDLE no more hangs.
2013-12-10 10:06:35 +02:00
Serhiy Storchaka
9df8a1c112
Issue #19481 : print() of string subclass instance in IDLE no more hangs.
2013-12-10 10:05:19 +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
031bd532c4
Close #19880 : Fix a reference leak in unittest.TestCase. Explicitly break
...
reference cycles between frames and the _Outcome instance.
2013-12-09 01:52:50 +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
ced3936894
Issue #17429 : some PEP 8 compliance fixes for the platform modules, add whitespaces
2013-12-09 00:14:52 +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
Gregory P. Smith
7b83b18679
Fixes issue #19929 : Call os.read with 32768 within subprocess.Popen
...
communicate rather than 4096 for efficiency. A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
2013-12-08 10:58:28 -08:00
Gregory P. Smith
589ecda56e
Fixes issue #19929 : Call os.read with 32768 within subprocess.Popen
...
communicate rather than 4096 for efficiency. A microbenchmark shows
Linux and OS X both using ~50% less cpu time this way.
2013-12-08 10:56:07 -08: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
Gregory P. Smith
f491f92529
Remove mentions of Python 2.x and being externally maintained from
...
the bundled json module. Replace that with a mention of it being
a version of the externally maintained simplejson module.
2013-12-08 00:39:36 -08:00
Gregory P. Smith
a82f74dee3
Remove mentions of Python 2.x and being externally maintained from
...
the bundled json module. Replace that with a mention of it being
a version of the externally maintained simplejson module.
2013-12-08 00:39:07 -08: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
Gregory P. Smith
5ca129b8f0
Fixes issue #19506 : Use a memoryview to avoid a data copy when piping data
...
to stdin within subprocess.Popen.communicate. 5-10% less cpu usage.
2013-12-07 19:14:59 -08:00
Gregory P. Smith
774f909489
Fixes issue #19506 : Use a memoryview to avoid a data copy when piping data
...
to stdin within subprocess.Popen.communicate. 5-10% less cpu usage.
2013-12-07 19:12:46 -08: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