Commit Graph

26785 Commits

Author SHA1 Message Date
Serhiy Storchaka e37003e9ae Issue #19543: Added Py3k warning for decoding unicode. 2015-12-03 20:47:48 +02:00
Victor Stinner c747e5564f Fix test_doctest in verbose mode 2015-12-02 14:39:37 +01:00
Serhiy Storchaka 2329eeda0c Issue #25718: Fixed copying object with state with boolean value is false. 2015-11-30 17:20:02 +02:00
Serhiy Storchaka 03f3c2fa5f Fixed yet one syntax error in test_xpickle in Python 2.5. 2015-11-29 20:18:27 +02:00
Serhiy Storchaka 43e9007767 Fixed Py3k warnings in tests for issue #24731. 2015-11-29 20:13:56 +02:00
Serhiy Storchaka 81772f1ee2 Trying to fix test_xpickle with python 2.4 and 2.5. 2015-11-29 19:20:11 +02:00
Victor Stinner 3c8ef8f100 Issue #25742: Try to fix test_locale on Windows 2015-11-29 16:33:18 +01:00
Serhiy Storchaka d26b66313e Got rid of "with" for compatibility test_xpickle with Python 2.5. 2015-11-29 16:13:51 +02:00
Serhiy Storchaka bf19ce27c4 Issue #25761: Added more test cases for testing unpickling broken data.
Output raised exception at verbose level 2 (-vv).
2015-11-29 13:12:40 +02:00
Victor Stinner e08496b62d Closes #25742: locale.setlocale() now accepts a Unicode string for its second
parameter.
2015-11-27 23:54:36 +01:00
Zachary Ware 916c7c7ae1 Issue #23914: Fix test_xpickle with python 2.4 and 2.5
Remove 'b' prefix from strings, remove unused import.
2015-11-27 01:21:51 -06:00
Serhiy Storchaka 9baa56883a Issue #10131: Fixed deep copying of minidom documents. Based on patch
by Marian Ganisin.
2015-11-26 23:48:30 +02:00
Martin Panter 929e363a7b Issue #25622: Rename to PythonValuesTestCase and enable for non-Windows 2015-11-26 02:36:26 +00:00
Serhiy Storchaka ee1b24ccaa Issue #24097: Fixed crash in object.__reduce__() if slot name is freed inside
__getattr__.  Original patch by Antoine Pitrou.
2015-11-25 18:35:33 +02:00
Serhiy Storchaka 282e831a5a Issue #25616: Tests for OrderedDict are extracted from test_collections
into separate file test_ordered_dict.
2015-11-25 17:19:27 +02:00
Serhiy Storchaka 1121b5e6a9 Issue #25703: Skip test_43581 if one of stdout or stderr is redirected. 2015-11-25 16:20:04 +02:00
Serhiy Storchaka 8d30ad7c8a Issue #24731: Fixed crash on converting objects with special methods
__str__, __trunc__, and __float__ returning instances of subclasses of
str, long, and float to subclasses of str, long, and float correspondingly.
2015-11-25 15:55:54 +02:00
Raymond Hettinger d2f0726f86 Fix non-ascii character 2015-11-23 21:00:45 -08:00
Raymond Hettinger 5fda2f6fb7 Add a missing docstring 2015-11-23 20:47:05 -08:00
Martin Panter 96bc1757ce Issue #25663: Make rlcompleter avoid duplicate global names 2015-11-23 23:50:26 +00:00
Serhiy Storchaka b3d8b59426 Issue #25688: Fixed file leak in ElementTree.iterparse() raising an error. 2015-11-23 15:46:36 +02:00
Serhiy Storchaka 5c137669e3 Issue #23914: Fixed SystemError raised by unpickler on broken pickle data. 2015-11-23 15:20:43 +02:00
Serhiy Storchaka 1456c98493 Issue #25691: Added tests on deleting cElementTree.Element attributes. 2015-11-23 08:50:20 +02:00
Serhiy Storchaka 37c02acb6f Issue #25624: ZipFile now always writes a ZIP_STORED header for directory
entries.  Patch by Dingyuan Wang.
2015-11-22 14:56:22 +02:00
Benjamin Peterson 241282bac6 update pydoc-topics 2015-11-21 13:35:41 -08:00
Terry Jan Reedy e4679e40f5 Update idlelib/NEWS.txt. 2015-11-21 13:31:00 -05:00
Serhiy Storchaka 1a31cba464 Issue #25686: test_shutil no longer uses the distutils package for running
external archivers.
2015-11-21 14:11:57 +02:00
Terry Jan Reedy 76ced99721 Issue 15348: Stop debugger engine (normally in user process)
before closing debugger window in IDLE process.
This prevents one-per-line RuntimeErrors.
2015-11-21 00:04:58 -05:00
Terry Jan Reedy 89bdf373c4 Issue #24455: Prevent IDLE from hanging when a) closing the shell while the
debugger is active (15347); b) closing the debugger with the [X] button
(15348); and c) activating the debugger when already active (24455).
The patch by Mark Roseman does this by making two changes.
1. To suspend and resume the gui.interaction method, use the tcl vwait
mechanism interded for this purpose instead of root.mainloop & .quit.
2. In gui.run, allow any existing interaction to terminate first.
2015-11-20 19:36:38 -05:00
Serhiy Storchaka 6156560e4b Issue #25678: Copy buffer objects to null-terminated strings.
Avoid buffer overreads when int(), long(), float(), and compile()
are passed buffer objects.  Similar code is removed from the
complex() constructor, where it was not reachable.

Patch backported from issue #24802 by Eryk Sun.
2015-11-20 21:56:21 +02:00
Terry Jan Reedy 815ab14030 Make it slightly clearer that IDLE close message is referring to user program,
not to IDLE itself.
2015-11-20 12:21:40 -05:00
Nick Coghlan 2a6c2c9baa Close #10128: don't rerun __main__.py in multiprocessing
- backports issue #10845's mitigation of incompatibilities between
  the multiprocessing module and directory and zipfile execution
- Multiprocessing on Windows will now automatically skip rerunning top
  level __main__.py modules in spawned processes, rather than failing
  with AssertionError
2015-11-19 12:59:39 +10:00
Terry Jan Reedy f7999fc23f Issue #24750: whitespace 2015-11-16 07:36:12 -05:00
Terry Jan Reedy 3d0962222c Issue #24750: Improve appearance of IDLE editor window status bar.
Patch by Mark Roseman.
2015-11-16 07:32:19 -05:00
Serhiy Storchaka 5d7d26c403 Issue #25388: Fixed tokenizer hang when processing undecodable source code
with a null byte.
2015-11-14 15:14:29 +02:00
Martin Panter ef2b2f437e Issue #25590: Make rlcompleter only call getattr() once per attribute
Previously it was called another time via hasattr(), and both calls were
made once for dir(f) and again for dir(f.__class__).  This includes a
backport of changing from a list to a set from revision 4dbb315fe667.
2015-11-13 22:47:00 +00:00
Terry Jan Reedy 4b4f0b997c Indent 2015-11-12 15:24:22 -05:00
Terry Jan Reedy 55ee13da90 Whitespace 2015-11-12 15:06:02 -05:00
Terry Jan Reedy 35aa5d07a2 Issue #25313: Change the handling of new built-in text color themes to better
address the compatibility problem introduced by the addition of IDLE Dark.
Consistently use the revised idleConf.CurrentTheme everywhere in idlelib.
2015-11-12 15:02:50 -05:00
Serhiy Storchaka 0d649406ae Issue #25607: Restore old distutils logging threshold after running tests that
parse command line arguments.
2015-11-12 19:46:23 +02:00
Serhiy Storchaka 76e6cc15b2 Issue #22995: Backported additional tests for non-pickleable types. 2015-11-12 11:36:42 +02:00
Benjamin Peterson 10aaca9941 always set OP_NO_SSLv3 by default (closes #25530) 2015-11-11 22:38:41 -08:00
Serhiy Storchaka c54b8ceb91 Issue #7759: Fixed the mhlib module on filesystems that doesn't support
link counting for directories.
2015-11-11 17:33:12 +02:00
Serhiy Storchaka 9665cca16d Issue #6598: Avoid clock wrapping around in test_make_msgid_collisions.
Use time.time instead of time.clock.
2015-11-10 19:53:37 +02:00
Serhiy Storchaka f64ccb9acf 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:32:54 +02:00
Serhiy Storchaka bab1f851cc Issue #25582: Fixed 100 MB memory leak in test_ctypes. 2015-11-09 22:31:10 +02:00
Victor Stinner e192d0bbb9 Issue #7267: format(int, 'c') now raises OverflowError when the argument is not
in range(0, 256).
2015-11-09 12:21:09 +01:00
Serhiy Storchaka 8d0a94df33 Issue #892902: Disable newly added tests in test_xpickle. 2015-11-07 20:04:46 +02:00
Serhiy Storchaka da87e45add Issue #892902: Fixed pickling recursive objects. 2015-11-07 11:15:32 +02:00
Martin Panter 43415ba571 Issue #18010: Fix pydoc GUI search to handle package exceptions 2015-11-07 05:41:47 +00:00