Benjamin Peterson
a9dcdabccb
always set OP_NO_SSLv3 by default ( closes #25530 )
2015-11-11 22:38:41 -08:00
Serhiy Storchaka
e1dc3d47e0
Issue #6598 : Avoid clock wrapping around in test_make_msgid_collisions.
...
Use time.monotonic or time.time instead of time.clock.
2015-11-10 19:50:14 +02:00
Serhiy Storchaka
40fe35a95e
Issue #25263 : Fixed the tkinter.test.test_tkinter.test_font.FontTest test
...
failure when the test is ran the second time.
The root attribute was set in parent class in setUpClass and then
overridded in child class in tearDownClass.
2015-11-10 15:30:35 +02:00
Serhiy Storchaka
b63902a748
Issue #25582 : Fixed 100 MB memory leak in test_ctypes.
2015-11-09 22:31:10 +02:00
Serhiy Storchaka
411dfd871c
Issue #22643 : Skip test_case_operation_overflow on computers with low memory.
2015-11-07 16:54:48 +02:00
Serhiy Storchaka
608c213530
Issue #892902 : Added new tests for pickling recursive collections.
2015-11-07 11:16:10 +02:00
Martin Panter
eeb896c411
Issue #24802 : Copy bytes-like objects to null-terminated buffers if necessary
...
This avoids possible buffer overreads when int(), float(), compile(), exec()
and eval() are passed bytes-like objects. Similar code is removed from the
complex() constructor, where it was not reachable.
Patch by John Leitch, Serhiy Storchaka and Martin Panter.
2015-11-07 02:32:21 +00:00
Martin Panter
9ad0aae656
Issue #18010 : Fix pydoc web server search to handle package exceptions
...
Implementation by Antoine Pitrou.
2015-11-06 00:27:14 +00:00
Yury Selivanov
ade0412613
asyncio: Optimize asyncio.sleep(0)
2015-11-05 14:29:04 -05:00
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
2015-11-02 14:10:23 +02:00
Martin Panter
7462b64911
Issue #25523 : Correct "a" article to "an" article
...
This changes the main documentation, doc strings, source code comments, and a
couple error messages in the test suite. In some cases the word was removed
or edited some other way to fix the grammar.
2015-11-02 03:37:02 +00:00
Serhiy Storchaka
314464d0ab
Issue #25510 : fileinput.FileInput.readline() now returns b'' instead of ''
...
at the end if the FileInput was opened with binary mode.
Patch by Ryosuke Ito.
2015-11-01 16:43:58 +02:00
Martin Panter
1f1177d69a
Fix some spelling errors in documentation and code comments
2015-10-31 11:48:53 +00:00
Terry Jan Reedy
bbdc065506
Issue #25507 : move test-specific imports to test function (idlelib.IOBinding).
2015-10-30 02:47:06 -04:00
Serhiy Storchaka
ea4cb63e68
Issue #21827 : Fixed textwrap.dedent() for the case when largest common
...
whitespace is a substring of smallest leading whitespace.
Based on patch by Robert Li.
2015-10-28 21:39:36 +02:00
Zachary Ware
df2660e430
Issue #25494 : Remove extra quote from docstring.
...
Patch by John Mark Vandenberg.
2015-10-27 22:00:41 -05:00
Terry Jan Reedy
4c973e9a4b
Display IDLE warning as a warning rather than as an error.
...
Clarify message and expected action for beginners.
Guard against astral chars in path incorporated in message.
2015-10-27 03:38:02 -04:00
Martin Panter
5487c13e44
Issue #23391 : Restore OSError constructor argument documentation
...
This restores details lost in revision 097f4fda61a4 (since Python 3.3,
related to the new OSError subclasses). Further additions:
* Markup for attributes and constructor signature
* Explain "winerror" and "filename2"
* Extend test to check for filename2 defaulting to None
* Clarify that the constructor can return a subclass
I have intentionally left out any details of allowing more than five
arguments, or how the "args" attribute is set for four or more arguments.
These details seem to be dependent on the Python version and platform.
2015-10-26 11:05:42 +00:00
Zachary Ware
f085a16f55
Issue #25456 : Fix test_idle when Tcl/Tk DLLs are loaded from python.exe's home
...
rather than from elsewhere on PATH.
2015-10-24 23:22:16 -05:00
Benjamin Peterson
d9dbf49383
accepted sockets shouldn't inherit the SOCK_NONBLOCK flag ( closes #25471 )
2015-10-24 20:06:04 -07:00
Serhiy Storchaka
458123bd18
Issue21160: Correct comments in nturl2path. Patch by Jurko Gospodnetić.
2015-10-24 17:39:36 +03:00
Terry Jan Reedy
d081229c4e
Issue #24782 : Limit width of canvas and hence IDLE settings dialog.
2015-10-22 03:27:31 -04:00
Terry Jan Reedy
47304c0669
Issue #24782 : Don't try to run now-removed extension dialog test.
2015-10-20 02:15:28 -04:00
Guido van Rossum
06d48dbea8
Fix whitespace.
2015-10-19 12:00:04 -07:00
Guido van Rossum
c44ecdf687
Issue #25441 : asyncio: Raise error from drain() when socket is closed.
2015-10-19 11:49:30 -07:00
Vinay Sajip
277640af0f
Closes #25411 : Improved Unicode support in SMTPHandler.
2015-10-17 16:13:10 +01:00
Terry Jan Reedy
b2f87608d1
Issue #24782 : whitespace
2015-10-13 22:09:06 -04:00
Terry Jan Reedy
93f3542ae4
Issue #24782 : Finish converting the Configure Extension dialog into a new
...
tab in the IDLE Preferences dialog. Code patch by Mark Roseman.
2015-10-13 22:03:51 -04:00
Serhiy Storchaka
5805ddeedb
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:12:32 +03:00
Zachary Ware
83fd0a81a4
Issue #25093 : Fix test_tcl's testloadWithUNC for paths with spaces
...
Patch by Serhiy Storchaka.
2015-10-12 23:27:58 -05:00
Terry Jan Reedy
d0cadba85f
Issue #22726 : Re-activate config dialog help button with some content about
...
the other buttons and the new IDLE Dark theme.
2015-10-11 22:07:31 -04:00
Serhiy Storchaka
1fdc80b55f
Cleanup test_descr: remove C8 that is the same as C3.
2015-10-11 17:42:39 +03:00
Benjamin Peterson
414918a939
use the with statement for locking the internal condition ( closes #25362 )
...
Patch by Nir Soffer.
2015-10-10 19:34:46 -07:00
Brett Cannon
89065d9fc7
Issue #25099 : Skip relevant tests in test_compileall when an entry on
...
sys.path has an unwritable __pycache__ directory.
This typically comes up when someone runs the test suite from an
administrative install of Python on Windows where the user does not
have write permissions to the stdlib's directory.
Thanks to Zachary Ware and Matthias Klose for reporting bugs related
to this issue.
(grafted from 34bbd537b3e688dfbb6498e9083445a6a72fc4b1)
2015-10-09 15:09:43 -07:00
Serhiy Storchaka
7b2cfc4465
Issue #25365 : test_pickle now works in threads disabled builds.
2015-10-10 20:10:07 +03:00
Martin Panter
7c6420a552
Issue #25322 : Fix test for nested contextlib.suppress
2015-10-10 11:04:44 +00:00
Martin Panter
e44dba3b4f
Issue #24402 : Factor out PtyTests.run_child() in input() tests
...
This reuses existing code to hopefully make the new test_input_no_stdout_
fileno() test work. It is hanging Free BSD 9 and OS X Tiger buildbots, and I
don't know why.
2015-10-10 05:27:15 +00:00
Martin Panter
c9a6ab56cf
Issue #24402 : Fix input() when stdout.fileno() fails; diagnosed by Eryksun
...
Also factored out some test cases into a new PtyTests class.
2015-10-10 01:25:38 +00:00
Martin Panter
9955a373a8
Various minor typos in documentation and comments
2015-10-07 10:26:23 +00:00
Benjamin Peterson
bd6c41a185
prevent unacceptable bases from becoming bases through multiple inheritance ( #24806 )
2015-10-06 19:36:54 -07:00
Zachary Ware
106ddf07b3
Issue #25097 : Re-raise any other pywin32 error
2015-10-06 15:28:43 -05:00
Zachary Ware
22226c5595
Issue #25097 : fix Windows error number access
2015-10-06 15:22:13 -05:00
Serhiy Storchaka
a6d04cf4e6
Merge heads
2015-10-06 18:38:25 +03:00
Guido van Rossum
36bbd0f239
Issue #23972 : Fix tests for Windows and Debian.
2015-10-06 08:24:10 -07:00
Serhiy Storchaka
5f6fa82617
Issue #25317 : Converted doctests in test_tokenize to unittests.
...
Made test_tokenize discoverable.
2015-10-06 18:16:28 +03:00
Benjamin Peterson
15982aad2b
reinitialize an Event's Condition with a regular lock ( closes #25319 )
2015-10-05 21:56:22 -07:00
Guido van Rossum
601953b679
Docs and one small improvement for issue #25304 , by Vincent Michel.
2015-10-05 16:20:00 -07:00
Guido van Rossum
b9bf913ab3
Issue #23972 : updates to asyncio datagram API. By Chris Laws.
2015-10-05 09:15:28 -07:00
Terry Jan Reedy
d17e9785de
Issue #24820 : Update IDLE NEWS items.
2015-10-04 01:14:51 -04:00
Terry Jan Reedy
be5b7a2437
Issue #24820 : Add 'IDLE Dark' text color theme, warning, and solution.
2015-10-04 00:31:05 -04:00
Guido van Rossum
841d9ee41a
Issue #25304 : Add asyncio.run_coroutine_threadsafe(). By Vincent Michel.
2015-10-03 08:31:42 -07:00
Martin Panter
cb29e8c0e5
Issue #24657 : Prevent CGIRequestHandler from collapsing the URL query
...
Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc
string.
2015-10-03 05:55:46 +00:00
Martin Panter
a02e18a43f
Issue #25232 : Fix CGIRequestHandler's splitting of URL query
...
Patch from Xiang Zhang.
2015-10-03 05:38:07 +00:00
Terry Jan Reedy
d470527aec
Issue #25224 : README.txt is now an idlelib index for IDLE developers and
...
curious users. The previous user content is now in the IDLE doc and is
redundant. IDLE now means 'Integrated Development and Learning Environment'.
2015-10-02 23:22:59 -04:00
Terry Jan Reedy
a8aa4d5fb7
Issue #24820 : Users can now set breakpoint colors in Settings ->
...
Custom Highlighting. Original patch by Mark Roseman.
2015-10-02 22:12:17 -04:00
Yury Selivanov
620279b9ac
asyncio: ensure_future() now understands awaitables
2015-10-02 15:00:19 -04:00
Serhiy Storchaka
28b21e50c8
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
2015-10-02 13:07:28 +03:00
Vinay Sajip
223349cfb8
Fixes #25097 : Windows test is skipped if there are insufficient privileges, rather than failing.
2015-10-01 20:37:54 +01:00
Vinay Sajip
f223c53218
Closes #25185 : Use UTF-8 encoding when reading pyvenv.cfg.
2015-10-01 11:27:00 +01:00
Serhiy Storchaka
f731bc09fa
Issue #25280 : Import trace messages emitted in verbose (-v) mode are no
...
longer formatted twice.
2015-10-01 11:08:50 +03:00
Victor Stinner
3f18f10f39
Issue #25274 : test_recursionlimit_recovery() of test_sys now checks
...
sys.gettrace() when the test is executed, not when the module is loaded.
sys.settrace() may be after after the test is loaded.
2015-10-01 08:55:33 +02:00
Serhiy Storchaka
b5102e3550
Issue #22958 : Constructor and update method of weakref.WeakValueDictionary
...
now accept the self and the dict keyword arguments.
2015-09-29 23:52:09 +03:00
Serhiy Storchaka
68f5ef226e
Issue #22609 : Constructor of collections.UserDict now accepts the self keyword
...
argument.
2015-09-29 23:36:06 +03:00
Serhiy Storchaka
e060619d4b
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
...
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
2015-09-29 22:10:07 +03:00
Guido van Rossum
d455a50773
Also rewrote the guts of asyncio.Semaphore (patch by manipopopo).
2015-09-29 11:54:45 -07:00
Andrew Svetlov
d94c1b92ed
Fix StreamReader.__repr__
2015-09-29 18:36:00 +03:00
Eric V. Smith
85976b14dd
Fixed issue #25034 : Fix string.Formatter problem with auto-numbering
...
and nested format_specs. Patch by Anthon van der Neut.
2015-09-29 10:27:38 -04:00
Serhiy Storchaka
b8b951f6ee
Added additional unpickling tests.
2015-09-29 15:49:58 +03:00
Serhiy Storchaka
c6b54b45ea
Moved unpickling tests with prepickled data to separate class.
2015-09-29 15:33:24 +03:00
Terry Jan Reedy
37f81355b0
Issue #24028 : Add subsection about Idle calltips.
2015-09-29 01:55:57 -04:00
Terry Jan Reedy
9af7fe76ff
Add recent IDLE NEWS items.
2015-09-28 23:38:57 -04:00
Guido van Rossum
99f96c5451
Issue #25233 : Rewrite the guts of Queue to be more understandable and correct.
2015-09-28 07:42:34 -07:00
Berker Peksag
16a1f28194
Issue #25249 : Remove unneeded mkstemp helper in test_subprocess
...
The helper was added in 76641824cf05 11 years ago and it can be
removed now since all supported Python versions have tempfile.mkstemp().
Patch by Nir Soffer.
2015-09-28 13:33:14 +03:00
Terry Jan Reedy
d351706950
Issue #24972 : New option is only valid in tk 8.5+.
2015-09-28 04:52:49 -04:00
Terry Jan Reedy
507a5c4b4e
Issue #24972 : Inactive selection background now matches active selection
...
background, as selected by user, on all systems. This also fixes a problem
with found items not highlighted on Windows. Initial patch by Mark Roseman.
Fix replaces workaround with obscure but proper configuration option.
2015-09-28 04:16:32 -04:00
Terry Jan Reedy
2122b62c2a
Backed out changeset: 70c01dd35100
2015-09-27 22:50:54 -04:00
Terry Jan Reedy
7082cbce64
Issue #24972 : Inactive selection background now matches active selection
...
background, as selected by user, on all systems. This also fixes a problem
with found items not highlighted on Windows. Initial patch by Mark Roseman.
Fix replaces workaround with obscure but proper configuration option.
2015-09-27 22:46:17 -04:00
Alexander Belopolsky
edc6885b3f
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 22:31:45 -04:00
Terry Jan Reedy
28670d1ffa
Issue #25198 : When using the Idle dov TOC menu, put the section title at the
...
top of the window, unless it is too near the bottom to do do.
2015-09-27 04:40:08 -04:00
Terry Jan Reedy
d2134c71a1
Issue #24570 : Idle: make calltip and completion boxes appear on Macs
...
affected by a tk regression. Initial patch by Mark Roseman.
2015-09-26 20:03:57 -04:00
Terry Jan Reedy
00e4ce3a36
Issue #24988 : Idle ScrolledList context menus (used in debugger)
...
now work on Mac Aqua. Patch by Mark Roseman.
2015-09-26 18:50:26 -04:00
Terry Jan Reedy
3be2e54adc
Issue #25173 : Replace 'master' with 'parent' in tkinter.messagebox calls.
...
This associates the message box with the widget and is better for Mac OSX.
Patch by Mark Roseman.
2015-09-25 22:22:55 -04:00
Martin Panter
cbe16aefb8
Issue #25211 : Eliminate lazy error message class by using subTest
...
Some of the calls to the Frm class were buggy anyway.
2015-09-25 23:50:47 +00:00
Terry Jan Reedy
52736ddc9c
Issue #25198 : Idle doc viewer now uses user width and height setting.
...
The height is reduced by 3/4 to account for extra spacing between lines,
relative to an Idle editor, and extra tall header lines.
2015-09-25 00:49:18 -04:00
Terry Jan Reedy
ce021dbb25
Issue #25225 : add revised .html.
2015-09-24 23:18:57 -04:00
Terry Jan Reedy
974a271105
Issue #25198 : In Idle doc viewer, fix indent of fixed-pitch <pre> text
...
by adding a new tag. Patch by Mark Roseman. Also give <pre> text a very
light blueish-gray background similar to that used by Sphinx html.
2015-09-24 17:32:01 -04:00
Terry Jan Reedy
0053c47785
Issue 21995: Explain some differences between IDLE and console Python.
2015-09-24 03:09:43 -04:00
Terry Jan Reedy
6e10ec5367
Issue 25224: Augment Idle doc feature list and no-subprocess section
...
to finish making current README.txt obsolete.
2015-09-23 20:00:33 -04:00
Terry Jan Reedy
968e285a8c
Issue #25219 : Update doc for Idle command line options.
...
Some were missing and notes were not correct.
2015-09-23 03:52:23 -04:00
Terry Jan Reedy
6f5cdfefa1
Idlelib.help: add 'b' prefix needed for bytes + bytes.
2015-09-23 03:45:13 -04:00
Terry Jan Reedy
a0ae789fd4
Issue #16893 : Move idlelib.EditorWindow.HelpDialog deprecation warning
...
so it is not triggered on import. The problem is creation of a now-unused
instance "helpDialog = HelpDialog()", left for back compatibility.
So instead trigger the warning when that instance or another is used.
2015-09-22 22:59:40 -04:00
Martin Panter
89f76d3f91
Issue #25047 : Respect case writing XML encoding declarations
...
This restores the ability to write encoding names in uppercase like "UTF-8",
which worked in Python 2.
2015-09-23 01:14:35 +00:00
Terry Jan Reedy
f94471c140
whitespace
2015-09-22 21:13:28 -04:00
Terry Jan Reedy
3c7eccd0a6
Issue #24570 : Right-click for context menus now work on Mac Aqual also.
...
Patch by Mark Roseman.
2015-09-22 21:10:27 -04:00
Steve Dower
8f278f1662
Handle calls to win32_ver from non-Windows platform
2015-09-22 17:35:24 -07:00
Steve Dower
64a3387d69
Issue #19143 : platform module now reads Windows version from kernel32.dll to avoid compatibility shims.
2015-09-22 17:29:51 -07:00
Terry Jan Reedy
364d6e107d
whitespace
2015-09-21 22:42:32 -04:00
Terry Jan Reedy
cba1a1a000
Issue #16893 : Add idlelib.help.copy_strip() to copy-rstrip Doc/.../idle.html.
...
Change destination to help.html. Adjust NEWS entries.
2015-09-21 22:36:42 -04:00
Terry Jan Reedy
d9763c2ce4
Issue #24861 : add Idle news item and correct previous errors.
2015-09-21 19:28:22 -04:00
Victor Stinner
582b17c2c5
Issue #23630 : Fix test_asyncio on Windows
...
The proactor event loop requires also to mock loop._stop_serving.
2015-09-21 22:28:44 +02:00
Victor Stinner
72e1eae7bb
Issue #25114 : Fix test_asyncio
...
ssl.SSLContext() does not always disable compression. Fix unit test.
2015-09-21 22:20:19 +02:00
Victor Stinner
5e4a7d8dc7
Issue #23630 , asyncio: host parameter of loop.create_server() can now be a
...
sequence of strings. Patch written by Yann Sionneau.
2015-09-21 18:33:43 +02:00
Victor Stinner
f7dc7fb74d
Issue #25114 , asyncio: add ssl_object extra info to SSL transports
...
This info is required on Python 3.5 and newer to get specific information on
the SSL object, like getting the binary peer certificate (instead of getting
it as text).
2015-09-21 18:06:17 +02:00
Victor Stinner
808d6416e3
Issue #25138 : test_socket.test_idna() uses support.transient_internet() instead
...
of catching socket.EAI_NODATA error which doesn't exist on FreeBSD.
2015-09-21 09:04:01 +02:00
Terry Jan Reedy
c3f7731f3c
Issue #24861 : Add docstring to idlelib.__init__ with 'private' warning.
2015-09-21 01:44:06 -04:00
Terry Jan Reedy
09fbb200aa
Move items from NEWS to idlelib/NEWS.txt. Standardize headers spacing: 2 lines
...
above "What's New and 0 lines above "Release date". Remove most old headers
for non-final releases (they currently do not get carried forward.
2015-09-21 01:07:59 -04:00
Terry Jan Reedy
96f802a999
Issue #16893 : finish deprecation.
2015-09-20 23:05:25 -04:00
Terry Jan Reedy
b50c6377a6
Issue #25199 : Idle: add synchronization comments for future maintainers.
2015-09-20 22:55:39 -04:00
Terry Jan Reedy
963a38bc44
Issue #16893 : whitespace in idle.html.
2015-09-20 20:03:01 -04:00
Terry Jan Reedy
5d46ab1274
Issue #16893 : Replace help.txt with idle.html for Idle doc display.
...
The new idlelib/idle.html is copied from Doc/build/html/idle.html.
It looks better than help.txt and will better document Idle as released.
The tkinter html viewer that works for this file was written by Rose Roseman.
The new code is in idlelib/help.py, a new file for help menu classes.
The now unused EditorWindow.HelpDialog class and helt.txt file are deprecated.
2015-09-20 19:57:13 -04:00
Terry Jan Reedy
c37c49fd56
Issue #24199 : Add stacklevel to deprecation warning call.
2015-09-20 02:34:03 -04:00
Serhiy Storchaka
d86a6ef41c
Issue #25101 : Try to create a file to test write access in test_zipfile.
2015-09-19 10:55:20 +03:00
Victor Stinner
53936474aa
Issue #24836 : Skip FormatDateTests of test_email.test_utils on Mac OS X Snow
...
Leopard because this OS uses out of date (pre 2011k) timezone files.
2015-09-18 16:32:23 +02:00
Victor Stinner
511491ade0
Issue #23517 : Fix rounding in fromtimestamp() and utcfromtimestamp() methods
...
of datetime.datetime: microseconds are now rounded to nearest with ties going
to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards
zero (ROUND_DOWN). It's important that these methods use the same rounding
mode than datetime.timedelta to keep the property:
(datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t)
It also the rounding mode used by round(float) for example.
Add more unit tests on the rounding mode in test_datetime.
2015-09-18 14:42:05 +02:00
Serhiy Storchaka
e3bcbd2bba
Issue #25108 : Backported tests for traceback functions print_stack(),
...
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:07:18 +03:00
Victor Stinner
a578eb34ba
test_gdb: fix regex to parse the GDB version
...
Fix the regex to support the version 7.10: minor version with two digits
2015-09-15 00:22:55 +02:00
Benjamin Peterson
4019852bfc
fix name of argument in docstring and the docs ( closes #25076 )
...
Patch by TAKASE Arihiro.
2015-09-12 17:20:47 -07:00
Kristján Valur Jónsson
95c3e6cb22
Issue #25021 : Merge from 3.3 to 3.4
2015-09-12 15:30:23 +00:00
Kristján Valur Jónsson
102764a1f6
Issue #25021 : Correctly make sure that product.__setstate__ does not access
...
invalid memory.
2015-09-12 15:20:54 +00:00
Serhiy Storchaka
0424eaf753
Marked keystrokes with the :kbd: role.
...
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:45:25 +03:00
Martin Panter
06171bd52a
Issue #16473 : Fix byte transform codec documentation; test quotetabs=True
...
This changes the equivalent functions listed for the Base-64, hex and Quoted-
Printable codecs to reflect the functions actually used. Also mention and
test the "quotetabs" setting for Quoted-Printable encoding.
2015-09-12 00:34:28 +00:00
Berker Peksag
3fc536f1c9
Issue #24857 : Comparing call_args to a long sequence now correctly returns a
...
boolean result instead of raising an exception.
Patch by A Kaptur.
2015-09-09 23:35:25 +03:00
Martin Panter
9499413508
os.sendfile(headers=None, trailers=None) arguments are not actually accepted
...
Needs to be tested on a BSD.
2015-09-09 05:29:24 +00:00
Terry Jan Reedy
78d915aa3e
Issue 24199: Deprecate idlelib.idlever with a warning on import.
2015-09-09 02:10:17 -04:00
Martin Panter
bf19d16950
Issue #23738 : Document and test actual keyword parameter names
...
Also fix signature because os.utime(..., ns=None) is not allowed.
2015-09-09 01:01:13 +00:00
Serhiy Storchaka
5558d4f2f8
Fixed tests for shutil.make_archive() with relative base_name in the case when
...
the path of the directory for temporary files contains symlinks.
2015-09-08 09:59:02 +03:00
Raymond Hettinger
8ba03cf33f
Fix whitespace in comment.
2015-09-08 00:36:29 -04:00
Serhiy Storchaka
2504cecebd
Issue #24982 : shutil.make_archive() with the "zip" format now adds entries
...
for directories (including empty directories) in ZIP file.
Added test for comparing shutil.make_archive() with the "zip" command.
2015-09-08 05:47:23 +03:00
Serhiy Storchaka
de5f9f4f70
Raise more correct exception on overflow in setting buffer_size attribute of
...
expat parser.
2015-09-07 22:51:56 +03:00
Serhiy Storchaka
931331a328
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
...
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
2015-09-07 22:37:02 +03:00
Serhiy Storchaka
eba8feedfa
Issue #25018 : Fixed testing shutil.make_archive() with relative base_name on
...
Windows. The test now makes sense on non-Windows. Added similar test for
zip format.
2015-09-07 19:58:23 +03:00
Serhiy Storchaka
a091a8221e
Explicitly test archive name in shutil.make_archive() tests to expose failure
...
details in issue25018.
2015-09-07 13:55:25 +03:00
Terry Jan Reedy
b41eadab43
Issue #24889 : When starting Idle, force focus onto Idle window if not already
...
there (as when opening Idle from interactive Python on Windows).
2015-09-07 01:58:13 -04:00
Martin Panter
e8d58d1f02
Issue #25004 : Handle out-of-disk-space error in LargeMmapTests
...
Patch from John Beck.
2015-09-07 02:57:47 +00:00
Ezio Melotti
6f2bb98966
#23144 : Make sure that HTMLParser.feed() returns all the data, even when convert_charrefs is True.
2015-09-06 21:38:06 +03:00
Serhiy Storchaka
527ef0792f
Fix, refactor and extend tests for shutil.make_archive().
2015-09-06 18:33:19 +03:00
Serhiy Storchaka
2a23adf440
Use support.change_cwd() in tests.
2015-09-06 14:13:25 +03:00
Terry Jan Reedy
ca3f435fe6
Issue #16180 : Exit pdb if file has syntax error, instead of trapping user
...
in an infinite loop. Patch by Xavier de Gaye.
2015-09-05 19:13:26 -04:00
Terry Jan Reedy
4fda56f44b
Issue #24745 : Prevent IDLE initialization crash with Tk 8.4; patch by Ned Deily.
2015-09-04 04:37:56 -04:00
Victor Stinner
479fea63e1
test_gdb: oops, the regex to parse the gdb version was still too strict
2015-09-03 15:42:26 +02:00
Victor Stinner
a7b76e0cbe
test_wsgiref: add missing import (support)
2015-09-03 12:14:25 +02:00
Senthil Kumaran
22f2c0e215
Fix test_wsgiref execution from the test module.
2015-09-03 02:26:31 -07:00
Victor Stinner
26afae4019
test_gdb: fix regex to parse GDB version for 'GNU gdb 6.1.1 [FreeBSD]\n'
2015-09-03 09:45:53 +02:00
Terry Jan Reedy
ac5004f7ce
Issue #21192 : Change 'RUN' back to 'RESTART' when running editor file.
2015-09-02 22:07:44 -04:00
Victor Stinner
1c40552087
Fix test_warnings: don't modify warnings.filters
...
BaseTest now ensures that unittest.TestCase.assertWarns() uses the same
warnings module than warnings.catch_warnings(). Otherwise,
warnings.catch_warnings() will be unable to remove the added filter.
2015-09-03 00:07:47 +02:00
Victor Stinner
5b6b4a8c34
test_gdb: use subprocess.Popen context manager to fix ResourceWarning warnings
...
when the test is interrupted (or fail).
2015-09-02 23:19:55 +02:00
Victor Stinner
2f3ac1ea76
test_gdb: fix regex to parse gdb version for SUSE Linux Entreprise
...
Mention also the detected GDB version on verbose mode and on error (if the
major version is smaller than 7).
2015-09-02 23:12:14 +02:00
Raymond Hettinger
7a3602e7cf
Issue #24931 : Resolve __dict__ conflict in namedtuple subclasses.
2015-08-30 09:13:48 -07:00
Robert Collins
ed599b7c84
Issue #21112 : Fix regression in unittest.expectedFailure on subclasses.
...
Patch from Berker Peksag.
2015-08-28 10:34:51 +12:00
Terry Jan Reedy
8e9296702a
Issue #24790 : correct typo noticed by Eric Smith
2015-08-27 13:02:11 -04:00
Terry Jan Reedy
2050a1061f
Issue #24790 : Restore unused function.
2015-08-26 23:37:14 -04:00
Terry Jan Reedy
41a27e021e
Issue #24782 : In Idle extension config dialog, replace tabs with sorted list.
...
Patch by Mark Roseman.
2015-08-26 23:13:22 -04:00
Donald Stufft
b372356d0a
Update pip to 7.1.2 and setuptools to 18.2
2015-08-24 16:13:48 -04:00
Yury Selivanov
ab7cc7598a
Issue #23572 : Fixed functools.singledispatch on classes with falsy metaclasses.
...
Patch by Ethan Furman.
2015-08-18 14:30:15 -04:00
Terry Jan Reedy
a78ebe6323
Issue #24790 : Remove extraneous code (which also create 2 & 3 conflicts).
2015-08-18 13:26:57 -04:00
Victor Stinner
6579459d4b
cgi.FieldStorage.read_multi ignores Content-Length
...
Issue #24764 : cgi.FieldStorage.read_multi() now ignores the Content-Length
header in part headers. Patch written by Peter Landry and reviewed by Pierre
Quentel.
2015-08-18 10:21:10 -07:00
Terry Jan Reedy
5080deb5a4
Entries for idlelib/NEWS.txt
2015-08-16 23:23:16 -04:00
Robert Collins
9644f2450d
Issue #24774 : Fix docstring in http.server.test.
...
Patch from Chiu-Hsiang Hsu.
2015-08-17 12:18:35 +12:00
Terry Jan Reedy
c6dd5b1c66
Issue #24833 : Add attribute reference needed for 3.x.
2015-08-14 16:59:42 -04:00
Yury Selivanov
233983380d
Issue #24867 : Fix Task.get_stack() for 'async def' coroutines
2015-08-14 15:30:59 -04:00
Robert Collins
ac37ba0742
Issue #21159 : Improve message in configparser.InterpolationMissingOptionError.
...
Patch from Łukasz Langa.
2015-08-14 11:11:35 +12:00
Yury Selivanov
9632ea2f26
Issue #24763 : Fix asyncio test on Windows (fix reverted change)
...
See also issue #24835
2015-08-09 18:21:25 -04:00
Zachary Ware
9a47ed8839
regrtest: the 'bad' and 'environment_changed' sets of tests don't intersect anymore
2015-08-08 22:03:27 -05:00
Steve Dower
3a7ffa7474
Issue #4214 : Remove ineffectual /pdb:none option from msvc9compiler.py
2015-08-07 19:48:03 -07:00
Robert Collins
d84b29f805
Issue #4395 : Better testing and documentation of binary operators.
...
Patch by Martin Panter.
2015-08-07 10:22:54 +12:00
Yury Selivanov
159fbdd805
Issue #23812 : Fix getter-cancellation with many pending getters code path
2015-08-06 14:03:38 -04:00
Berker Peksag
86b34da5ef
Issue #23004 : mock_open() now reads binary data correctly when the type of read_data is bytes.
...
Initial patch by Aaron Hill.
2015-08-06 13:15:51 +03:00
Terry Jan Reedy
5c28e9f887
Issue #23672 : Allow Idle to edit and run files with astral chars in name.
...
Patch by Mohd Sanad Zaki Rizvi.
2015-08-06 00:54:07 -04:00
Yury Selivanov
8c125eb44b
asyncio: Make sure BaseException is re-raised in SSLProtocol
2015-08-05 14:06:23 -04:00
Yury Selivanov
3fc0f2d288
Issue #23812 : Fix asyncio.Queue.get() to avoid loosing items on cancellation.
...
Patch by Gustavo J. A. M. Carneiro.
2015-08-05 13:52:33 -04:00
Zachary Ware
36948d7875
Issue #24791 : Add tests for things that regressed with PEP 448
2015-08-04 22:49:55 -05:00
Zachary Ware
920a335e97
Issue #24751 : When running regrtest with '-w', don't fail if re-run succeeds.
2015-08-04 21:54:54 -05:00
Yury Selivanov
2a8911c0b7
asyncio: Sync with upstream (compat module)
2015-08-04 15:56:33 -04:00
Yury Selivanov
996083d6e6
asyncio: Sync with mainstream
2015-08-04 15:37:24 -04:00
Robert Collins
2fee5c9367
Issue #24021 : docstring for urllib.urlcleanup.
...
Patch from Daniel Andrade Groppe and Peter Lovett
2015-08-04 12:52:06 +12:00
Terry Jan Reedy
7e220c082b
Merge
2015-08-03 18:41:16 -04:00
Terry Jan Reedy
2f7de53993
Issue #24759 : Revert 13a8782a775e.
2015-08-03 18:34:22 -04:00
Robert Collins
a0e5d981cd
Issue #23888 : Handle fractional time in cookie expiry. Patch by ssh.
2015-08-04 10:06:29 +12:00
Robert Collins
43cbbe21a7
Issue #22397 : Skip failing tests on AIX
...
Patch from David Edelsohn.
2015-08-03 10:36:04 +12:00
Yury Selivanov
4c0a09a0c9
Revert da29a94367b2
2015-08-02 16:49:31 -04:00
Yury Selivanov
6b3f29ca8f
asyncio: Fix code style
2015-08-02 10:24:34 -04:00
Serhiy Storchaka
0dcd80a6c0
Issue #20557 : Use specific asserts in io tests.
2015-08-02 15:17:49 +03:00
Zachary Ware
ce17f76475
Issue #23182 : PEP8-ify the annotation grammar tests. Patch by Ian Lee.
2015-08-01 21:55:36 -05:00
Terry Jan Reedy
d87d16826a
Issue 24745: Switch from Courier to platform-sensitive TkFixedFont as default
...
editor font. This should not affect current customized font selections.
Patch by Mark Roseman.
2015-08-01 18:57:33 -04:00
Terry Jan Reedy
231007fe14
Issue #21192 : Idle Editor. When a file is run, put its name in the restart bar.
...
Do not print false prompts. Original patch by Adnan Umer.
2015-07-31 22:34:37 -04:00
Victor Stinner
9a82bd45cd
Issue #24763 : Fix asyncio test on Windows
2015-07-31 23:36:00 +02:00
Robert Collins
2080dc97a7
Issue #22932 : Fix timezones in email.utils.formatdate.
...
Patch from Dmitry Shachnev.
2015-08-01 08:18:22 +12:00
Victor Stinner
6fb1e740c6
Fix ResourceWarning in asyncio.BaseSubprocessTransport
...
Issue #24763 : Fix resource warnings when asyncio.BaseSubprocessTransport
constructor fails, if subprocess.Popen raises an exception for example.
Patch written by Martin Richard, test written by me.
2015-07-31 17:49:43 +02:00
Terry Jan Reedy
062759f1dc
Issue 24759: Gracefull exit Idle if ttk import fails.
2015-07-30 21:16:16 -04:00
Robert Collins
5ccc18f298
Issue #23779 : imaplib raises TypeError if authenticator tries to abort.
...
Patch from Craig Holmquist.
2015-07-31 08:59:02 +12:00
Terry Jan Reedy
30f1f67248
Issue #13884 : Idle: Remove tearoff lines from menus. Patch by Roger Serwy.
2015-07-30 16:44:22 -04:00
Berker Peksag
41ca828580
Issue #12160 : Fix incorrect StreamCodec references in Codec.encode() and Codec.decode() docs.
...
It should StreamWriter for Codecs.encode() and StreamReader for Codec.decode().
Patch by Nick Weinhold.
2015-07-30 18:26:10 +03:00
Victor Stinner
9c631a0f71
Issue #23319 : Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
...
written by Matthieu Gautier.
2015-07-29 14:33:52 +02:00
Robert Collins
1ee9283254
Issue #23254 : Document how to close the TCPServer listening socket.
...
Patch from Martin Panter.
2015-07-29 12:52:40 +12:00
Berker Peksag
aaf6114b37
Issue #23441 : rcompleter now prints a tab character instead of displaying
...
possible completions for an empty word.
Initial patch by Martin Sekera.
2015-07-28 00:06:31 +03:00
Robert Collins
ddc7440b0e
Issue #17527 : Add PATCH to wsgiref.validator. Patch from Luca Sbardella.
2015-07-27 10:42:01 +12:00
Serhiy Storchaka
83236f7a8b
Issue #24683 : Fixed crashes in _json functions called with arguments of
...
inappropriate type.
2015-07-26 09:01:22 +03:00
Berker Peksag
5a294d822b
Issue #21697 : shutil.copytree() now correctly handles symbolic links that point to directories.
...
Patch by Eduardo Seabra and Thomas Kluyver.
2015-07-25 14:53:48 +03:00
Victor Stinner
eaf16abc68
asyncio: sync with github
...
* Fix ResourceWarning warnings in test_streams
* Return True from StreamReader.eof_received() to fix
http://bugs.python.org/issue24539 (but still needs a unittest).
Add StreamReader.__repr__() for easy debugging.
* remove unused imports
* Issue #234 : Drop JoinableQueue on Python 3.5+
2015-07-25 02:40:40 +02:00
Victor Stinner
71080fc351
asyncio: Add asyncio.compat module
...
Move compatibility helpers for the different Python versions to a new
asyncio.compat module.
2015-07-25 02:23:21 +02:00
Serhiy Storchaka
178f0b6ddc
Issue #24620 : Random.setstate() now validates the value of state last element.
2015-07-24 09:02:53 +03:00
Robert Collins
ca647ef60a
Issue #21750 : Further fixup to be styled like other mock APIs.
2015-07-24 03:48:20 +12:00
Serhiy Storchaka
750eae1bd4
Issue #24678 : Fixed raiseExceptions typo in logging tests.
...
Patch by Jacek Kołodziej.
2015-07-21 22:39:26 +03:00
Terry Jan Reedy
19c1a8725c
Issue #20792 : Expand idle_test.test_pathbowser. Tweak file to not copy twice.
...
Original patch by Saimadhav Heblikar.
2015-07-20 17:44:59 -04:00
Victor Stinner
c0b1e0f868
Issue #24675 : Avoid DeprecationWarning in test_os
...
Patch written by Martin Panter. I replace tearDown() with addCleanup().
2015-07-20 17:12:57 +02:00
Serhiy Storchaka
3018cc49e8
Issue #24206 : Fixed __eq__ and __ne__ methods of inspect classes.
2015-07-18 23:19:05 +03:00
Robert Collins
92b3e06517
Typo fix in mock.patch.
...
Patch from https://github.com/testing-cabal/mock/issues/215
2015-07-17 21:58:36 +12:00
Robert Collins
5329aaa74b
Issue #21750 : mock_open.read_data can now be read from each instance, as it
...
could in Python 3.3.
2015-07-17 20:08:45 +12:00
Victor Stinner
579db160b3
Closes #23247 : Fix a crash in the StreamWriter.reset() of CJK codecs
2015-07-16 22:17:31 +02:00
Robert Collins
b37f43f94b
- Issue #18622 : unittest.mock.mock_open().reset_mock would recurse infinitely.
...
Patch from Nicola Palumbo and Laurent De Buyst.
2015-07-15 11:42:28 +12:00
Serhiy Storchaka
d44768ff16
Issue #24608 : chunk.Chunk.read() now always returns bytes, not str.
2015-07-10 22:24:47 +03:00
Serhiy Storchaka
e0fd7ef6bb
Corrected docstrings of audio modules. writeframes() accepts bytes, not str.
2015-07-10 22:13:40 +03:00
Victor Stinner
e6ecea53c8
asyncio: sync with github asyncio
...
* queues: get coroutine from asyncio.coroutines, not from asyncio.tasks
* tets: replace tulip with asyncio in comments
2015-07-09 23:13:50 +02:00
Serhiy Storchaka
af320b389b
Added regression test for issue24581.
2015-07-08 22:58:55 +03:00
Lars Gustäbel
0357268d96
Issue #24259 : tarfile now raises a ReadError if an archive is truncated inside a data segment.
2015-07-06 09:27:24 +02:00
Ned Deily
54630d999f
Issue #24540 : fix typo in json.dumps docstring
2015-07-05 11:45:01 -07:00
Benjamin Peterson
1da0612e70
merge heads
2015-07-04 22:52:33 -05:00
Benjamin Peterson
2a48a6eb33
merge 3.3 ( #24407 )
2015-07-04 19:58:11 -05:00
Benjamin Peterson
a82f77fb00
protect against mutation of the dict during insertion ( closes #24407 )
2015-07-04 19:55:16 -05:00
Ned Deily
f1ce6deb41
Issue #24330 : Update IDLE doc and help to note "Configure IDLE" difference
...
on OS X. Original patch by André Freitas.
2015-07-04 15:05:07 -07:00
Yury Selivanov
09e6058838
Issue #24450 : Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper
2015-07-03 00:41:16 -04:00
Benjamin Peterson
d3a2a95125
use correct __new__ method ( closes #24552 )
2015-07-02 16:58:22 -05:00
Benjamin Peterson
80f78a3efc
fix use after free ( closes #24552 )
2015-07-02 16:18:38 -05:00
Lars Gustäbel
b7a688b3a4
Issue #24514 : tarfile now tolerates number fields consisting of only whitespace.
2015-07-02 19:38:38 +02:00
Donald Stufft
fe6399e894
Update setuptools to 18.0.1 and pip to 7.1.0
2015-07-01 11:30:50 -04:00
Serhiy Storchaka
05744ac6e0
Issue #19176 : Fixed doctype() related bugs in C implementation of ElementTree.
...
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method. Direct call of doctype() now issues a warning. Parser's
doctype() now is not called if target's doctype() is called. Based on patch
by Martin Panter.
2015-06-29 22:35:58 +03:00
Serhiy Storchaka
7b6e3b91f5
Issue #24467 : Fixed possible buffer over-read in bytearray. The bytearray
...
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.
2015-06-29 21:14:06 +03:00
Jason R. Coombs
50373e6c21
Issue #20387 : Merge
2015-06-28 11:10:29 -04:00
Serhiy Storchaka
449e2be12b
Issue #24456 : Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
...
functions of the audioop module.
2015-06-28 17:52:09 +03:00
Jason R. Coombs
80c29ac1ea
Issue #20387 : Merge patch and test
2015-06-28 10:23:11 -04:00
Serhiy Storchaka
101ff3541c
Issue #24336 : The contextmanager decorator now works with functions with
...
keyword arguments called "func" and "self". Patch by Martin Panter.
2015-06-28 17:06:07 +03:00
Berker Peksag
89584c97e4
Issue #23684 : Clarify the return value of the scheme attribute of ParseResult and SplitResult objects.
...
Patch by Martin Panter.
2015-06-25 23:38:48 +03:00
Yury Selivanov
339d5e7d85
Fix asyncio unittests in debug mode
2015-06-24 10:45:44 -04:00
Yury Selivanov
29a602a140
Issue #24400 : Fix CoroWrapper for 'async def' coroutines
2015-06-24 10:30:14 -04:00
Yury Selivanov
dfbd27f0be
asyncio: Merge changes from issue #24400 .
2015-06-24 09:41:35 -04:00
Antoine Pitrou
6bc217dd3d
Issue #24489 : ensure a previously set C errno doesn't disturb cmath.polar().
2015-06-23 14:31:11 +02:00
Dingyuan Wang
e411b6629f
Issue #20387 : Restore retention of indentation during untokenize.
2015-06-22 10:01:12 +08:00
Jason R. Coombs
b6d1cdda8e
Issue #20387 : Correct test to properly capture expectation.
2015-06-25 22:42:24 -04:00
Serhiy Storchaka
753a1dfcc2
Issue #24408 : Fixed test for tkinter.Font on OS X.
...
Based on patch by Martin Panter.
2015-06-21 14:41:44 +03:00
Jason R. Coombs
5713b3c5bf
Issue #20387 : Add test capturing failure to roundtrip indented code in tokenize module.
2015-06-20 19:52:22 -04:00
Jason R. Coombs
7cf36387e4
Remove unused import and remove doctest-only import into doctests.
2015-06-20 19:13:50 -04:00
Victor Stinner
e12e7aa3fd
Issue #15745 : Rewrite os.utime() tests in test_os
...
* Don't use the timestamp of an existing file anymore, only use fixed
timestamp
* Enhance the code checking the resolution of the filesystem timestamps.
* Check timestamps with a resolution of 1 microsecond instead of 1 millisecond
* When os.utime() uses the current system clock, tolerate a delta of 20 ms.
Before some os.utime() tolerated a different of 10 seconds.
* Merge duplicated tests and simplify the code
2015-06-12 21:58:00 +02:00
Serhiy Storchaka
c0ed707b2f
Issue #24408 : Added more tkinter.Font tests.
2015-06-09 07:18:54 +03:00
Benjamin Peterson
86c3a3b0b7
merge 3.2
2015-05-25 21:24:26 -05:00
Benjamin Peterson
b03856ab66
keep distutils version in sync with python version automatically
2015-05-25 21:24:00 -05:00
Benjamin Peterson
d504f20e1c
merge 3.2 ( #22931 )
2015-05-23 10:38:48 -05:00
Benjamin Peterson
9bd476ea57
allow square brackets in cookie values ( closes #22931 )
2015-05-23 10:36:48 -05:00
Benjamin Peterson
deff2b76ec
be more robust against the filters list changing under us ( closes #24096 )
2015-05-03 11:23:37 -04:00
Benjamin Peterson
501182a47b
just sort the items tuple directly ( closes #24094 )
2015-05-02 22:28:04 -04:00
Serhiy Storchaka
07c002573a
Issue #24299 : Fixed test__locale on Solaris.
2015-06-08 18:48:33 +03:00
Donald Stufft
96cf848a8b
Upgrade pip to 7.0.3 and setuptools to 17.0
2015-06-02 11:39:31 -04:00
Donald Stufft
71a8589ddc
Closes #24267 - Does not check version on ensurepip uninstall
...
Ensure that the uninstall helper for Windows passes the proper
flags to pip to prevent it from checking PyPI if the pip that
we're currently attempting to uninstall is the latest verison.
2015-06-02 10:37:08 -04:00
Yury Selivanov
70adad2a0e
Issue 24017: Fix asyncio.CoroWrapper to support 'async def' coroutines
2015-05-31 21:37:09 -04:00
Yury Selivanov
a316085192
Issue 24004: Support Awaitables (pep 492) in @asyncio.coroutine decorator
2015-05-30 21:02:12 -04:00
Serhiy Storchaka
f28fa66351
Issue #5633 : Fixed timeit when the statement is a string and the setup is not.
2015-05-30 19:38:26 +03:00
Serhiy Storchaka
50451eb912
Issue #24326 : Fixed audioop.ratecv() with non-default weightB argument.
...
Original patch by David Moore.
2015-05-30 00:53:26 +03:00
Yury Selivanov
1ad08a5555
asyncio: Drop some useless code from tasks.py.
...
See also issue 24017.
2015-05-28 10:52:19 -04:00
Yury Selivanov
46c759d76d
Issue 24298: Fix signature() to properly unwrap wrappers around bound methods
2015-05-27 21:56:53 -04:00
Benjamin Peterson
82d8f06fcd
merge 3.3
2015-05-25 21:24:48 -05:00
Victor Stinner
387729e183
Issue #23840 : tokenize.open() now closes the temporary binary file on error to
...
fix a resource warning.
2015-05-26 00:43:58 +02:00
Terry Jan Reedy
c4dc43eaf4
Update idlelib/NEWS.txt.
2015-05-23 17:23:30 -04:00
Benjamin Peterson
c4ae86e477
merge 3.3 ( #22931 )
2015-05-23 10:40:47 -05:00
Donald Stufft
7bf0d5a759
Upgrade pip to 7.0.1
2015-05-22 20:30:16 -04:00
Serhiy Storchaka
08d230a540
Issue #24257 : Fixed incorrect uses of PyObject_IsInstance().
...
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.
2015-05-22 11:02:49 +03:00
Donald Stufft
df9ba3623a
Upgrade pip to 7.0 and setuptools to 16.0
2015-05-22 00:39:22 -04:00
Yury Selivanov
bf341fb5f6
Issue 23898: Fix inspect.classify_class_attrs() to work with __eq__
2015-05-21 15:41:57 -04:00
Serhiy Storchaka
4faf5c5655
Issue #23985 : Fixed integer overflow in iterator object. Patch by
...
Clement Rouault.
2015-05-21 20:50:25 +03:00
Serhiy Storchaka
cbfe07e06c
Issue 24215: Added tests for more builtin types in test_pprint.
...
Made test_pprint and test_trace discoverable.
2015-05-20 19:37:10 +03:00
Serhiy Storchaka
c0e0022f07
Issue #24134 : Use assertRaises() in context manager form in test_slice to
...
avoid passing the test accidently because slice.__hash__ is None.
2015-05-20 18:37:37 +03:00
Serhiy Storchaka
ef94869f4f
Issue #24245 : Eliminated senseless expect clauses that have no any effect in
...
IDLE. Patch by Martin Panter.
2015-05-20 16:15:02 +03:00
Serhiy Storchaka
5d6b7b1cb7
Issue #22107 : tempfile.gettempdir() and tempfile.mkdtemp() now try again
...
when a directory with the chosen name already exists on Windows as well as
on Unix. tempfile.mkstemp() now fails early if parent directory is not
valid (not exists or is a file) on Windows.
2015-05-20 00:11:48 +03:00
Antoine Pitrou
2545411e28
Issue #23985 : Fix a possible buffer overrun when deleting a slice from the front of a bytearray and then appending some other bytes data.
...
Patch by Martin Panter.
2015-05-19 20:52:27 +02:00
R David Murray
6371446036
#24215 : also back out changeset that broke test_trace in 3.4.
...
I missed that this change was applied to both branches.
2015-05-19 08:24:59 -04:00
Serhiy Storchaka
ae760c0a2c
Issue #6598 : Increased time precision and random number range in
...
email.utils.make_msgid() to strengthen the uniqueness of the message ID.
2015-05-19 10:09:42 +03:00
Serhiy Storchaka
5bf3120e24
Issue #24091 : Fixed various crashes in corner cases in C implementation of
...
ElementTree.
2015-05-18 18:29:33 +03:00
Serhiy Storchaka
ca7fecb038
Issue #24102 : Fixed exception type checking in standard error handlers.
2015-05-18 16:08:52 +03:00
Raymond Hettinger
610a51f364
Issue #23757 : Only call the concrete list API for exact lists.
2015-05-17 14:45:58 -07:00
Terry Jan Reedy
296c66e21c
Issue #24199 : Make idlever module self updating. Syop using it in aboutDialog.
2015-05-16 19:28:32 -04:00
Terry Jan Reedy
a0b8a508c9
Issue #24212 : Put reference in idle.__main__ to issue with explanation.
2015-05-16 18:31:15 -04:00
Serhiy Storchaka
5dbb40ff17
Added tests for more builtin types.
...
Made test_pprint discoverable.
2015-05-16 21:35:24 +03:00
Terry Jan Reedy
031d0640cd
Issue #23964 : Update idlelib/idle_test/README.txt. first patch by Al Sweigart.
2015-05-16 14:23:39 -04:00
Serhiy Storchaka
a7d00c207f
Reverted issue #24134 changes (except new tests).
2015-05-16 16:25:43 +03:00
Terry Jan Reedy
75fb816c78
Issue #23184 : idle tests, remove unused names and imports.
2015-05-15 23:55:21 -04:00
Terry Jan Reedy
038c16b9a0
Issue #23184 : idlelib, remove more unused names and imports.
2015-05-15 23:03:17 -04:00
Terry Jan Reedy
2733618fd9
idlelib: remove unused names and imports (one is a duplicate import).
2015-05-14 18:10:50 -04:00
Yury Selivanov
c58cca5951
asyncio: Use 'collections.abc.Coroutine' in asyncio.iscoroutine (in 3.5)
2015-05-13 15:21:41 -04:00
Yury Selivanov
d08c363c26
Sync asyncio code from default branch.
2015-05-13 15:15:56 -04:00
Berker Peksag
3a81f9ba46
Issue #22064 : Improve the misleading message from 2to3 when skipping optional fixers.
...
Patch by Vinod Kurup.
2015-05-13 13:39:51 +03:00
Yury Selivanov
e8944cb217
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
...
Previous approach of installing coroutine wrapper in loop.set_debug() and
uninstalling it in loop.close() was very fragile. Most of asyncio tests
do not call loop.close() at all. Since coroutine wrapper is a global
setting, we have to make sure that it's only set when the loop is
running, and is automatically unset when it stops running.
Issue #24017 .
2015-05-12 11:43:04 -04:00
Berker Peksag
ea6d5592f2
Issue #23796 : peak and read1 methods of BufferedReader now raise ValueError
...
if they called on a closed object.
Patch by John Hergenroeder.
2015-05-12 17:13:56 +03:00
Yury Selivanov
1af2bf75a2
asyncio: Support PEP 492. Issue #24017 .
2015-05-11 22:27:25 -04:00
Yury Selivanov
59eb9a4da5
asyncio: async() function is deprecated in favour of ensure_future().
2015-05-11 14:48:38 -04:00
Yury Selivanov
740169cd24
Sync asyncio changes from the main repo.
2015-05-11 14:23:38 -04:00
Benjamin Peterson
65bcdd7195
ensure .keywords is always a dict
2015-05-09 00:25:18 -04:00
Donald Stufft
b0fc24bff4
Upgrade setuptools to 15.2
2015-05-08 21:30:04 -04:00
Larry Hastings
7e63b36f7f
Issue #21520 : test_zipfile no longer fails if the word 'bad' appears
...
anywhere in the name of the current directory.
2015-05-08 06:54:58 -07:00
Serhiy Storchaka
4b5367c46d
Fixed English in error message.
2015-05-06 19:21:00 +03:00
Serhiy Storchaka
e130503c7b
Issue #24134 : assertRaises(), assertRaisesRegex(), assertWarns() and
...
assertWarnsRegex() checks are not longer successful if the callable is None.
Added tests for assertRaises().
2015-05-06 19:13:11 +03:00
Serhiy Storchaka
ab914780ba
Issue #24125 : Saved error's line and column numbers when an error is occured
...
during closing expatreader. Fixed a regression introduced in issue #23865 .
2015-05-06 09:36:06 +03:00
Benjamin Peterson
8c59816b70
merge 3.3 ( #24096 )
2015-05-03 11:28:46 -04:00
Benjamin Peterson
122f4b1bda
merge 3.3 ( #24094 )
2015-05-02 22:36:26 -04:00
Guido van Rossum
0a9933ebf3
Asyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions without __name__.
2015-05-02 18:38:24 -07:00
Serhiy Storchaka
71f73ca7a9
Issue #23713 : Fixed fragility of test_imap_unordered_handle_iterable_exception.
...
Patch by Davin Potts.
2015-04-23 11:35:59 +03:00
Serhiy Storchaka
3bd66abb94
Use more precise Tcl version checks in tests.
2015-04-23 10:57:40 +03:00
Serhiy Storchaka
3af7a38c61
Issue #16840 . Turn off bignum support in tkinter with with Tcl earlier than 8.5.8
...
(tclTomMath.h was broken) and non-final Tcl 8.6.
2015-04-22 10:53:08 +03:00
Serhiy Storchaka
462c357d70
Fixed full Tcl version parsing in tests for pre-final versions.
2015-04-22 08:36:03 +03:00
Andrew Kuchling
333518e01d
#15183 : clarify timeit documentation to say that setup statement isn't timed
2015-04-21 19:43:33 -04:00
Serhiy Storchaka
b6076fb13c
Issue #23008 : Fixed resolving attributes with boolean value is False in pydoc.
2015-04-21 21:09:48 +03:00
Benjamin Peterson
d73aca769f
do not call into python api if an exception is set ( #24022 )
2015-04-21 12:05:19 -04:00
Guido van Rossum
0bd16bc4cd
Fix asyncio issue 235: Queue subclass bug caused by JoinableQueue merge.
2015-04-20 09:24:24 -07:00
Serhiy Storchaka
2b0d2007a1
Issue #23908 : os functions now reject paths with embedded null character
...
on Windows instead of silently truncate them.
2015-04-20 09:53:58 +03:00
Serhiy Storchaka
2ef7c47844
Issue #23728 : binascii.crc_hqx() could return an integer outside of the range
...
0-0xffff for empty data.
2015-04-20 09:26:49 +03:00
Serhiy Storchaka
16b2e4f548
Issue #23842 : Added tests for os.major(), os.minor() and os.makedev().
2015-04-20 09:22:13 +03:00
Serhiy Storchaka
6a69466f61
Backported tests from issue #20175 .
2015-04-16 11:54:14 +03:00
R David Murray
f4bbc535b9
#23925 : stop (eg) PYTHONSTARTUP from causing test_cmd_line failure.
...
Patch by Jamiel Almeida.
2015-04-14 17:57:41 -04:00
Zachary Ware
50db6acc9b
Issue #23956 : Fix typo in imp.py docstring.
...
Patch by Jacinda Shelly.
2015-04-14 15:43:00 -05:00
Berker Peksag
34c9be7ebd
Issue #23811 : Add missing newline to the PyCompileError error message.
...
Patch by Alex Shkop.
2015-04-14 18:57:55 +03:00
Andrew Kuchling
8b963c5853
#17898 : reset k and v so that the loop doesn't use an old value
2015-04-13 10:38:56 -04:00
Andrew Kuchling
770b08e8e2
#23883 : add names missing from __all__ (l*gettext, bind_textdomain_codeset)
2015-04-13 09:58:36 -04:00
Łukasz Langa
5f6684efe0
Issue #23310 : Fix MagicMock's initializer to work with __methods__.
...
Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim.
2015-04-14 00:12:57 -07:00
Berker Peksag
4882cacab6
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:30:01 +03:00
Benjamin Peterson
52a3b74900
remove useless word ( closes #23929 )
2015-04-13 20:24:10 -04:00
Antoine Pitrou
85e3ee749c
Issue #22982 : Improve BOM handling when seeking to multiple positions of a writable text file.
2015-04-13 20:01:21 +02:00
Antoine Pitrou
20d31b5182
Merge
2015-04-13 19:48:52 +02:00
Antoine Pitrou
25f85d4bd5
Issue #23309 : Avoid a deadlock at shutdown if a daemon thread is aborted
...
while it is holding a lock to a buffered I/O object, and the main thread
tries to use the same I/O object (typically stdout or stderr). A fatal
error is emitted instead.
2015-04-13 19:41:47 +02:00
Zachary Ware
4c9c848159
Issue #17202 : Add .bat to .hgeol to force them to CRLF.
...
Using LF can a script to fail if it tries to use a label that is
split across 512 byte blocks. Who knows why.
2015-04-13 11:59:54 -05:00
Guido van Rossum
e173c07502
Unittest for Issue 21511 by Christie Wilson bobcatfish@gmail.com.
2015-04-11 17:44:01 -04:00
Berker Peksag
ecb75e26db
Issue #23062 : Add a test for suppressing --version with argparse.SUPPRESS.
...
TestHelpVersionOptional was redundant.
2015-04-10 16:11:12 +03:00
Serhiy Storchaka
7e7a3dba5f
Issue #23865 : close() methods in multiple modules now are idempotent and more
...
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:24:41 +03:00
Serhiy Storchaka
dee948b359
Issues #23363 , #23364 , #23365 , #23366 : Fixed itertools overflow tests.
...
Used PyMem_New to check overflow.
2015-02-03 01:34:09 +02:00
Benjamin Peterson
1572944499
reduce memory usage of test ( closes #23369 )
2015-02-02 17:47:07 -05:00
Benjamin Peterson
0eaabf1c05
check for overflows in permutations() and product() ( closes #23363 , closes #23364 )
2015-02-01 21:34:07 -05:00
Benjamin Peterson
6f082297b2
check for overflow in combinations_with_replacement ( closes #23365 )
2015-02-01 21:10:47 -05:00
Benjamin Peterson
4b40eeb339
detect overflow in combinations ( closes #23366 )
2015-02-01 20:59:00 -05:00
Benjamin Peterson
68389eaa3f
remove extra ws
2015-02-01 18:02:09 -05:00
Benjamin Peterson
e3bfe19358
fix possible overflow in encode_basestring_ascii ( closes #23369 )
2015-02-01 17:53:53 -05:00
Serhiy Storchaka
4dbc305002
Issue #23055 : Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
...
and fix by Guido Vranken.
2015-01-27 22:18:46 +02:00
Serhiy Storchaka
3f95292be6
Issue #23055 : Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
...
and fix by Guido Vranken.
2015-01-27 22:18:34 +02:00
Benjamin Peterson
81b7374fbe
merge 3.2 ( #16043 )
2014-12-05 20:30:54 -05:00
Benjamin Peterson
4e9cefaf86
add a default limit for the amount of data xmlrpclib.gzip_decode will return ( closes #16043 )
2014-12-05 20:15:15 -05:00
Georg Brandl
89644d080b
Issue #25940 : Backport self-signed.pythontest.net testing for test_httplib
...
The svn.python.org server recently changed root certificate, causing the test
to fail. This backports revision 4985375db40f.
2014-11-05 20:37:40 +01:00
Benjamin Peterson
e71abcc7bb
merge 3.2
2014-11-05 11:29:39 -05:00
Benjamin Peterson
258f3f0dc2
use pythontest.net for url fragment test
2014-11-05 11:27:14 -05:00
Benjamin Peterson
97751fa5c9
merge 3.2
2014-11-03 15:11:53 -05:00
Benjamin Peterson
863c962e68
move idna test domain to pythontest.net
2014-11-03 15:10:47 -05:00
Benjamin Peterson
4d856895bd
test is cpython only
2014-10-15 13:39:46 -04:00
Benjamin Peterson
e1bd38c03c
fix integer overflow in unicode case operations ( closes #22643 )
2014-10-15 11:47:36 -04:00
Georg Brandl
18e897250a
Bump to 3.3.6
2014-10-12 09:03:40 +02:00
Georg Brandl
439d88542e
Bump to 3.2.6
2014-10-12 08:50:38 +02:00
Georg Brandl
b3ac84322f
#16040 : fix unlimited read from connection in nntplib.
2014-10-12 08:50:11 +02:00