Guido van Rossum
2407f3bb1b
asyncio: Don't special-case GeneratorExit in Condition.wait().
2014-01-10 13:25:38 -08:00
Serhiy Storchaka
50471db565
Issue #19804 : The test_find_mac test in test_uuid is now skipped if the
...
ifconfig executable is not available.
2014-01-10 15:08:07 +02:00
Serhiy Storchaka
cce440fab8
Issue #19804 : The test_find_mac test in test_uuid is now skipped if the
...
ifconfig executable is not available.
2014-01-10 15:06:59 +02:00
Serhiy Storchaka
786ac7b27d
Issue #19886 : Use better estimated memory requirements for bigmem tests.
...
Incorrect requirements can cause memory swapping.
2014-01-10 13:39:27 +02:00
Serhiy Storchaka
4847e4e1f4
Issue #19886 : Use better estimated memory requirements for bigmem tests.
...
Incorrect requirements can cause memory swapping.
2014-01-10 13:37:54 +02:00
Antoine Pitrou
eb16804216
assertEquals is deprecated, use assertEqual instead.
2014-01-10 00:02:38 +01:00
Serhiy Storchaka
123e6d5b4b
Issue #13107 : argparse and optparse no longer raises an exception when output
...
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
2014-01-09 23:18:41 +02:00
Serhiy Storchaka
f451112413
Issue #13107 : argparse and optparse no longer raises an exception when output
...
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
2014-01-09 23:14:27 +02:00
Antoine Pitrou
ba44860c11
Try to fix test_ssl failures on some buildbots
2014-01-09 21:30:17 +01:00
Antoine Pitrou
32c4915b23
Try to fix test_ssl failures on some buildbots
2014-01-09 21:28:48 +01:00
Antoine Pitrou
78ace81c93
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
2014-01-09 20:09:03 +01:00
Antoine Pitrou
cd3d7cabef
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
2014-01-09 20:02:20 +01:00
Serhiy Storchaka
5940b92909
Do not reset the line number because we already set file position to correct
...
value.
(fixes error in patch for issue #18960 )
2014-01-09 20:13:52 +02:00
Serhiy Storchaka
1064a13bb0
Do not reset the line number because we already set file position to correct
...
value.
(fixes error in patch for issue #18960 )
2014-01-09 20:12:49 +02:00
Benjamin Peterson
a118c4fa79
merge 3.3
2014-01-09 11:12:31 -06:00
Benjamin Peterson
50b82c765f
clear zip stat cache after each ref leak run
2014-01-09 11:10:30 -06:00
Serhiy Storchaka
7282ff6d5b
Issue #18960 : Fix bugs with Python source code encoding in the second line.
...
* The first line of Python script could be executed twice when the source
encoding (not equal to 'utf-8') was specified on the second line.
* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment.
* As a consequence, 'python -x' works now again with files with the source
encoding declarations specified on the second file, and can be used again
to make Python batch files on Windows.
* The tokenize module now ignore the source encoding declaration on the second
line if the first line contains anything except a comment.
* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.
* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.
2014-01-09 18:41:59 +02:00
Serhiy Storchaka
768c16ce02
Issue #18960 : Fix bugs with Python source code encoding in the second line.
...
* The first line of Python script could be executed twice when the source
encoding (not equal to 'utf-8') was specified on the second line.
* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment.
* As a consequence, 'python -x' works now again with files with the source
encoding declarations specified on the second file, and can be used again
to make Python batch files on Windows.
* The tokenize module now ignore the source encoding declaration on the second
line if the first line contains anything except a comment.
* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.
* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.
2014-01-09 18:36:09 +02:00
Serhiy Storchaka
69fdbf9cb0
Issue #20078 : Reading malformed zipfiles no longer hangs with 100% CPU
...
consumption.
2014-01-09 14:53:41 +02:00
Serhiy Storchaka
5ce3f10aee
Issue #20078 : Reading malformed zipfiles no longer hangs with 100% CPU
...
consumption.
2014-01-09 14:50:20 +02:00
Victor Stinner
6f17deb9bb
(Merge 3.3) Issue #20113 : Fix test_posix on OpenIndiana
2014-01-08 16:01:42 +01:00
Victor Stinner
cd5ca6a564
Issue #20113 : Fix test_posix on OpenIndiana
2014-01-08 16:01:31 +01:00
Victor Stinner
149e540adf
(Merge 3.3) Issue #20113 : os.readv() and os.writev() now raise an OSError
...
exception on error instead of returning -1.
2014-01-08 15:26:12 +01:00
Victor Stinner
57ddf78b6b
Issue #20113 : os.readv() and os.writev() now raise an OSError exception on
...
error instead of returning -1.
2014-01-08 15:21:28 +01:00
Eric Snow
e4314e05d5
Issue 19713: Remove PEP 451-related code that should have been factored out.
...
This code was an artifact of issuing a DeprecationWarning for the lack
of loader.exec_module(). However, we have deferred such warnings to
later Python versions.
2014-01-07 23:29:19 -07:00
Gregory P. Smith
2e385e2592
Fixes issue #19081 : When a zipimport .zip file in sys.path being imported from
...
is modified during the lifetime of the Python process after zipimport has
already cached the zip's table of contents we detect this and recover
rather than read bad data from the .zip (causing odd import errors).
2014-01-07 18:34:23 -08:00
Gregory P. Smith
2bcbc14117
Fixes Issue #19081 : When a zipimport .zip file in sys.path being imported from
...
is modified during the lifetime of the Python process after zipimport has
already cached the zip's table of contents we detect this and recover
rather than read bad data from the .zip (causing odd import errors).
2014-01-07 18:30:07 -08:00
Guido van Rossum
6188bd498f
Fix typo in asyncio/streams.py.
2014-01-07 17:03:26 -08:00
Brett Cannon
8d942296bb
Issue #19719 : Update various finder and loader ABCs such that their
...
old methods now provide implementations when PEP 451 APIs are present.
This should help with backwards-compatibility with code which has not
been updated to work with PEP 451.
2014-01-07 15:52:42 -05:00
Larry Hastings
16c5191ab3
Issue #20144 : Argument Clinic now supports simple constants as parameter
...
default values. inspect.Signature correspondingly supports them in
__text_signature__ fields for builtins.
2014-01-07 11:53:01 -08:00
Serhiy Storchaka
985b8dbe11
Issue #20072 : Fixed multiple errors in tkinter with wantobjects is False.
...
* Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and
LabelFrame.panes() now always return a tuple.
* Fixed error of comparing str and int in tt.LabeledScale._adjust().
* ttk.Notebook.index() now always returns int.
* ttk.Notebook.tabs() now always returns a tuple.
* ttk.Entry.bbox() now always returns a tuple of ints.
* ttk.Entry.validate() now always correctly works.
* ttk.Combobox.current() now always returns int.
* ttk.Panedwindow.sashpos() now always returns int.
* ttk.Treeview.bbox() now always returns a tuple of ints.
* ttk.Treeview.get_children() now always returns a tuple.
* ttk.Treeview.exists() now always correctly works.
* ttk.Treeview.index() now always returns int.
* ttk.Treeview.tag_has() now always returns 0 or 1.
* And numerous other errors in methods which returns a tuple, list or dict.
* Fixed ttk tests for wantobjects is False.
2014-01-07 19:30:36 +02:00
Serhiy Storchaka
a21acb5d95
Issue #20072 : Fixed multiple errors in tkinter with wantobjects is False.
...
* Misc.image_names(), Misc.image_types(), Wm.wm_colormapwindows(), and
LabelFrame.panes() now always return a tuple.
* Fixed error of comparing str and int in tt.LabeledScale._adjust().
* ttk.Notebook.index() now always returns int.
* ttk.Notebook.tabs() now always returns a tuple.
* ttk.Entry.bbox() now always returns a tuple of ints.
* ttk.Entry.validate() now always correctly works.
* ttk.Combobox.current() now always returns int.
* ttk.Panedwindow.sashpos() now always returns int.
* ttk.Treeview.bbox() now always returns a tuple of ints.
* ttk.Treeview.get_children() now always returns a tuple.
* ttk.Treeview.exists() now always correctly works.
* ttk.Treeview.index() now always returns int.
* ttk.Treeview.tag_has() now always returns 0 or 1.
* And numerous other errors in methods which returns a tuple, list or dict.
* Fixed ttk tests for wantobjects is False.
2014-01-07 19:27:42 +02:00
Victor Stinner
cc26310e2e
Issue #20162 : test_hash_distribution() uses subTest() to mention the prefix in
...
the error message.
2014-01-07 14:40:51 +01:00
Eric Snow
1500d49c22
Issue 19713: Add PEP 451-related deprecations.
2014-01-06 20:49:04 -07:00
Eric Snow
02b9f9d6bb
Remove more usage of APIs deprecated by PEP 451.
2014-01-06 20:42:59 -07:00
Eric Snow
3a62d14b24
Issue #19703 : Update pydoc to use the new importer APIs.
2014-01-06 20:42:59 -07:00
Eric Snow
3192eac6cf
Remove dead PEP 451 code.
2014-01-06 20:38:16 -07:00
Guido van Rossum
3845521b4b
asyncio: Fix deadlock in readexactly(). Fixes issue #20154 .
2014-01-06 16:09:18 -08:00
Larry Hastings
b7f5dcadf2
Merge 3.4.0b2 release revisions back into mainline.
2014-01-06 07:24:19 -08:00
Ethan Furman
df3ed242c0
Issue19995: %o, %x, %X now only accept ints
2014-01-05 06:50:30 -08:00
Larry Hastings
a6c55232ab
Bump version number for 3.4.0b2.
2014-01-05 04:40:25 -08:00
Larry Hastings
bfd715ebd1
Regenerated pydoc/topics.py, and fix a "suspicious" doc error.
2014-01-05 04:35:56 -08:00
Eric Snow
5ea97506a2
Issue 20123: Disable a problematic test.
2014-01-04 23:04:27 -07:00
Eric Snow
0dddf4258a
Issue 20123: try using a different builtin module in a pydoc test.
...
The test is failing on one of the stable FreeBSD buildbots. It seems
unlikely that the gc module would not be available, so switching to
_imp may not fix the problem.
2014-01-04 21:56:07 -07:00
R David Murray
410d320703
whatsnew: XMLPullParser, plus some doc updates.
...
I was confused by the text saying that read_events "iterated", since it
actually returns an iterator (that's what a generator does) that the
caller must then iterate. So I tidied up the language. I'm not sure
what the sentence "Events provided in a previous call to read_events()
will not be yielded again." is trying to convey, so I didn't try to fix that.
Also fixed a couple more news items.
2014-01-04 23:52:50 -05:00
Eric Snow
aed5b22ead
Issue 20123: Fix pydoc.synopsis() for "binary" modules.
...
Also add missing tests to test_pydoc.
2014-01-04 20:38:11 -07:00
Eric Snow
37148b27ac
Issue #19708 : Update pkgutil to use the new importer APIs.
2014-01-04 15:09:53 -07:00
Eric Snow
335e14dd1a
Issue #19713 : Move away from using find_module/load_module.
2014-01-04 15:09:28 -07:00
Eric Snow
d749c7ae68
Issue #19927 : Add __eq__ to path-based loaders in importlib.
2014-01-04 15:06:49 -07:00
Martin v. Löwis
24e43308b7
* Issue #16113 : Remove sha3 module again.
...
Patch by Christian Heimes, with modifications.
2014-01-03 14:05:06 +01:00
Eric Snow
fbc785188d
Issue #20097 : Fix bad use of "self" in importlib's WindowsRegistryFinder.
2014-01-02 22:25:00 -07:00
Daniel Holth
9dee304205
Issue #18585 : speed zipfile import by only generating zipfile._ZipDecryptor on demand
2014-01-02 23:17:21 -05:00
Victor Stinner
daeffd2c08
audioop: adpcm2lin() and lin2adpcm() now raises a TypeError instead of a
...
SystemError if the state type is invalid.
2014-01-03 03:26:47 +01:00
Benjamin Peterson
3e6ab1715d
avoid parameter name clash ( closes #20108 )
2014-01-02 12:24:08 -06:00
Victor Stinner
6f055e73df
asyncio: make PY34 symbol private (rename it to _PY34)
2014-01-02 18:41:34 +01:00
Antoine Pitrou
1b02da95d2
Issue #20111 : pathlib.Path.with_suffix() now sanity checks the given suffix.
2014-01-03 00:07:17 +01:00
Benjamin Peterson
c22eaecd53
merge 3.3 ( closes #20108 )
2014-01-02 12:26:50 -06:00
Zachary Ware
393a94243f
Issue #20101 : Merge with 3.3
2014-01-02 09:43:09 -06:00
Zachary Ware
487aedb77c
Issue #20101 : Allow test_monotonic to pass on Windows machines on which
...
time.get_clock_info('monotonic').resolution == 0.015600099999999999
This is just a workaround pending a real resolution to #20101 .
2014-01-02 09:41:10 -06:00
Donald Stufft
f7f58f8db5
Update pip to the released 1.5
2014-01-02 09:33:35 -05:00
Victor Stinner
009771ee6b
(Merge 3.3) Issue #18829 : Add tests for the csv module for invalid characters
...
(delimiter, escapechar, quotechar)
2014-01-02 12:53:50 +01:00
Victor Stinner
6a31b0fa19
Issue #18829 : Add tests for the csv module for invalid characters (delimiter,
...
escapechar, quotechar)
2014-01-02 12:53:13 +01:00
Antoine Pitrou
b672888092
Issue #20055 : Fix test_shutil under Windows with symlink privileges held.
...
Patch by Vajrasky Kok.
2014-01-01 02:51:58 +01:00
Antoine Pitrou
3f48ac98c0
Issue #20055 : Fix test_shutil under Windows with symlink privileges held.
...
Patch by Vajrasky Kok.
2014-01-01 02:50:45 +01:00
Donald Stufft
d9ddd3f9ba
Update setuptools to 2.0.2
2013-12-31 06:52:47 -05:00
Donald Stufft
73777c48dd
Update pip to 1.5rc4
2013-12-31 06:49:54 -05:00
Zachary Ware
bfd488c51f
Issue #19544 , #6516 : check ZLIB_SUPPORT, not zlib (which might not be bound)
2013-12-30 15:09:20 -06:00
Zachary Ware
efa2e04033
Issue19619: skip zlib error test when zlib not available
2013-12-30 14:54:11 -06:00
Zachary Ware
2ee2c95595
Issue #19544 , #6516 : check ZLIB_SUPPORT, not zlib (which might not be bound)
2013-12-30 14:39:46 -06:00
Senthil Kumaran
b6fac245b5
Backporing the fix from Issue #12692
2013-12-28 17:36:18 -08:00
Antoine Pitrou
3e86ba4e32
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:26:33 +01:00
Antoine Pitrou
b5c66f8645
Fix breakage in TestSuite.countTestCases() introduced by issue #11798 .
2013-12-28 20:37:58 +01:00
Antoine Pitrou
156b3610b8
Issue #19918 : Fix PurePath.relative_to() under Windows.
2013-12-28 19:49:04 +01:00
Guido van Rossum
68816ef058
Export asyncio.iscoroutine[function].
2013-12-28 08:06:40 -10:00
Antoine Pitrou
e6d2f159fc
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:30:51 +01:00
Antoine Pitrou
c1764dd350
Issue #19648 : implement empty tests in pickletester. Patch by Gennadiy Zlobin.
2013-12-28 16:57:37 +01:00
R David Murray
ecff5e51a5
#18116 : backport fix to 3.3 since real-world failure mode demonstrated.
...
In issue 20074 it was pointed out that getpass would fail with a traceback if
stdin was, for example /dev/null, which is a non-unlikely scenario.
Also backported the tests from issue 17484 as modified by issue 18116.
(What I really did was copy getpass.py and test_getpass.py from their
state on tip as of 17bd04fbf3d3).
2013-12-27 11:24:32 -05:00
Donald Stufft
1896dc5efd
Update bundled pip to 1.5rc3
2013-12-27 02:07:49 -05:00
Serhiy Storchaka
8c4f57d1d5
Issue #20046 : Locale alias table no longer contains entities which can be
...
calculated. Generalized support of the euro modifier.
2013-12-27 00:56:53 +02:00
Serhiy Storchaka
e190fac5f9
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:21:52 +02:00
Serhiy Storchaka
5eb01530b2
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:20:59 +02:00
Serhiy Storchaka
1b97ed5abc
Issue #20067 : Tkinter variables now work when wantobjects is false.
2013-12-26 20:06:43 +02:00
Serhiy Storchaka
d97c01ff28
Issue #20067 : Tkinter variables now work when wantobjects is false.
2013-12-26 20:06:05 +02:00
doko@ubuntu.com
e575148cc2
- Issue #20070 : Don't run test_urllib2net when network resources are not
...
enabled.
2013-12-26 17:37:11 +01:00
Zachary Ware
bb4b7c12fa
Issue #19938 : Re-enabled test_bug_1333982 in test_dis, which had been
...
disabled since 3.0 due to the changes in listcomp handling.
2013-12-26 09:55:24 -06:00
Zachary Ware
e80e806b3a
Issue #19938 : Re-enabled test_bug_1333982 in test_dis, which had been
...
disabled since 3.0 due to the changes in listcomp handling.
2013-12-26 09:53:49 -06:00
Serhiy Storchaka
b5d55184e0
test_debug in test_tkinter/test_text no longer fails when wantobjects is false.
2013-12-25 17:36:20 +02:00
Serhiy Storchaka
a1de906330
test_debug in test_tkinter/test_text no longer fails when wantobjects is false.
2013-12-25 17:35:24 +02:00
Serhiy Storchaka
cb131948fe
Issue #19320 : test_tcl no longer fails when wantobjects is false.
2013-12-25 17:29:41 +02:00
Serhiy Storchaka
cc4290bf91
Issue #19320 : test_tcl no longer fails when wantobjects is false.
2013-12-25 17:29:01 +02:00
Serhiy Storchaka
81d2be9580
Issue #19020 : Tkinter now uses splitlist() instead of split() in configure
...
methods.
2013-12-25 16:36:43 +02:00
Serhiy Storchaka
848972cac1
Issue #19020 : Tkinter now uses splitlist() instead of split() in configure
...
methods.
2013-12-25 16:35:38 +02:00
Serhiy Storchaka
a7a4b4916f
Issue #20058 : sys.stdin.readline() in IDLE now always returns only one line.
2013-12-25 14:27:16 +02:00
Serhiy Storchaka
0fd557647d
Issue #20058 : sys.stdin.readline() in IDLE now always returns only one line.
2013-12-25 14:24:35 +02:00
R David Murray
3edcc7832e
#16832 : s/integer/object/ in docs/docstring, and add whatsnew entry.
2013-12-24 16:13:32 -05:00
Nick Coghlan
ae2ee96ad7
Issue #19744 : improve ensurepip error when ssl is missing
2013-12-23 23:07:07 +10:00
Nick Coghlan
f71cae0a93
Issue #19728 : fix ensurepip name clash with submodule
...
Also added refactoring and added basic tests for the argument
parsing in both ensurepip._main and ensurepip._uninstall._main.
2013-12-23 18:20:34 +10:00
Nick Coghlan
23f597e462
Further increase tolerance for slow buildbots
2013-12-23 18:17:20 +10:00
Nick Coghlan
ed9af52ff0
Issue #19734 : ignore pip env vars in ensurepip._uninstall
2013-12-23 17:39:12 +10:00
Nick Coghlan
6256fcbc97
Close #19734 : ignore pip env vars in ensurepip
2013-12-23 16:16:07 +10:00
Benjamin Peterson
eaedaeccf2
update Barry's email ( #19563 )
2013-12-22 19:45:38 -06:00
Benjamin Peterson
8fb007f329
merge 3.3 ( #19563 )
2013-12-22 19:45:53 -06:00
Antoine Pitrou
5bf8c3477d
Fix bootstrap issue by importing the cgi module lazily
2013-12-22 19:41:31 +01:00
Antoine Pitrou
e62a40401d
Fix bootstrap issue by importing the cgi module lazily
2013-12-22 19:37:17 +01:00
Antoine Pitrou
20d5adea6a
Fix TypeError on "setup.py upload --show-response".
2013-12-22 18:14:56 +01:00
Antoine Pitrou
335a5128e5
Fix TypeError on "setup.py upload --show-response".
2013-12-22 18:13:51 +01:00
Antoine Pitrou
e8d07a9885
Issue #12226 : HTTPS is now used by default when connecting to PyPI.
2013-12-22 01:45:42 +01:00
Antoine Pitrou
f60b7df9f8
Issue #12226 : HTTPS is now used by default when connecting to PyPI.
2013-12-22 01:35:53 +01:00
Antoine Pitrou
23b8cd963d
Fix urllib.request.build_opener mocking in test_distutils (should fix some random buildbot failures)
2013-12-22 00:44:28 +01:00
Antoine Pitrou
6783487757
Fix urllib.request.build_opener mocking in test_distutils (should fix some random buildbot failures)
2013-12-22 00:44:01 +01:00
Antoine Pitrou
29fd05f900
Issue #20045 : Fix "setup.py register --list-classifiers".
2013-12-21 22:59:06 +01:00
Antoine Pitrou
716b7222e9
Issue #20045 : Fix "setup.py register --list-classifiers".
2013-12-21 22:57:56 +01:00
Antoine Pitrou
492b9893e1
Fix DeprecationWarnings in test suite
2013-12-21 22:19:46 +01:00
Antoine Pitrou
2b7f69851d
Issue #18879 : When a method is looked up on a temporary file, avoid closing the file before the method is possibly called.
2013-12-21 22:16:19 +01:00
Antoine Pitrou
17c93260a6
Issue #18879 : When a method is looked up on a temporary file, avoid closing the file before the method is possibly called.
2013-12-21 22:14:56 +01:00
Christian Heimes
266772abe9
merge
2013-12-21 16:19:57 +01:00
Christian Heimes
af01f66817
Issue #16136 : Remove VMS support and VMS-related code
2013-12-21 16:19:10 +01:00
Antoine Pitrou
712cb734bd
Issue #20037 : Avoid crashes when doing text I/O late at interpreter shutdown.
2013-12-21 15:51:54 +01:00
Christian Heimes
5255b86fba
skip multiprocessing main handling test when Python is built without threads
2013-12-21 15:47:24 +01:00
Guido van Rossum
68600c73bf
asyncio: Fix space in log message about poll time.
2013-12-20 20:37:41 -08:00
Donald Stufft
8b36dace41
Upgrade pip to 1.5rc2 and setuptools to 2.0.1
2013-12-20 19:03:18 -05:00
Victor Stinner
e40c078627
Issue #19967 : Defer the formating of the traceback in asyncio.Future destructor
2013-12-21 00:19:33 +01:00
Guido van Rossum
ac97bf4fd9
asyncio: Export all abstract protocol and transport classes. Fixes issue #20029 .
2013-12-20 14:16:21 -08:00
Zachary Ware
bdce938af2
Update test.outstanding_bugs.py
2013-12-20 13:25:07 -06:00
Zachary Ware
32e57ef023
Update test.outstanding_bugs.py
2013-12-20 13:25:53 -06:00
Serhiy Storchaka
6e6ec50f82
Issue #20034 : Updated alias mapping to most recent locale.alias file
...
from X.org distribution using makelocalealias.py.
2013-12-20 18:50:32 +02:00
Serhiy Storchaka
715233c3cd
Issue #20034 : Updated alias mapping to most recent locale.alias file
...
from X.org distribution using makelocalealias.py.
2013-12-20 18:23:26 +02:00
Nick Coghlan
05385292e9
Issue #19946 : use public API for multiprocessing start methods
...
This should appease the OpenIndiana buildbot.
Also lengthened the worst case timeout to try to eliminate
the inconsistent failure on one of the Windows 7 buildbots.
2013-12-20 22:14:03 +10:00
Guido van Rossum
9ba75db3c5
asyncio: Clean up formatting.
2013-12-19 13:49:32 -08:00
Victor Stinner
4c3c699e62
Close #19967 : Thanks to the PEP 442, asyncio.Future can use a destructor in
...
Python 3.4 to log "uncatched" exceptions, instead of the dedicated
_TracebackLogger class.
2013-12-19 22:42:40 +01:00
Guido van Rossum
994bf4332f
Shorten lines.
2013-12-19 12:47:38 -08:00
Serhiy Storchaka
bea3534efe
Don't use sebTest() in tests for issue #5815 .
2013-12-19 22:31:46 +02:00
Zachary Ware
e36e8be2ee
Issue #19683 : Removed empty tests from test_minidom. Patch by Ajitesh Gupta.
2013-12-19 13:44:56 -06:00
Serhiy Storchaka
16f02d2b06
Issue #5815 : Fixed support for locales with modifiers. Fixed support for
...
locale encodings with hyphens.
2013-12-19 21:21:40 +02:00
Serhiy Storchaka
c8cc42edf4
Issue #5815 : Fixed support for locales with modifiers. Fixed support for
...
locale encodings with hyphens.
2013-12-19 21:21:25 +02:00
Victor Stinner
ed0b87d73c
Fix the C definition of the sys._debugmallocstats() function: the function has
...
no parameter
2013-12-19 17:16:42 +01:00
Victor Stinner
36e96b8716
(Merge 3.3) Issue #20025 : ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() now
...
raise a ValueError if num is negative (instead of raising a SystemError).
2013-12-19 16:47:25 +01:00
Victor Stinner
1e81a399a2
Issue #20025 : ssl.RAND_bytes() and ssl.RAND_pseudo_bytes() now raise a
...
ValueError if num is negative (instead of raising a SystemError).
2013-12-19 16:47:04 +01:00
Victor Stinner
08263f10f8
(Merge 3.3) Issue #20026 : Fix the sqlite module to handle correctly invalid
...
isolation level (wrong type).
2013-12-19 16:39:00 +01:00
Victor Stinner
cb1f74ec40
Issue #20026 : Fix the sqlite module to handle correctly invalid isolation level
...
(wrong type).
2013-12-19 16:38:03 +01:00
Serhiy Storchaka
cf58fb5e29
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:28:04 +02:00
Serhiy Storchaka
cac23a50ee
Issue #18829 : csv.Dialect() now checks type for delimiter, escapechar and
...
quotechar fields. Original patch by Vajrasky Kok.
2013-12-19 16:27:18 +02:00
Nick Coghlan
feae73e13f
Issue #19946 : appropriately skip new multiprocessing tests
...
Thanks to Christian Heimes for noting the buildbot failures and
to Zachary Ware for providing the patch to make the new tests
play nice with both other platforms and unittest test discovery
2013-12-19 21:53:31 +10:00
Eric Snow
61e851baca
Remove some dead code in importlib, introduced with the PEP 451 patch.
...
Early in the PEP 451 implementation some of the importlib loaders had
their own _get_spec() methods to simplify accommodating them. However,
later implementations removed the need. They simply failed to remove
this code at the same time. :)
2013-12-18 23:35:15 -07:00
Benjamin Peterson
fc45f173a3
merge 3.3 ( #20018 )
2013-12-18 15:37:03 -06:00
Benjamin Peterson
ccedc22769
update url to spec ( closes #20018 )
2013-12-18 15:35:18 -06:00
Serhiy Storchaka
3f5f436680
Issue #19492 : Silently skipped distutils tests now reported as skipped.
2013-12-18 16:45:24 +02:00
Serhiy Storchaka
3c02ecefba
Issue #19492 : Silently skipped distutils tests now reported as skipped.
2013-12-18 16:41:01 +02:00
R David Murray
0ce3e9d82b
Merge: #19855 : uuid.get_node now looks on the PATH for executables on unix.
2013-12-17 21:14:41 -05:00
R David Murray
4be1e24933
#19855 : uuid.get_node now looks on the PATH for executables on unix.
...
Patch by Serhiy Storchaka.
2013-12-17 21:13:16 -05:00
Antoine Pitrou
74940dc928
Issue #20006 : Fix sporadic failures in test_weakset.
2013-12-18 00:32:02 +01:00
Antoine Pitrou
320b39158e
Issue #20006 : Fix sporadic failures in test_weakset.
2013-12-18 00:28:36 +01:00
Antoine Pitrou
0c73fc04e6
Revert misled test change in f189da5bda26.
2013-12-18 00:29:30 +01:00
Serhiy Storchaka
cac05e2e90
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:51:40 +02:00
Serhiy Storchaka
1c84ac1f55
Issue #20007 : HTTPResponse.read(0) no more prematurely closes connection.
...
Original patch by Simon Sapin.
2013-12-17 21:50:02 +02:00
Nick Coghlan
9a76735b1d
Close #19946 : use runpy as needed in multiprocessing
...
- handles main files without a suffix
- handles main submodules properly
- adds test cases for the various kinds of __main__
2013-12-17 22:17:26 +10:00
Victor Stinner
1d006a2c0e
Backout a1a05e2724dd: shutil.which(bytes) is a new feature and my patch does not work on Windows
2013-12-16 23:39:40 +01:00
Victor Stinner
fffb96ba66
Issue #18283 : shutil.which() now supports bytes argument, not only text argument.
2013-12-16 22:48:48 +01:00
Victor Stinner
a4275b276c
(Merge 3.3) Close #19999 : tolerate coarse time when testing time.monotonic() on
...
very busy/slow buildbot
2013-12-16 22:38:46 +01:00
Victor Stinner
170078804c
Close #19999 : tolerate coarse time when testing time.monotonic() on very
...
busy/slow buildbot
2013-12-16 22:36:50 +01:00
Christian Heimes
bd9cbb0691
Issue #19919 : Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:16:45 +01:00
Christian Heimes
de57074874
Issue #19919 : Fix flacky SSL test. connect_ex() sometimes returns
...
EWOULDBLOCK on Windows or VMs hosted on Windows.
2013-12-16 21:15:44 +01:00
Antoine Pitrou
0048c98fef
Issue #19921 : When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).
...
Patch by Serhiy.
2013-12-16 20:22:37 +01:00
Antoine Pitrou
c274fd22ed
Issue #19887 : Improve the Path.resolve() algorithm to support certain symlink chains.
...
Original patch by Serhiy.
2013-12-16 19:57:41 +01:00
Zachary Ware
d2e48ca813
Issue #19987 : Merge with 3.3
2013-12-16 09:05:44 -06:00
Zachary Ware
1007432c95
Issue #19987 : Re-write test_alias_fallback in test_winsound to have two
...
acceptable outcomes: success or RuntimeError. Without being able to
actually hear whether a sound was played, either one could be right, but
any other error would be a failure.
2013-12-16 09:02:41 -06:00
Christian Heimes
e9dacaa93f
Issue #19987 : disable test_winsound's test_alias_fallback test when no sound card
...
is available. The test fails on Windows Server 2008.
2013-12-16 14:54:24 +01:00
Serhiy Storchaka
928b9e272d
Merge heads
2013-12-16 15:16:35 +02:00
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
R David Murray
b05d69808e
#19975 : remove unused imports from webbrowser module.
...
Report and patch by Claudiu Popa.
2013-12-13 17:21:42 -05:00
Brett Cannon
c091a5762e
Issue #19704 : Port test.test_threaded_import to PEP 451
2013-12-13 16:47:19 -05:00
Brett Cannon
ca7ab7c7f1
Issue #19946 : Raise ImportError when the main module cannot be found
...
by multiprocessing.spawn (before it was raising an AttributeError).
2013-12-13 11:43:10 -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
Victor Stinner
2748bc735e
asyncio: remove references to the Tulip project, rename Tulip to asyncio.
...
Patch written by Vajrasky Kok.
2013-12-13 10:57:04 +01: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
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