Commit Graph

27081 Commits

Author SHA1 Message Date
Serhiy Storchaka 9186a6ac10 Issue21160: Correct comments in nturl2path. Patch by Jurko Gospodnetić. 2015-10-24 17:39:36 +03:00
Gregory P. Smith 64707923be Issue21709: Call os.path.normcase when setting _srcfile for compatibility
with what findCaller() does when running on non-POSIX platforms.

(alternatively: the normcase calls in both places could be eliminated, but that
touches more code and that refactoring hasn't even been done in 3 yet...)
2015-10-22 13:12:20 -07:00
Gregory P. Smith 7427a79e12 Issue #21709: Fix the logging module to not depend upon __file__ being set
properly to get the filename of its caller from the stack.  This allows it
to work if run in a frozen or embedded environment where the module's
.__file__ attribute does not match its code object's .co_filename.

This same much simpler always correct approach has already been deployed and
used widely in Python 3.4 per the issue referenced above.
2015-10-22 13:09:50 -07:00
Terry Jan Reedy 1256b3c677 Issue #24782: Limit width of canvas and hence IDLE settings dialog. 2015-10-22 03:27:27 -04:00
Terry Jan Reedy 9188516e28 Issue #24782: Don't try to run now-removed extension dialog test. 2015-10-20 02:15:23 -04:00
Brett Cannon eb2cb97374 Issue #25188: Clean up code to pass the --pgo flag to subprocesses
when running the test suite.

Patch by Arfrever Frehtes Taifersar Arahesis.
2015-10-16 12:30:20 -07:00
Terry Jan Reedy 4922ac1b80 Issue #24782: whitespace 2015-10-13 22:08:45 -04:00
Terry Jan Reedy 1c49ec0df0 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:44 -04:00
Terry Jan Reedy c0a053e4d5 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:25 -04:00
Benjamin Peterson 5f32b236f1 use the with statement for locking the internal condition (closes #25362)
Patch by Nir Soffer.
2015-10-10 19:34:46 -07:00
Serhiy Storchaka 462502b084 Issue #24848: Fixed yet one bug in UTF-7 decoder. Testing for BASE64 character
was locale depending.
2015-10-10 09:33:11 +03:00
Benjamin Peterson cf0d512fb4 merge heads 2015-10-06 19:37:15 -07:00
Benjamin Peterson 77d12ecaad prevent unacceptable bases from becoming bases through multiple inheritance (#24806) 2015-10-06 19:36:54 -07:00
Serhiy Storchaka 0a8845e64f Issue #25317: Converted doctests in test_tokenize to unittests. 2015-10-06 18:13:38 +03:00
Benjamin Peterson 51cd53e152 reinitialize an Event's Condition with a regular lock (closes #25319) 2015-10-05 21:56:22 -07:00
Serhiy Storchaka 0451fb942e Make error report in test_codecs more informative. 2015-10-04 13:52:40 +03:00
Terry Jan Reedy 1b6333a05c Issue #24820: Update IDLE NEWS items. 2015-10-04 01:14:45 -04:00
Terry Jan Reedy 9f37eae9cc Issue #24820: Add 'IDLE Dark' text color theme, warning, and solution. 2015-10-04 00:30:59 -04:00
Martin Panter 74c76c8f06 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 cff22eb2bf Issue #25232: Fix CGIRequestHandler's splitting of URL query
Patch from Xiang Zhang.
2015-10-03 05:38:07 +00:00
Terry Jan Reedy 195fc2f2aa 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:54 -04:00
Terry Jan Reedy c30475e755 Issue #24820: Users can now set breakpoint colors in Settings ->
Custom Highlighting.  Original patch by Mark Roseman.
2015-10-02 22:12:09 -04:00
Brett Cannon 65918e01be Fix indentation 2015-10-02 16:22:32 -07:00
Brett Cannon 9537478463 Issue #25188: Add -P/--pgo to test.regrtest for PGO building.
Initial patch by Alecsandru Patrascu of Intel.
2015-10-02 16:21:34 -07:00
Serhiy Storchaka f6eced52cc Removed the "b" string prefix to make test_xpickle compatible with Python 2.5. 2015-10-02 20:23:46 +03:00
Serhiy Storchaka e12f632186 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:14:53 +03:00
Serhiy Storchaka f522bbc9c2 Issue #22958: Constructor and update method of weakref.WeakValueDictionary
now accept the self keyword argument.
2015-09-29 23:51:27 +03:00
Serhiy Storchaka cab4566c5a Issue #22609: Constructor and the update method of collections.UserDict now
accept the self keyword argument.
2015-09-29 23:33:03 +03:00
Serhiy Storchaka 22afc506fb Backported additional unpickling tests from 3.x. 2015-09-29 15:51:40 +03:00
Serhiy Storchaka 4d2cf5587c Moved unpickling tests with prepickled data to separate class. 2015-09-29 15:36:28 +03:00
Terry Jan Reedy 958a9c7520 Issue #24028: Add subsection about Idle calltips. 2015-09-29 01:55:50 -04:00
Terry Jan Reedy da10017de3 Add recent IDLE NEWS items. Move Build sectios down. 2015-09-28 23:38:46 -04:00
Berker Peksag b7c3515308 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 15:37:57 +03:00
Terry Jan Reedy a6673806f9 Issue #24972: New option is only valid in tk 8.5+. 2015-09-28 04:52:44 -04:00
Terry Jan Reedy 62520b2c63 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:12 -04:00
Terry Jan Reedy 4cdb054ba3 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:02 -04:00
Terry Jan Reedy 0c58d31ba1 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:51 -04:00
Terry Jan Reedy 83cce4988c Issue #24988: Idle ScrolledList context menus (used in debugger)
now work on Mac Aqua.  Patch by Mark Roseman.
2015-09-26 18:50:20 -04:00
Terry Jan Reedy 8bfacc7985 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:48 -04:00
Terry Jan Reedy 647412fb89 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:02 -04:00
Terry Jan Reedy bdf1d0d066 Issue #25225: add revised .html. 2015-09-24 23:18:52 -04:00
Terry Jan Reedy 49095e2380 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:31:54 -04:00
Terry Jan Reedy 7cca4e5ba2 Issue 21995: Explain some differences between IDLE and console Python. 2015-09-24 03:09:38 -04:00
Terry Jan Reedy cf5bf82e59 Issue #22820: Explain need for *print* when running file from Idle editor. 2015-09-24 01:39:25 -04:00
Martin Panter 2bc50d78e3 Issue #25211: Fix error message code in test_long; patch from s-wakaba 2015-09-24 00:19:42 +00:00
Terry Jan Reedy 328e1ecbce Issue 25224: Augment Idle doc feature list and no-subprocess section
to finish making current README.txt obsolete.
2015-09-23 20:02:25 -04:00
Terry Jan Reedy c7025c6265 Issue #25219: Update doc for Idle command line options.
Some were missing and notes were not correct.
2015-09-23 03:52:18 -04:00
Terry Jan Reedy fea7fc1ab5 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:35 -04:00
Terry Jan Reedy b60d103de7 whitespace 2015-09-22 21:13:09 -04:00
Terry Jan Reedy ca33d56f00 Issue #24570: Right-click for context menus now work on Mac Aqual also.
Patch by Mark Roseman.
2015-09-22 21:10:22 -04:00
Steve Dower e20c2a6af4 Handle calls to win32_ver from non-Windows platform 2015-09-22 17:35:24 -07:00
Steve Dower 044cde52f8 Issue #19143: platform module now reads Windows version from kernel32.dll to avoid compatibility shims. 2015-09-22 17:25:30 -07:00
Terry Jan Reedy 1234fd912d whitespace 2015-09-21 22:42:17 -04:00
Terry Jan Reedy 13b21f8889 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:36 -04:00
Terry Jan Reedy 4dd7887710 Issue #24861: add Idle news items and correct previous errors. 2015-09-21 19:28:18 -04:00
Terry Jan Reedy 79157aea06 Issue #24861: Add docstring to idlelib.__init__ with 'private' warning. 2015-09-21 01:44:00 -04:00
Terry Jan Reedy 1d2ce974a6 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:54 -04:00
Terry Jan Reedy 8b7122cdbb Issue #16893: finish deprecation. 2015-09-20 23:05:21 -04:00
Terry Jan Reedy 36443f1950 Issue #25199: Idle: add synchronization comments for future maintainers. 2015-09-20 22:55:17 -04:00
Terry Jan Reedy 37ad79615f Issue #16893: whitespace in help.py. 2015-09-20 20:05:51 -04:00
Terry Jan Reedy 72895c1444 Issue #16893: whitespace in idle.html. 2015-09-20 20:02:23 -04:00
Terry Jan Reedy a2f257b583 Issue #16893: include new files 2015-09-20 19:56:54 -04:00
Terry Jan Reedy 70e763c0d8 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:55:44 -04:00
Terry Jan Reedy edc041d826 Issue #24199: Add stacklevel to deprecation warning call. 2015-09-20 02:33:57 -04:00
Serhiy Storchaka 63550ee1a2 Issue #25108: Fixed test_traceback in the case when this test is run twice.
In this case __file__ is the name of precompiled file (*.py[co]).
2015-09-20 08:38:40 +03:00
Serhiy Storchaka 90f5f5151c Issue #25101: Try to create a file to test write access in test_zipfile. 2015-09-19 10:55:20 +03:00
Serhiy Storchaka 62f0ffa861 Issue #25108: Backported tests for traceback functions print_stack(),
format_stack(), and extract_stack() called without arguments.
2015-09-18 10:09:29 +03:00
Victor Stinner df11d7c2b4 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:19:47 +02:00
Benjamin Peterson 061653091e fix name of argument in docstring and the docs (closes #25076)
Patch by TAKASE Arihiro.
2015-09-12 17:20:47 -07:00
Serhiy Storchaka 9b2e37f688 Marked keystrokes with the :kbd: role.
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:47:12 +03:00
Martin Panter b2528c92f1 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
Martin Panter 90bc71f5b1 Remove and enable misplaced codecs tests ported from Python 3
Most of these tests are about blacklisted non-text codecs, which are not
relevant in Python 2. The only one remaining is TransformCodecTest.test_uu_
invalid().
2015-09-12 02:20:06 +00:00
Serhiy Storchaka f29ab72162 Don't encode unicode dirname in test_support.temp_cwd() if unicode file names
are supported by the filesystem.  On Windows the encoding can convert some
characters to '?' that is not legal in file name.
2015-09-09 12:18:36 +03:00
Terry Jan Reedy e1d38b08b0 Issue 24199: Deprecate idlelib.idlever with a warning on import. 2015-09-09 02:10:10 -04:00
Serhiy Storchaka 672237e887 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
Serhiy Storchaka fe45f65187 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:01 +03:00
Serhiy Storchaka f3bdc1082f Backported new tests for attribute setting of expat parser. 2015-09-07 22:42:12 +03:00
Serhiy Storchaka ad7b0cda8a 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 0ecf462b8e 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 baf9ef960c 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:05 -04:00
Martin Panter b75a0e9f32 Issue #17849: Raise sensible exception for invalid HTTP tunnel response
Initial patch from Cory Benfield.
2015-09-07 01:18:47 +00:00
Serhiy Storchaka 04861dc82f Fix, refactor and extend tests for shutil.make_archive(). 2015-09-06 18:31:23 +03:00
Serhiy Storchaka 7c7b4b5d86 Backport support.change_cwd() and use it in tests. 2015-09-06 14:16:18 +03:00
Terry Jan Reedy 23ae488f23 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:17 -04:00
Terry Jan Reedy 99c1a6d5f1 Issue #24745: Prevent IDLE initialization crash with Tk 8.4; patch by Ned Deily. 2015-09-04 04:37:02 -04:00
Senthil Kumaran c97e18ec64 merge heads. 2015-09-03 02:50:51 -07:00
Senthil Kumaran f30e078752 Remove unused imports in test_wsgiref.py 2015-09-03 02:39:57 -07:00
Victor Stinner ccd62705b1 Issue #23375: Fix test_py3kwarn for modules implemented in C
Don't check if importing a module emits a DeprecationWarning if the module is
implemented in C and the module is already loaded.
2015-09-03 10:46:17 +02:00
Victor Stinner cc1db4bf85 python-gdb.py: enhance py-bt command
* Add py-bt-full command
* py-bt now gives an output similar to a regular Python traceback
* py-bt indicates:

  - if the garbage collector is running
  - if the thread is waiting for the GIL
  - detect PyCFunction_Call to get the name of the builtin function
2015-09-03 10:17:28 +02:00
Victor Stinner 3c5ce404a0 test_gdb: enhance regex used to parse the GDB version 2015-09-03 09:51:59 +02:00
Terry Jan Reedy b50d3b2cd3 Issue #21192: Change 'RUN' back to 'RESTART' when running editor file. 2015-09-02 22:07:31 -04:00
Terry Jan Reedy 34eab0785b Issue #24790: correct typo noticed by Eric Smith 2015-08-27 13:01:45 -04:00
Terry Jan Reedy 0c416e0e2e Issue #24790: Restore unused function. 2015-08-26 23:37:09 -04:00
Terry Jan Reedy 936a6f15c6 Issue #24782: In Idle extension config dialog, replace tabs with sorted list.
Patch by Mark Roseman.
2015-08-26 23:13:16 -04:00
Donald Stufft 9de9b782ca Update pip to 7.1.2 and setuptools to 18.2 2015-08-24 16:17:13 -04:00
Terry Jan Reedy 864e1a6415 Issue #24790: Remove extraneous code (which also create 2 & 3 conflicts). 2015-08-18 13:26:45 -04:00
Terry Jan Reedy ea4287651c Entries for idlelib/NEWS.txt 2015-08-16 23:22:32 -04:00
Terry Jan Reedy 87da49888e Issue #24833: Add attribute reference needed for 3.x, but optional for 2.7,
to keep synchronized.
2015-08-14 16:59:36 -04:00
Zachary Ware ce698f3aa2 Issue #24751: Fix running regrtest with '-w' flag in case of test failures.
Also fixes reporting of tests that change environment when there are no test
failures.
2015-08-08 22:01:20 -05:00
Steve Dower 1485054a23 Issue #24634: Importing uuid should not try to load libc on Windows 2015-07-14 13:25:03 -07:00
Steve Dower 77518434d0 Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py 2015-08-07 19:47:36 -07:00
Zachary Ware a4777f1bef Issue #24751: When running regrtest with '-w', don't fail if re-run succeeds. 2015-08-04 21:53:21 -05:00
Terry Jan Reedy 1d8b7be333 Issue #24759: Revert 8203fc75b3d2. 2015-08-03 18:34:07 -04:00
Serhiy Storchaka ea4d2875ac Issue #20557: Use specific asserts in io tests. 2015-08-02 15:19:04 +03:00
Terry Jan Reedy 1235214945 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:27 -04:00
Terry Jan Reedy 8755d78e4f 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:31 -04:00
Terry Jan Reedy a872fec1ec Issue 24759: Gracefull exit Idle if ttk import fails. 2015-07-30 21:16:09 -04:00
Terry Jan Reedy fa002d4cdd Issue #13884: Idle: Remove tearoff lines from menus. Patch by Roger Serwy. 2015-07-30 16:44:09 -04:00
Berker Peksag ffc7e8eebe 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 23:27:13 +03:00
Guido van Rossum 3d731c5994 Issue #15138: Speed up base64.urlsafe_b64* considerably (2.7 backport). 2015-07-30 16:50:25 +02:00
Victor Stinner e97944a27e Issue #23319: Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
written by Matthieu Gautier.
2015-07-29 14:37:17 +02:00
Robert Collins 2f2c829688 Issue #23254: Document how to close the TCPServer listening socket.
Patch from Martin Panter.
2015-07-29 12:48:42 +12:00
Robert Collins 581234ee0d Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella. 2015-07-27 10:40:15 +12:00
Serhiy Storchaka cf74c1996e Issue #24613: Calling array.fromstring() with self is no longer allowed
to prevent the use-after-free error.  Patch by John Leitch.
2015-07-26 08:49:37 +03:00
Benjamin Peterson 455a2a30a3 proper overflow checks for mymemreplace (closes #24708) 2015-07-24 23:25:35 -07:00
Serhiy Storchaka 3b77d01dbc Issue #24620: Random.setstate() now validates the value of state last element. 2015-07-24 09:02:53 +03:00
Robert Collins 04fac8abf1 Issue #13938: 2to3 converts StringTypes to a tuple. Patch from Mark Hammond. 2015-07-23 06:19:18 +12:00
Terry Jan Reedy 4b2f5d9de5 Issue #20792: Expand idle_test.test_pathbowser. Tweak file.
Original patch by Saimadhav Heblikar.
2015-07-20 17:44:55 -04:00
Terry Jan Reedy 58785d5450 Issue #24671: Finish print conversion, idlelib GrepDialog and WidgetRedirector. 2015-07-19 18:32:06 -04:00
Zachary Ware 4734372aa0 Close #24508: Backport the 3.5 MSBuild project files.
The old project files move to PC/VS9.0 and remain supported.

VS2008 is still required to build 2.7; VS2010 (or later, plus Windows SDK 7.1)
is *also* required to use the new project files.
2015-07-16 00:24:48 -05:00
Zachary Ware 79d0e724e3 Backport b80d141a044e 2015-07-13 14:27:29 -05:00
Serhiy Storchaka a1b1e5f7b8 Added regression test for issue24581. 2015-07-08 22:58:55 +03:00
Lars Gustäbel 518602ab11 Issue #24259: tarfile now raises a ReadError if an archive is truncated inside a data segment. 2015-07-06 09:23:04 +02:00
Ned Deily 6c5824aaa5 Issue #24540: fix typo in json.dumps docstring 2015-07-05 11:43:59 -07:00
Ned Deily b2f949aafb Issue #24330: Update IDLE doc and help to note "Configure IDLE" difference
on OS X.  Original patch by André Freitas.
2015-07-04 15:04:42 -07:00
Lars Gustäbel d048003d90 Issue #24514: tarfile now tolerates number fields consisting of only whitespace. 2015-07-02 19:37:08 +02:00
Donald Stufft 97cceac3bd Update setuptools to 18.0.1 and pip to 7.1.0 2015-07-01 11:29:34 -04:00
Serhiy Storchaka ab766350b6 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:13:54 +03:00
Jason R. Coombs eabfe8cc0e Issue #20387: Backport fix from Python 3.4 2015-06-28 13:05:19 -04:00
Jason R. Coombs 33b24f5c09 Issue #20387: Backport test from Python 3.4 2015-06-28 13:03:26 -04:00
Serhiy Storchaka 84af51d1b3 Issue #24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
functions of the audioop module.  Fixed SystemError when the state is not a
tuple.  Fixed possible memory leak.
2015-06-28 17:51:40 +03:00
Serhiy Storchaka d1d4d8ab99 Issue #24336: Backported test for contextmanager. Patch by Martin Panter. 2015-06-28 17:11:51 +03:00
Benjamin Peterson 1c72acf24c ensure internal buffer is large enough for string after flushing (closes #24481) 2015-06-27 14:52:41 -05:00
Ned Deily 3e5e74ad4c Issue #24497: update link in test_decimal comments 2015-06-24 13:36:53 -07:00
Antoine Pitrou 0d2fac1fba Issue #24489: ensure a previously set C errno doesn't disturb cmath.polar(). 2015-06-23 14:31:11 +02:00
Ned Deily 9487043453 Issue #24408: Prevent test_font failures with non-ascii font names. 2015-06-21 13:57:30 -07:00
Serhiy Storchaka 18d69e0edc Issue #24408: Fixed test for tkinter.Font on OS X.
Based on patch by Martin Panter.
2015-06-21 14:41:36 +03:00
Serhiy Storchaka 66f8d75ba8 Issue #24408: Added more tkinter.Font tests. 2015-06-09 07:21:31 +03:00
Serhiy Storchaka 637c8e88ab Issue #24299: Fixed test__locale on Solaris. 2015-06-08 18:48:33 +03:00
Donald Stufft e629fef213 Upgrade pip to 7.0.3 and setuptools to 17.0 2015-06-02 11:38:01 -04:00
Donald Stufft 69c0d26159 Issue #24267 - Ensure that pip version check is disabled on uninstall 2015-06-02 10:54:37 -04:00
Serhiy Storchaka c7797dc748 Issue #19543: Emit deprecation warning for known non-text encodings.
Backported issues #19619: encode() and decode() methods and constructors
of str, unicode and bytearray classes now emit deprecation warning for known
non-text encodings when Python is ran with the -3 option.

Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the
internal codec marking system added to emit deprecation warning for known non-text
encodings at stream construction time when Python is ran with the -3 option.
2015-05-31 20:21:00 +03:00
Serhiy Storchaka cfb7028df4 Fixed test_audioop for issue #24326.
24-bit samples are not supported in 2.7.
2015-05-31 12:05:40 +03:00
Serhiy Storchaka dc967c137c Fixed the array module in unicode disabled build (regression of issue20014). 2015-05-31 11:56:48 +03:00
Serhiy Storchaka 062bed289b Issue #24264: Fixed buffer overflow in the imageop module. 2015-05-31 09:05:10 +03:00
Serhiy Storchaka d6bfa94493 Issue #21853: Fixed the inspect module in unicode disabled build. 2015-05-31 08:01:00 +03:00
Serhiy Storchaka 59ea508bb8 Issue #5633: Fixed timeit when the statement is a string and the setup is not. 2015-05-30 19:37:19 +03:00
Serhiy Storchaka 1e95340bc3 Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.
Original patch by David Moore.
2015-05-30 00:53:26 +03:00
Serhiy Storchaka 9d1de8a2a9 Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The port
value in the host header was set to "None".  Patch by Demian Brecht.
2015-05-28 22:37:13 +03:00
Raymond Hettinger 1a7c3571c7 Issue #24286: Register dict views with the MappingView ABCs. 2015-05-26 01:35:54 -07:00
Benjamin Peterson fdd70ae453 keep distutils version in sync with python version automatically 2015-05-25 21:24:00 -05:00
Terry Jan Reedy 3dc4082cbe Update idlelib/NEWS.txt. 2015-05-23 17:23:23 -04:00
Benjamin Peterson 5bd3be83fa merge 2.7.10 release branch 2015-05-23 11:03:20 -05:00
Benjamin Peterson 5a29c5cc45 python 2.7.10 final 2015-05-23 11:02:14 -05:00
Benjamin Peterson fa3d5b5b95 merge 2.7.10 release branch 2015-05-23 10:47:39 -05:00
Benjamin Peterson ec7abfb58f allow square brackets in cookie values (#22931) 2015-05-23 10:46:25 -05:00
Donald Stufft bd2f9c2194 Upgrade pip to 7.0.1 2015-05-22 20:28:52 -04:00
Benjamin Peterson b1f3797450 merge 2.7.10 release branch 2015-05-22 17:55:22 -05:00
Benjamin Peterson a71a4f4ed3 make idlever.py self-updating (closes #24199) 2015-05-22 17:53:06 -05:00
Serhiy Storchaka 80cb186b49 Issue #24257: Fixed segmentation fault in sqlite3.Row constructor with faked
cursor type.
2015-05-22 11:00:40 +03:00
Donald Stufft d9ac81765e Upgrade pip to 7.0 and setuptools to 16.0 2015-05-22 00:43:31 -04:00
Serhiy Storchaka 3220849524 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 bc5046634a Issue #24245: Eliminated senseless expect clauses that have no any effect in
IDLE.  Patch by Martin Panter.
2015-05-20 16:14:54 +03:00
Serhiy Storchaka 9eb0c0e73e 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:10:56 +03:00
Serhiy Storchaka 49f2ccf83d 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:27 +03:00
Terry Jan Reedy 23120090f5 Issue #24222: Fix regression introduced with idlelib/PyShell.py future print
import.  Idle -c "code", -r file.py again compile with print statement.
2015-05-18 15:37:37 -04:00
Serhiy Storchaka 14e10a19f7 Issue #24102: Fixed exception type checking in standard error handlers. 2015-05-18 16:08:38 +03:00
Raymond Hettinger 51dbc9a4ad Issue #23757: Only call the concrete list API for exact lists. 2015-05-17 14:37:39 -07:00
Serhiy Storchaka 4b2c468e74 Issue #15809: IDLE shell now uses locale encoding instead of Latin1 for
decoding unicode literals.
2015-05-17 13:53:54 +03:00
Terry Jan Reedy c8059e48f2 Issue #24199: Stop using idelver in aboutdialog. 2015-05-16 19:28:27 -04:00
Serhiy Storchaka d6c1c1e3e2 Added tests for more builtin types. 2015-05-16 21:34:56 +03:00
Terry Jan Reedy 848543763f Issue #23964: Update idlelib/idle_test/README.txt. first patch by Al Sweigart. 2015-05-16 14:23:33 -04:00
Serhiy Storchaka 80573bb902 Issue #15267: HTTPConnection.request() now is compatibile with old-style
classes (such as TemporaryFile).  Original patch by Atsuo Ishimoto.
2015-05-16 18:58:41 +03:00
Serhiy Storchaka b70091a8d5 Issue #20014: array.array() now accepts unicode typecodes. Based on patch by
Vajrasky Kok.
2015-05-16 17:11:41 +03:00
Serhiy Storchaka f40fcb33d2 Issue #23637: Showing a warning no longer fails with UnicodeErrror.
Formatting unicode warning in the file with the path containing non-ascii
characters no longer fails with UnicodeErrror.
2015-05-16 16:42:18 +03:00
Serhiy Storchaka 049060c249 Reverted issue #24134 changes. 2015-05-16 16:21:10 +03:00
Terry Jan Reedy d39d962cbd Issue #23184: idle tests, remove unused names and imports. 2015-05-15 23:55:15 -04:00
Terry Jan Reedy 2848925ed2 Issue #23184: idlelib, remove more unused names and imports. 2015-05-15 23:03:11 -04:00
Terry Jan Reedy 91226cf7ba idlelib: remove unused names and imports (forgot one). 2015-05-14 18:11:50 -04:00
Terry Jan Reedy d8dc7496c5 idlelib: remove unused names and imports (one is a duplicate import). 2015-05-14 18:10:30 -04:00
Berker Peksag 73e4f5f6bb Issue #22064: Improve the misleading message from 2to3 when skipping optional fixers.
Patch by Vinod Kurup.
2015-05-13 13:42:26 +03:00
Benjamin Peterson a40ea98fc1 bump version to 2.7.10rc1 2015-05-10 13:14:16 -04:00
Benjamin Peterson 91fd159935 update pydoc-topics 2015-05-10 13:13:10 -04:00
Benjamin Peterson 72c0141f03 ensure .keywords is always a dict 2015-05-09 00:23:41 -04:00
Donald Stufft 1c5af3de6d Upgrade setuptools to 15.2 2015-05-08 21:28:57 -04:00
Serhiy Storchaka 2e2dcf6eac Fixed English in error message. 2015-05-06 19:21:00 +03:00
Serhiy Storchaka 7f71e04cb5 Issue #24134: assertRaises() and assertRaisesRegexp() checks are not longer
successful if the callable is None.

Added tests for assertRaises().
2015-05-06 19:10:40 +03:00
Serhiy Storchaka 3234abb9a0 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:35:52 +03:00
Serhiy Storchaka 89c3b8e480 Issue #23713: Fixed fragility of test_imap_unordered_handle_iterable_exception.
Patch by Davin Potts.
2015-04-23 11:35:43 +03:00
Serhiy Storchaka dacd7d0cd6 Use more precise Tcl version checks in tests. 2015-04-23 10:57:15 +03:00
Serhiy Storchaka 6294d9f5f0 Issue #16840: Skip bignum tests on minor releases where they are not supported. 2015-04-22 10:51:49 +03:00
Serhiy Storchaka dcb12f46d1 Fixed full Tcl version parsing in tests for pre-final versions. 2015-04-22 08:35:53 +03:00
Serhiy Storchaka a8e65755c4 Issue #23008: Fixed resolving attributes with boolean value is False in pydoc. 2015-04-21 21:09:23 +03:00
Serhiy Storchaka bd617adf6b Issue #23728: Added a test for binascii.crc_hqx(). 2015-04-20 09:32:29 +03:00
Serhiy Storchaka 9aa16d93c9 Issue #23842: os.major(), os.minor() and os.makedev() now support ints again. 2015-04-20 09:21:23 +03:00
Serhiy Storchaka abb7e65042 Backported tests from issue #20175. 2015-04-16 11:56:35 +03:00
Berker Peksag 1bc53c6e0b Issue #23811: Add missing newline to the PyCompileError error message.
Patch by Alex Shkop.
2015-04-14 19:03:06 +03:00
Andrew Kuchling 270b0586b0 #17898: reset k and v so that the loop doesn't use an old value 2015-04-14 10:03:35 -04:00
Andrew Kuchling 2ca7bb0ba2 #23883: add names missing from __all__ (l*gettext, bind_textdomain_codeset) 2015-04-13 09:58:36 -04:00
Benjamin Peterson b0368491e4 remove useless word (closes #23929) 2015-04-13 20:24:10 -04:00
Zachary Ware b9298a4fbb 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:54:11 -05:00
Serhiy Storchaka 4507b8183b Issue #16840: Fixed Tcl test on 2.7 with Tcl 8.4.19.
In some Tcl versions -2147483648 is wide integer.
2015-04-10 21:12:18 +03:00
Serhiy Storchaka 1aa2c0f073 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:10 +03:00
Donald Stufft c7d957fe4a Update pip to 6.1.1 2015-04-07 07:09:06 -04:00
Victor Stinner 9a46eb7cdb ssue #23881: ftp://gatekeeper.research.compaq.com/ and ftp://ftp.debian.org/
are down, don't use anymore in test_urllib2net

ftp.kernel.org is also slow or down, so reuse the same FTP servers than Python
3.4 and 3.5: use ftp.debian.org instead.
2015-04-07 12:59:14 +02:00
Victor Stinner 5ab1c01bfd Issue #23881: urllib.ftpwrapper constructor now closes the socket if the FTP
connection failed.
2015-04-07 12:47:57 +02:00
Donald Stufft d27bcbd706 Upgrade pip to 6.1.0 and setuptools to 15.0 2015-04-07 01:32:24 -04:00
Victor Stinner 62b109ddc5 Issue #23458: Remove test_os.test_urandom_fd_non_inheritable()
os.urandom() only tries to make the os.random() file descriptor non
inheritable, but there is no guarantee. The test fails on too many operating
systems: Windows, OS X 10.5, OpenIndiana.

This issue is correctly fixed in Python 3.4 with the PEP 446. Upgrade to Python
3.4 is you need stronger guarantees.
2015-04-06 23:39:47 +02:00
Serhiy Storchaka f29bc70bff Issue #15133: _tkinter.tkapp.getboolean() now supports long and Tcl_Obj and
always returns bool.  tkinter.BooleanVar now validates input values (accepted
bool, int, long, str, unicode, and Tcl_Obj).  tkinter.BooleanVar.get() now
always returns bool.
2015-04-04 12:42:25 +03:00
Serhiy Storchaka baa6efdceb Open files in binary mode to avoid newlines transformation. 2015-04-04 10:36:15 +03:00
Serhiy Storchaka fb0517ca5c Issue #23825: Fixed test_idle under -OO. 2015-04-04 09:47:18 +03:00
Serhiy Storchaka c811328e44 Escaped backslashes in docstrings. 2015-04-03 18:12:32 +03:00
Serhiy Storchaka aff77f3b19 Issue #10590: Added tests for xml.sax.parse() and xml.sax.parseString(). 2015-04-02 23:05:23 +03:00
Serhiy Storchaka e9d4dc192f Issue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Made test XML files non-ASCII.
2015-04-02 20:55:46 +03:00
Serhiy Storchaka 61ad42e591 Issue #16840: Fixed test_tcl for Tcl < 8.5. 2015-04-02 20:06:48 +03:00
Serhiy Storchaka e8ae0473cd Issue #21526: Skip test_booleans on Tcl < 8.5. 2015-04-02 19:57:52 +03:00
Serhiy Storchaka c77c5b5f03 Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
arbitrary precision integers added in Tcl 8.5.
2015-04-02 18:46:30 +03:00
Serhiy Storchaka 91398f85e6 Issue #21526: Fixed the test_booleans test for wantobjects = 0. 2015-04-02 11:46:07 +03:00
Serhiy Storchaka cba6b5d045 Issue #21526: Tkinter now supports new boolean type in Tcl 8.5. 2015-04-02 10:35:57 +03:00
Benjamin Peterson df11d4cbe4 replace 512 bit dh key with a 2014 bit one (closes #23844)
Patch by Cédric Krier.
2015-04-02 00:04:06 -04:00
Serhiy Storchaka 43b49593e7 Issue #23838: linecache now clears the cache and returns an empty result on
MemoryError.
2015-04-01 16:53:53 +03:00
Serhiy Storchaka bd8c629eb5 Issue #23799: Added test.test_support.start_threads() for running and
cleaning up multiple threads.
2015-04-01 12:56:39 +03:00
Serhiy Storchaka d06c201e5b Issue #14904: Made test_unicode_repr_oflw to use less memory.
Corrected memory requirements in other bigmem tests.
2015-03-30 09:27:20 +03:00
Victor Stinner 7d490650fb Issue #22390: Fix test_gzip if unicode filename doesn't work 2015-03-30 02:20:37 +02:00
Victor Stinner 7b00364e18 Issue #22390: Fix test_gzip, remove temporary file 2015-03-30 01:32:42 +02:00
Victor Stinner ffaa031867 Issue #22390: Fix test_pdb to remove created bar.pyc file 2015-03-30 01:24:57 +02:00
Victor Stinner 01eaf500fc Issue #22390: Fix test_aifc to remove the created file 2015-03-30 01:16:17 +02:00
Victor Stinner ac0d1893b9 Issue #22390: Fix typo in regrtest, support => test_support 2015-03-30 01:07:29 +02:00
Serhiy Storchaka c0a2f2b008 Issue #22390: test.regrtest now emits a warning if temporary files or
directories are left after running a test.
2015-03-30 01:27:44 +03:00
Serhiy Storchaka 53ea162067 Make some tests more frienly to MemoryError.
Free memory, unlock hanging threads.
2015-03-28 20:38:48 +02:00
Victor Stinner 582265f484 Issue #23445: Fix test_gdb.python_is_optimized() for CFLAGS=-Og
-Og does not optimize the C code, it's just "fast debugging".
2015-03-27 15:44:13 +01:00
Serhiy Storchaka 837d760c27 Check that failed writerow() doesn't produce change a file. 2015-03-25 19:15:56 +02:00
Serhiy Storchaka 53b542fe30 Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. 2015-03-25 16:39:58 +02:00
Serhiy Storchaka f95a57f9a1 Issue #21802: The reader in BufferedRWPair now is closed even when closing
writer failed in BufferedRWPair.close().
2015-03-24 23:23:42 +02:00
Serhiy Storchaka 40fd0e8d68 Issue #23671: string.Template now allows to specify the "self" parameter as
keyword argument.  string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
2015-03-24 22:27:50 +02:00
Serhiy Storchaka ac5164dd98 Issue #23583: Fixed writing unicode to standard output stream in IDLE.
Added tests for standard IO streams in IDLE.
2015-03-24 19:42:15 +02:00
Serhiy Storchaka f689f104aa Issue #21560: An attempt to write a data of wrong type no longer cause
GzipFile corruption.  Original patch by Wolfgang Maier.
2015-03-23 15:25:18 +02:00
R David Murray 836c82417f #23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes. 2015-03-22 16:17:11 -04:00
R David Murray b4b000f002 #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.

Patch by James Rutherford.
2015-03-22 15:15:44 -04:00
Serhiy Storchaka 9f696c9809 Issue #23075: Whether __builtins__ is a module or a dict is undefined in
CPython. Use the reliably well defined `import __builtin__` instead.
Patch by Alex Gaynor.
2015-03-21 22:04:42 +02:00
Serhiy Storchaka d54c2e3f13 Issue #23136: _strptime now uniformly handles all days in week 0, including
Jan 30 of previous year.  Based on patch by Jim Carroll.
2015-03-19 19:13:25 +02:00
Benjamin Peterson 6a74a51b28 wrap properly 2015-03-18 21:35:38 -05:00
Ned Deily 9e52735d22 Issue #23458: Skip test_urandom_fd_non_inheritable on OS X 10.4 since
FD_CLOEXEC is not supported there.
2015-03-17 15:18:07 -07:00
Ned Deily 596b751f97 Issue #22585, #23115: make URandomFDTests test case actually run 2015-03-17 04:34:46 -07:00
Serhiy Storchaka 3d15b5ddc6 Use non-zero and non-last positions in error handler tests. 2015-03-16 08:29:35 +02:00
Serhiy Storchaka 2792389f41 Increased coverage of standard codec error handlers. 2015-03-15 23:41:10 +02:00
Serhiy Storchaka f249671d02 Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Patch by Demian Brecht.
2015-03-13 09:04:34 +02:00
Serhiy Storchaka 7c26be5b18 Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
handle exceptions raised by an iterator.  Patch by Alon Diamant and Davin
Potts.
2015-03-13 08:31:34 +02:00
Serhiy Storchaka 59bdf6392d Issue #22928: Disabled HTTP header injections in httplib.
Original patch by Demian Brecht.
2015-03-12 11:12:51 +02:00
Serhiy Storchaka 205408dacb Issue #23615: Module tarfile is now can be reloaded with imp.reload(). 2015-03-11 17:31:59 +02:00
Benjamin Peterson ca1fb3eb42 close files explicit (closes #21610)
Patch by mattip.
2015-03-10 19:06:18 -05:00
Steve Dower 32608c1b10 Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls 2015-03-10 13:19:17 -07:00
Serhiy Storchaka 233e6988f4 Issue #22853: Fixed a deadlock when use multiprocessing.Queue at import time.
Patch by Florian Finkernagel and Davin Potts.
2015-03-06 22:17:25 +02:00
Benjamin Peterson f050648a50 fix potential refleak in PyFloat_AsDouble (closes #23590) 2015-03-06 09:08:44 -05:00
Benjamin Peterson b10d50eb90 use _import_symbols to import VERIFY_* constants 2015-03-04 23:18:57 -05:00
Benjamin Peterson d86699fe04 adjust test_crl_check for trusted first being default 2015-03-04 23:18:48 -05:00
Benjamin Peterson 72ef961059 expose X509_V_FLAG_TRUSTED_FIRST 2015-03-04 22:49:41 -05:00
Serhiy Storchaka c620c11e62 Issue #23504: Added an __all__ to the types module. 2015-03-04 09:42:59 +02:00
Serhiy Storchaka f0b630b826 Added more tests for urllib utility functions.
These functions are not documented but used in third-party code.
2015-03-02 16:31:57 +02:00
Serhiy Storchaka 2b8c00d904 Fixed pydoc tests when run with -OO. 2015-03-01 15:31:21 +02:00
Victor Stinner ebcbbfb9a2 Issue #23458: skip test_os.test_urandom_fd_non_inheritable() on Windows 2015-02-24 15:12:57 +01:00
Victor Stinner e0a0bd6eaa Issue #23458: On POSIX, the file descriptor kept open by os.urandom() is now
set to non inheritable
2015-02-24 14:30:43 +01:00
Serhiy Storchaka 437d535e5b Broke reference loops in tests added in issue #5700. 2015-02-23 00:28:38 +02:00
Serhiy Storchaka cc49aa1381 Issue #6639: Module-level turtle functions no longer raise TclError after
closing the window.
2015-02-22 17:22:53 +02:00
Serhiy Storchaka b8285d96f4 Issue #22113: struct.pack_into() now supports new buffer protocol (in
particular accepts writable memoryview).
2015-02-21 19:51:17 +02:00
Serhiy Storchaka 4809d1fccd Issues #814253, #9179: Warnings now are raised when group references and
conditional group references are used in lookbehind assertions in regular
expressions.
2015-02-21 12:08:36 +02:00
Serhiy Storchaka 021d55ff74 Issue #23215: Multibyte codecs with custom error handlers that ignores errors
consumed too much memory and raised SystemError or MemoryError.
Original patch by Aleksi Torhamo.
2015-02-21 01:19:17 +02:00
Serhiy Storchaka 3173f7c904 Issue #5700: io.FileIO() called flush() after closing the file.
flush() was not called in close() if closefd=False.
2015-02-21 00:34:20 +02:00
Berker Peksag dc9d41d718 Issue #21548: Fix pydoc.synopsis() and pydoc.apropos() on modules with empty
docstrings.

Initial patch by Yuyang Guo.
2015-02-20 12:10:33 +02:00
Benjamin Peterson a0dd7dc1b0 remove rc4 from the default client ciphers (closes #23481) 2015-02-19 17:57:08 -05:00
Serhiy Storchaka ad9a1ba504 Issue #23474: Enhanced locale testing. 2015-02-18 08:04:26 +02:00
Serhiy Storchaka 66a9b72c38 Merge heads 2015-02-16 01:50:04 +02:00
Serhiy Storchaka e06224340d Backed out changeset 7d2018774925 2015-02-16 01:49:22 +02:00
Serhiy Storchaka c769040100 Issue #22885: Fixed arbitrary code execution vulnerability in the dumbdbm
module.  Original patch by Claudiu Popa.
2015-02-16 00:29:52 +02:00
Serhiy Storchaka eab2fd10cf Use os.devnull instead of hardcoded '/dev/null'. 2015-02-15 13:57:49 +02:00
Serhiy Storchaka 66306cf6d4 Issue #21934: test_file2k no longer create regular file /dev/full on OpenBSD
when run as root.  Extended testing with /dev/full.
Based on patch by Daniel Dickman.
2015-02-15 13:05:10 +02:00
Serhiy Storchaka 4c2bada216 Issue #17753: Skip test_zipfile tests which require write access to test
and email.test.
2015-02-14 23:17:13 +02:00
Serhiy Storchaka b6b48e637f Issue #22844: Fized test_gdb failure on Debian Wheezy for Z.
Patch by David Edelsohn.
2015-02-14 22:44:35 +02:00
Serhiy Storchaka 7fe04f1dca Issue #21849: Fixed xmlrpclib serialization of non-ASCII unicode strings in
the multiprocessing module.
2015-02-13 15:08:36 +02:00
Serhiy Storchaka 3be0d0e1f4 Issue #21840: Fixed a typo. 2015-02-13 12:47:08 +02:00
Serhiy Storchaka 2bd8b22b6d Issue #21840: Fixed expanding unicode variables of form $var in
posixpath.expandvars().  Fixed all os.path implementations on
unicode-disabled builds.
2015-02-13 12:02:05 +02:00
Serhiy Storchaka 4068b01cb5 Issue #23392: Added tests for marshal C API that works with FILE*. 2015-02-06 08:56:33 +02:00
Serhiy Storchaka dd8430fa64 Issue #23881: Only use entry-values with gdb 7.4 in tests.
Fixes a regression in issue #22765.  Patch by Vinson Lee.
2015-02-06 08:36:14 +02:00
Serhiy Storchaka dbd85aac85 Issue #18982: Fixed newlines in calendar CLI tests on Windows. 2015-02-05 18:03:27 +02:00
Serhiy Storchaka d44bcc9b2f Issue #18982: Add tests for CLI of the calendar module. 2015-02-05 15:18:26 +02:00
Ned Deily fa11978f1b Issue #23345: Prevent test_ssl failures with large OpenSSL patch level
values (like 0.9.8zc).
2015-02-05 17:19:11 +11:00
Donald Stufft 0c1e98b2b2 Update pip to 6.0.8 2015-02-04 22:02:09 -05:00
Serhiy Storchaka 42aa9c078a 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 77a57c7570 _clear_type_cache is cpython-only 2015-02-02 14:06:11 -05:00
Benjamin Peterson dda9121ad1 check for overflows in permutations() and product() (closes #23363, closes #23364) 2015-02-01 21:34:07 -05:00
Benjamin Peterson 17845c1786 check for overflow in combinations_with_replacement (closes #23365) 2015-02-01 21:10:47 -05:00
Benjamin Peterson 021dec1c96 detect overflow in combinations (closes #23366) 2015-02-01 20:59:00 -05:00
Benjamin Peterson 75461e3e2e https goodness 2015-02-01 20:17:22 -05:00
Serhiy Storchaka 73bcde20bc Issue #22765: Fixed test_gdb failures. Supressed unexpected gdb output.
Patch by Bohuslav Kabrda.
2015-01-31 11:48:36 +02:00
Serhiy Storchaka 5312a7f912 Avoid deprecation warnings. 2015-01-31 11:27:06 +02:00
Serhiy Storchaka 7ece150395 test_spwd skipping is expected on win32. 2015-01-31 10:20:31 +02:00
Serhiy Storchaka d484605c10 Restored test_xpickle compatibility with Python 2.5.
Python 2.5 has no unittest.skipUnless.
2015-01-31 09:25:16 +02:00
Serhiy Storchaka b84e5daf91 Use float division to avoid deprecation warning in test_timeit (issue #11578). 2015-01-31 02:12:17 +02:00
Donald Stufft 61ec71d7bd Upgrade setuptools to 12.0.5 and pip to 6.0.7 2015-01-28 17:58:53 -05:00
Serhiy Storchaka 0d8fe3b90b Issue #19949: The test_xpickle test now tests compatibility with installed
Python 2.7 and reports skipped tests.  Based on patch by Zachary Ware.
2015-01-27 22:44:45 +02:00
Serhiy Storchaka 0e0282eb14 Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
and fix by Guido Vranken.
2015-01-27 22:17:56 +02:00
Serhiy Storchaka 3ce465ab56 Issue #23191: fnmatch functions that use caching are now threadsafe. 2015-01-27 11:40:51 +02:00
Serhiy Storchaka c328d11ef1 Issue #14099: Backout changeset c2c4cde55f6f (except adapted tests). 2015-01-26 13:45:04 +02:00
Serhiy Storchaka 09d7e7ec0e Use test.test_support instead of test.support. 2015-01-26 12:30:56 +02:00
Serhiy Storchaka 73c086389a Issue #18518: timeit now rejects statements which can't be compiled outside
a function or a loop (e.g. "return" or "break").
2015-01-26 12:08:37 +02:00
Serhiy Storchaka 0013207200 Issue #11578: Backported test for the timeit module. 2015-01-26 11:54:32 +02:00
Serhiy Storchaka 5f1909a4ca Merge heads 2015-01-26 10:27:31 +02:00
Serhiy Storchaka 38a33ec44c Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in the
directory containing a backslash.
2015-01-26 10:26:00 +02:00
Benjamin Peterson bfd976fc17 simply ignore headers with no name (#19996)
Patch by Cory Benfield.
2015-01-25 23:34:42 -05:00
Senthil Kumaran 812b9756a0 Fix Issue23300 : httplib.HTTP classe's connect method should use _get_hostport
instead of (non-existing) _set_hostport. (Fix the regression introduced in
568041fd8090 )
2015-01-24 12:58:10 -08:00
Benjamin Peterson aa7075845c prefer server alpn ordering over the client's 2015-01-23 17:30:26 -05:00
Benjamin Peterson b10bfbe036 pep 466 backport of alpn (#20188) 2015-01-23 16:35:37 -05:00
Serhiy Storchaka e8c9e14af9 Issue #23181: More "codepoint" -> "code point". 2015-01-18 11:42:50 +02:00
Ned Deily b5daa3d6db Issue #23180: Rename IDLE "Windows" menu item to "Window".
Patch by Al Sweigart.
2015-01-17 21:03:41 -08:00
Benjamin Peterson 95ee9c7175 fix parsing reST with code or code-block directives (closes #23063)
Patch by Marc Abramowitz.
2015-01-14 23:56:35 -05:00
Benjamin Peterson 07f90476b9 fix instances of consecutive articles (closes #23221)
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Donald Stufft 6022f38dd8 Bump setuptools to 11.3.1 2015-01-11 15:49:22 -05:00
Terry Jan Reedy 22a041f8e4 Issue #23184: delete unused idlelib file. 2015-01-07 23:48:28 -05:00
Victor Stinner 7c90667f74 Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. The
availability of the function is checked during the compilation. Patch written
by Bernard Spil.
2015-01-06 13:53:37 +01:00
Victor Stinner 7ba8cdc31c Issue #23168: skip sys.stdin.seek() test if stdin is not a TTY 2015-01-06 12:39:45 +01:00
Benjamin Peterson 7b4b28469b allow a SSLContext to be given to ftplib.FTP_TLS 2015-01-04 15:36:31 -06:00
Benjamin Peterson 9fe67ceebf make SSLv23 the default version in ftplib (closes #23111) 2015-01-04 10:20:16 -06:00
Donald Stufft c1edb585a2 Update bundled pip and setuptools to 6.0.6 and 11.0 2015-01-03 05:23:39 -05:00
Benjamin Peterson 27c269a1fe use getentropy when available (backport of 75ede5bec8db) (closes #23115) 2014-12-26 11:09:00 -06:00
Benjamin Peterson a71cfc5cf3 fix behavior of trailing slash redirection when a query string is involved (closes #23112) 2014-12-26 10:53:43 -06:00
Donald Stufft a7516ed9b4 Upgrade pip to 6.0.2 and setuptools to 8.2.1 2014-12-23 09:08:47 -05:00
Benjamin Peterson 53ae6145a0 allow more operations to work on detached streams (closes #23093)
Patch by Martin Panter.
2014-12-21 20:51:50 -06:00
Benjamin Peterson 4e9dbfba21 explicitly close files (closes #23090)
Patch by Brian Kearns.
2014-12-20 13:41:14 -06:00
Serhiy Storchaka 74a651b4e6 Issue #23071: Added missing names to codecs.__all__. Patch by Martin Panter. 2014-12-20 17:42:24 +02:00
Terry Jan Reedy 16e093db98 Issue #20577: move configuration of FormatParagraph extension to new extension
configuration dialog.  Patch by Tal Einat.
2014-12-16 03:21:19 -05:00
Benjamin Peterson 3004b40993 remove extra ssl imports (closes #23053)
Patch from Jan Matejek.
2014-12-15 10:04:13 -05:00
Serhiy Storchaka 655720e275 Issue #22777: Test pickling with all protocols. 2014-12-15 14:02:43 +02:00
Serhiy Storchaka c3741a067b Issue #23015: Improved testing of the uuid module. 2014-12-15 12:03:33 +02:00
Benjamin Peterson 7a6a97352d pop the loop block even for infinite while loops (closes #23048) 2014-12-13 16:06:19 -05:00
Terry Jan Reedy 78cf9a56a3 Issue 22823: Use set literal in idlelib. 2014-12-11 05:33:25 -05:00
Serhiy Storchaka e6b42438fa Issue #23016: A warning no longer produces an AttributeError when sys.stderr
is None.
2014-12-10 23:05:33 +02:00
Benjamin Peterson e57af0f61f merge 2.7.9 release branch 2014-12-10 10:58:13 -05:00
Benjamin Peterson a5f49f5bb4 bump to 2.7.9 final 2014-12-10 10:57:00 -05:00
Benjamin Peterson 8e836facb0 merge 2.7.9 release branch 2014-12-07 14:19:24 -05:00
Benjamin Peterson 4cf4991232 restore test data README 2014-12-07 14:19:15 -05:00
Benjamin Peterson 204a0eca5a merge 2.7.9 release branch 2014-12-07 13:41:52 -05:00
Benjamin Peterson 227f6e0dc5 remove HTTPSConnection's check_hostname parameter (#22959) 2014-12-07 13:41:26 -05:00
Benjamin Peterson daa491b6d7 merge 2.7.9 release branch 2014-12-05 22:02:33 -05:00
Benjamin Peterson 60766c47e7 allow ssl module to compile if openssl doesn't support SSL 3 (closes #22935)
Patch by Kurt Roeckx.
2014-12-05 21:59:35 -05:00
Benjamin Peterson 238afb796c sync idle news from 2.7 branch 2014-12-05 21:09:47 -05:00
Terry Jan Reedy f0ee672ccf Update idlelib/NEWS.txt. 2014-12-05 20:49:23 -05:00
Benjamin Peterson af18b4cb55 merge 2.7.9 release branch 2014-12-05 20:16:53 -05:00
Benjamin Peterson 9e8f523c5b add a default limit for the amount of data xmlrpclib.gzip_decode will return (closes #16043) 2014-12-05 20:15:15 -05:00
Benjamin Peterson dabfc56b57 smtplib: limit amount read from the network (closes #16042) 2014-12-05 20:05:18 -05:00
Benjamin Peterson faad6bbea6 in poplib, limit maximum line length that we read from the network (closes #16041)
Patch from Berker Peksag.
2014-12-05 20:02:38 -05:00
Serhiy Storchaka 45aa771fe9 Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:11:12 +02:00
Serhiy Storchaka 0f8f784a77 Removed duplicated words in in comments and docs. 2014-12-01 18:16:30 +02:00
Serhiy Storchaka d862db0d09 Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
Original patch by Martin Panter.
2014-12-01 13:07:28 +02:00
Serhiy Storchaka 169f195b66 Issue #22943: bsddb tests are locale independend now.
This fixes tests on 8-bit locales (in particular on Windows).
2014-12-01 10:34:23 +02:00
Benjamin Peterson d5355178ad merge 2.7.9 release branch 2014-11-30 11:51:48 -05:00
Benjamin Peterson f8c8d2e366 backout fac649bf2d10 (#9179) for further consideration 2014-11-30 11:47:54 -05:00
Benjamin Peterson ca9810a7f7 merge 2.7.9 release branch 2014-11-29 23:06:22 -05:00
Benjamin Peterson ee44314f93 this is why tests are great 2014-11-29 23:06:06 -05:00
Benjamin Peterson 5a608c2e8b merge 2.7.9 release branch 2014-11-29 22:57:15 -05:00
Benjamin Peterson efa3cf84d2 add context parameter to xmlrpclib.ServerProxy (#22960)
Patch from Alex Gaynor.
2014-11-29 22:55:35 -05:00
Serhiy Storchaka c354285f2b Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of
current directory in current directory.
2014-11-28 00:50:06 +02:00
Serhiy Storchaka 46e92503da Issue #22314: pydoc now works when the LINES environment variable is set. 2014-11-28 00:09:05 +02:00
Serhiy Storchaka 86ef95d3fb Issue #18905: "pydoc -p 0" now outputs actually used port. Based on patch by
Wieland Hoffmann.
2014-11-27 23:45:37 +02:00
Serhiy Storchaka 20994f1e27 Issue #22609: Constructors and update methods of mapping classes in the
collections module now accept the self keyword argument.
2014-11-27 19:02:56 +02:00
Benjamin Peterson 2e26a62363 use skipUnless 2014-11-26 14:35:56 -06:00
Benjamin Peterson af358ef399 2.7.9rc1 2014-11-25 18:27:24 -06:00
Benjamin Peterson d58cec2a87 update pydoc-topics 2014-11-25 18:25:06 -06:00
Benjamin Peterson 0cb0b30a35 disable tests that always fail on windows (#22943) 2014-11-25 17:37:09 -06:00
Benjamin Peterson f7363ed8ef use more ugly but hopefully more robust method 2014-11-25 16:12:32 -06:00
Benjamin Peterson 69a64d3fc2 handle errors without a reason attribute 2014-11-25 15:43:58 -06:00
Benjamin Peterson f671de4dd4 don't fail tests when www.python.org can't be validated by the system 2014-11-25 15:16:55 -06:00
Benjamin Peterson 226fa562bf debugging: print ca certs loaded into default ctx 2014-11-24 23:25:29 -06:00
Berker Peksag dfdae021b9 Issue #16056: Rename test methods to avoid conflict. 2014-11-24 23:57:00 +02:00
Benjamin Peterson 51f461fbd3 is OpenIndiana actually sunos? 2014-11-23 22:34:04 -06:00
Benjamin Peterson 98b1b24fea loosen solaris test 2014-11-23 22:22:59 -06:00
Benjamin Peterson 0636a4ba88 skip test_gdb on OpenIndiana 2014-11-23 22:02:47 -06:00
Benjamin Peterson e3e7d40514 pep 476: verify certificates by default (#22417) 2014-11-23 21:02:02 -06:00
Benjamin Peterson b206473ef8 give urllib.urlopen a context parameter (closes #22927) 2014-11-23 20:55:24 -06:00
Benjamin Peterson 31aa69ead5 allow hostname to be passed to SSLContext even if OpenSSL doesn't support SNI (closes #22921)
Patch from Donald Stufft.
2014-11-23 20:13:31 -06:00
Benjamin Peterson 88922db775 fix this test when sizeof(long) < sizeof(size_t) 2014-11-23 13:17:57 -06:00
Benjamin Peterson b0609ec8f3 remove py3k warning guard 2014-11-23 11:52:46 -06:00
Benjamin Peterson fcfb18ee2b allow passing cert/ssl information to urllib2.urlopen and httplib.HTTPSConnection
This is basically a backport of issues #9003 and #22366.
2014-11-23 11:42:45 -06:00
Benjamin Peterson 5f6b89bda3 initialize _makefile_refs earlier so things don't blow up when close() is called in the constructor 2014-11-23 11:16:48 -06:00
Antoine Pitrou 95b616480e Backport disabling of SSLv3 in ssl._create_stdlib_context() (issue #22638).
The backport currently doesn't achieve anything since the function isn't used (yet).
2014-10-17 19:28:30 +02:00
Serhiy Storchaka 138ec8c118 Issue #17293: socket.gethostbyname() can raise an exception of FreeBSD. 2014-11-21 21:54:43 +02:00
Antoine Pitrou b9a4501179 Issue #21963: backout issue #1856 patch (avoid crashes and lockups when
daemon threads run while the interpreter is shutting down; instead,
these threads are now killed when they try to take the GIL), as it seems
to break some existing code.
2014-11-21 02:04:21 +01:00
Serhiy Storchaka f9b2aa2efe Issue #22193: Fixed integer overflow error in sys.getsizeof().
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:21:01 +02:00
Donald Stufft f44b9c4ddc Define a __hash__ to quiet down a -3 warning 2014-11-11 12:32:57 -05:00
Donald Stufft 3ecc8dbdcd Upgrade setuptools to 7.0 2014-11-11 10:53:50 -05:00
Donald Stufft 8aaff54db3 Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7
* Backports ensurepip to the 2.7 branch
* Backports some of the improved documentation to the 2.7 branch.
* Adds a private backport of the 3.x mock library as test._mock_backport
  to enable saner testing of ensurepip.

Key Differences from 3.x:

* Ensurepip does not have any Makefile integration, specifically
  it is not ran by default in the Makefile.
* There is no venv module in 2.7, so downstream distributors can
  completely disable ensurepip, ideally with a message redirecting
  to the correct way to install pip.
* To match the ``python`` command in 2.7, ensurepip will install
  the unversioned ``pip`` command as well.
* No-op and hide --default-pip and add --no-default-pip to restore
  the 3.x behavor on 2.7.
2014-11-11 10:24:11 -05:00
Serhiy Storchaka e927757df6 Issue #12728: Different Unicode characters having the same uppercase but
different lowercase are now matched in case-insensitive regular expressions.
2014-11-10 12:37:02 +02:00
Raymond Hettinger fb136d19ff Remove unused import 2014-11-07 22:47:30 -08:00
Serhiy Storchaka c4d2760a6a Silence the failure of test_pyclbr after adding a property in sre_parse
(issue #814253).
2014-11-07 22:31:54 +02:00
Serhiy Storchaka 15ea870e29 Issues #814253, #9179: Group references and conditional group references now
work in lookbehind assertions in regular expressions.
2014-11-07 21:43:45 +02:00
Serhiy Storchaka b4f3d80d4f Backported tests for issue #22406. 2014-11-07 14:07:43 +02:00
Serhiy Storchaka 4535b11147 Issue #17293: uuid.getnode() now determines MAC address on AIX using netstat.
Based on patch by Aivars Kalvāns.
2014-11-07 12:19:23 +02:00
Serhiy Storchaka 7a02582329 Issue #22769: Fixed ttk.Treeview.tag_has() when called without arguments. 2014-11-07 12:02:11 +02:00
Georg Brandl a6a8a4f5f7 merge heads 2014-11-06 14:56:47 +01:00
Georg Brandl 6246f2a103 #22650: test suite: load Unicode test data files from www.pythontest.net 2014-11-06 14:37:49 +01:00
Steve Dower 31221a7285 Issue #20160: broken ctypes calling convention on MSVC / 64-bit Windows (large structs). Patch by mattip 2014-11-05 19:16:05 -08:00