Commit Graph

25697 Commits

Author SHA1 Message Date
Senthil Kumaran 1eeba83867 Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb 2013-08-12 22:24:43 -07:00
Ezio Melotti d599142197 #18663: document that assertAlmostEqual also works when the values are equal and add tests. 2013-08-11 13:04:50 +03:00
Terry Jan Reedy bb8114cbe6 Issue #18676: Change 'positive' to 'non-negative' in queue.py put and get
docstrings and ValueError messages. Patch by Zhongyue Luo
2013-08-10 18:17:01 -04:00
Terry Jan Reedy 3d35489169 Issue #18226: Add docstrings and unittests for idlelib/FormatParagraph.py.
Move comment code to a separate function so it can be separately tested.
Original patches by Todd Rovito and Phil Webster.
2013-08-10 16:56:20 -04:00
Ezio Melotti 7921b30be6 #18357: add tests for dictview set difference. Patch by Fraser Tweedale. 2013-08-08 20:09:19 +03:00
Serhiy Storchaka e822b034e7 Issue #15866: The xmlcharrefreplace error handler no more produces two XML
entities for a non-BMP character on narrow build.
2013-08-06 16:56:26 +03:00
Terry Jan Reedy f948943604 Issue #18151: Replace remaining Idle 'open...close' pairs with 'with open'. 2013-08-04 15:39:56 -04:00
Eli Bendersky b671701149 Issue #13612: Fix a buffer overflow in case of a multi-byte encoding.
This is a belated backport of f7b47fb30169; Patch by Serhiy Storchaka.
2013-08-04 06:09:49 -07:00
Serhiy Storchaka 06fbac5ea0 Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy. 2013-08-04 13:22:30 +03:00
Serhiy Storchaka 3ade66c203 Issue #17998: Fix an internal error in regular expression engine. 2013-08-03 19:26:33 +03:00
Charles-François Natali e8e312142e Issue #18325: Fix a test_kqueue failure on OpenBSD: kevent's data and event
members are integers.
2013-08-02 10:01:46 +02:00
Antoine Pitrou ba7620cbff Fix tkinter regression introduced by the security fix in #16248. 2013-08-01 22:25:12 +02:00
Ned Deily fb77386ffb Issue #18071: Extension module builds on OS X could fail with TypeError
if Xcode command line tools were not installed.
2013-07-31 00:14:20 -07:00
Terry Jan Reedy 9ba8d6bf34 Make all idle test case names end with 'Test'. 2013-07-30 01:37:36 -04:00
Terry Jan Reedy aea6c115ed Update gui section of idle test README. 2013-07-28 16:39:44 -04:00
Raymond Hettinger 662908b5e5 Restore the data block size to 62.
The former block size traded away good fit within cache lines in
order to gain faster division in deque_item().  However, compilers
are getting smarter and can now replace the slow division operation
with a fast integer multiply and right shift.  Accordingly, it makes
sense to go back to a size that lets blocks neatly fill entire
cache-lines.

GCC-4.8 and CLANG 4.0 both compute "x // 62" with something
roughly equivalent to "x * 9520900167075897609 >> 69".
2013-07-28 02:34:42 -07:00
Terry Jan Reedy 16b10c64d7 Issue #18441: Move commented out code to issue message. 2013-07-28 00:01:00 -04:00
Terry Jan Reedy d826d77d11 Issue #18441: whitespace 2013-07-27 22:29:09 -04:00
Terry Jan Reedy 47cb4d62c6 Issue #18441: Comment out code that will not compile because the standard
library has a package, lib-tk, that cannot be imported by normal means.
Lib/test/test_tk, etc, have special code to access this package.  I will not
bother with it unless the darwin check is needed before it gets moved to
test.(test-)support.py.
2013-07-27 22:27:25 -04:00
Terry Jan Reedy d71244f189 Issue #18441: add Mac (darwin) gui check. This is not needed today, but has been
in the past and might be needed again in the future
2013-07-27 22:06:03 -04:00
Terry Jan Reedy cc8506ecbe Update int division to quiet 2to3 warning. 2013-07-27 20:28:53 -04:00
Terry Jan Reedy 6fb6f8cf58 Issue #18441: Correct previous patch, which hg committed before I wanted it to. 2013-07-27 19:07:07 -04:00
Terry Jan Reedy 09eb26fe26 Issue #18441: Make test.support.requires('gui') skip when it should.
(Consolidating this check and various checks in tkinter files and moving them
to test.support and test.regrtest will be another issue.)
2013-07-21 20:13:24 -04:00
Terry Jan Reedy 349065500a Issue #18539: Calltips now work for float default arguments. 2013-07-26 18:21:32 -04:00
Ezio Melotti e21b6ae725 #14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat. 2013-07-25 05:21:00 +02:00
Terry Jan Reedy f688f725b5 Backed out changeset: 23b0164b9c82 #18441 not working 2013-07-21 21:57:52 -04:00
Terry Jan Reedy 1ad65ac841 Backed out changeset: 9f922270a929 so can backout larger patch 2013-07-21 21:57:02 -04:00
Terry Jan Reedy 518e48b2bc Issue #18441: fix buildbot name-error for TclError. 2013-07-21 21:24:45 -04:00
Terry Jan Reedy 2c636fd655 Issue #18441: Make test.support.requires('gui') skip when it should.
(Consolidating this check and various checks in tkinter files and moving them
to test.support and test.regrtest will be another issue.)
2013-07-21 20:13:24 -04:00
Ned Deily 14ef0c8d6b Issue #17532: Prevent exception when changing key sets if Options menu is empty. 2013-07-20 14:38:24 -07:00
Richard Oudkerk c8ef9bc694 Issue #18455: multiprocessing should not retry connect() with same socket. 2013-07-15 18:37:48 +01:00
Terry Jan Reedy a25a31a901 Issue #18365: convert buildbot errors to skips. 2013-07-13 04:05:42 -04:00
Terry Jan Reedy c8a198ce02 Issue #18279: Add tests for idlelib/RstripExtension.py. Original patch by
Phil Webster. With that available, modify RstripExtension.py to stop deleting
null slices, which caused a file to be marked as changed when it was not.
2013-07-13 02:34:35 -04:00
Terry Jan Reedy e7cbd3f07c Issue #18365: 2.7 corrections so tests run 2013-07-13 00:02:27 -04:00
R David Murray d781b07e29 #18437: fix comment typo. 2013-07-12 22:57:12 -04:00
Terry Jan Reedy fccb0d2d0d Issue #18365: normalize whitespace 2013-07-12 20:18:33 -04:00
Terry Jan Reedy 16c107046f Issue #18365: Add mock Text class and test thereof versus tk.Text.
Based on patches by Todd.Rovito and Phil Webster.
2013-07-12 20:10:17 -04:00
Serhiy Storchaka fab65428d5 Issue #18101: Tcl.split() now process Unicode strings nested in a tuple as it
do with byte strings.

Added tests for Tcl.split() and tcl.splitline().
2013-07-11 20:32:48 +03:00
Christian Heimes 20d46692fc Issue #18347: ElementTree's html serializer now preserves the case of closing tags. 2013-07-05 01:41:30 +02:00
Antoine Pitrou 0c503c2c7f Issue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé. 2013-07-04 21:03:10 +02:00
Richard Oudkerk 1e462fefd6 Issue #17261: Ensure multiprocessing's proxies use proper address. 2013-07-02 13:31:43 +01:00
Richard Oudkerk 41072db709 Issue #17097: Make multiprocessing ignore EINTR. 2013-07-01 18:45:28 +01:00
Terry Jan Reedy 44d8b11c3e Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
2013-07-01 00:42:44 -04:00
Terry Jan Reedy b6eeef4165 Issue #8515: Set __file__ when run file in IDLE. Backport 2c276d0553ff by
Andrew Svetlov, based on initial patch by Bruce Frederiksen.
2013-06-30 19:07:49 -04:00
Terry Jan Reedy d1caae86e5 Issue #18189: add test_delegator for Idle Delegator class.
Also change private dict used as a set to a set.
2013-06-30 18:36:53 -04:00
Terry Jan Reedy 7ab0c310c7 Issue 18189: remove unused methods in idlelib.Delegator.Delegator.
Idle code already uses x.delegate instead of x.getdelegate().
The printed report must have been for testing.
2013-06-30 16:51:53 -04:00
Terry Jan Reedy 6c1d9dd566 Tempfile.py: stop buildbot warning about using deprecated xreadlines.
The slightly odd behavior (the validity of passing a sizehint depends on the
type of self._file) was kept to avoid breaking code that depends on it.
Test_tempfile.test_xreadlines passes (along with everything else).
2013-06-30 13:57:57 -04:00
R David Murray 24dc75365e #18155: Regex-escape delimiter, in case it is a regex special char.
Patch by Vajrasky Kok, with slight modification to the tests by me.
2013-06-29 18:43:59 -04:00
Terry Jan Reedy 1d14246b77 Issue #18103: Update README.txt and test_idle to describe and run gui tests. 2013-06-29 18:22:02 -04:00
Terry Jan Reedy 2b149860a0 Issue #18316: Update idlelib 2.7 except clauses to ease backports. 2013-06-29 00:59:34 -04:00
Terry Jan Reedy 8eab008b53 Issue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
replacing warnings.formatwarnings and to reverse replacement of
warnings.showwarnings when import is complete and when main function exits.
Add test_warning.py. Vinay Sajip provided capture_warnings function.
2013-06-28 23:51:34 -04:00
Terry Jan Reedy 35115e6aab Issue #18315: Improve fileinput docs by adding 'bufsize' where missing and
replacing redundant signature in input() docstring with one-line summary.
Original patch by Terrel Shumway.
2013-06-28 18:59:19 -04:00
Benjamin Peterson 227f0faed2 reapply 5accb0ac8bfb 2013-06-25 11:34:48 -07:00
R David Murray 9575222b7f #18179: reflow paragraphs. 2013-06-23 16:10:37 -04:00
R David Murray 7f01d55333 #18179: document the local_hostname parameter.
Original patch by Berker Peksag.
2013-06-23 16:02:34 -04:00
Christian Heimes 262df4d3e8 Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
for symlinks.
2013-06-23 16:27:01 +02:00
Victor Stinner 760388100e Issue #18137: Detect integer overflow on precision in float.__format__()
and complex.__format__().
2013-06-23 14:56:57 +02:00
Terry Jan Reedy 223a22b6ab #18151, part 2: Silence debug build resource warning for each file opened by
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.
2013-06-22 18:26:38 -04:00
Benjamin Peterson 10c74d28e4 backout 5accb0ac8bfb; needs more discussion on python-dev 2013-06-22 11:16:36 -07:00
Christian Heimes 0a89f8e2bb transplant test_stat from default to 2.7 in order to make sure it works on all supported platforms 2013-06-22 18:58:51 +02:00
Andrew Kuchling aa6c297316 #18113: avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again
Problem noted & original patch by Serhiy Storchaka; I tweaked the patch a bit.
2013-06-22 12:33:05 -04:00
Serhiy Storchaka e2cc341ffa Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data
when \r\n appears at end of 65535 bytes without other newlines.
2013-06-17 16:33:48 +03:00
Andrew Kuchling a49dcc51b8 #18113: Objects associated to a curses.panel object with set_userptr() were leaked.
Reported by Atsuo Ishimoto.
2013-06-15 13:53:10 -04:00
Raymond Hettinger 03512c18cb Fix comment blocks. Adjust blocksize to a power-of-two for better divmod computations. 2013-06-14 01:06:33 -04:00
Roger Serwy 16ce43a6d8 #5492: Avoid traceback when exiting IDLE caused by a race condition. 2013-06-11 22:13:17 -05:00
Ned Deily c94f07de77 Issue #18186: remove obsolete 2.2 compatibility comment. 2013-06-11 15:00:21 -07:00
Roger Serwy fff3f48365 #17511: Keep IDLE find dialog open after clicking "Find Next".
Original patch by Sarah K.
2013-06-10 23:01:20 -05:00
Richard Oudkerk 045e457992 Issue #18174: Fix fd leaks in tests. 2013-06-10 16:27:45 +01:00
Ronald Oussoren 0e6283e68a Ensure that the fix for #17269 also works on OSX 10.4
AI_NUMERICSERV isn't defined on OSX 10.4.
2013-06-10 10:35:36 +02:00
Serhiy Storchaka 729ad5cf56 Issue #18038: SyntaxError raised during compilation sources with illegal
encoding now always contains an encoding name.
2013-06-09 16:54:56 +03:00
Terry Jan Reedy 8d6834a28e Issue18130: Test class idlelib.configSectionNameDialog.GetCfgSectionNameDialog.
Fix bug in existing human test and add instructions; fix two bugs in tested
code; remove redundancies, add spaces, and change two internal method names.
Add mock_tk with mocks for tkinter.Variable subclasses and tkinter.messagebox.
Use mocks in test_config_name to unittest methods that are otherwise gui-free.
2013-06-05 14:24:42 -04:00
Senthil Kumaran 964c25f1d9 Fix #17967 - Fix related to regression on Windows.
os.path.join(*self.dirs) produces an invalid path on windows.
ftp paths are always forward-slash seperated like this. /pub/dir.
2013-06-02 11:59:09 -07:00
Senthil Kumaran 7351b66eb9 Fix thishost helper funtion in urllib. Returns the ipaddress of localhost when
hostname is resolvable by socket.gethostname for local machine. This all fixes
certain freebsd builtbot failures.
2013-06-01 11:11:30 -07:00
Senthil Kumaran 243cb807e9 Fix #17967: For ftp urls CWD to target instead of hopping to each directory
towards target. This fixes a bug where target is accessible, but parent
directories are restricted.
2013-06-01 08:24:31 -07:00
Senthil Kumaran a085f000b4 Fix #16450 test_missing_localfile testcase fails on misconfigured hostname.
Refactor test to accomodate that and exercise the needed functionality.
2013-06-01 07:59:10 -07:00
Serhiy Storchaka 95787fdb9c Issue #18094: test_uuid no more reports skipped tests as passed. 2013-05-31 22:34:53 +03:00
Terry Jan Reedy b02a1b8a08 Issue #15392: Use test.test_support, as used test.support in 3.x. 2013-05-30 18:24:28 -04:00
Terry Jan Reedy b8fd9cafbe Issue #15392: Create a unittest framework for IDLE, 2.7 version.
Preliminary patch by Rajagopalasarma Jayakrishnan.
2013-05-30 14:47:33 -04:00
Ned Deily 8e60f6ebfb Issue #18098: The deprecated OS X Build Applet.app fails to build on
OS X 10.8 systems because the Apple-deprecated QuickDraw headers have
been removed from Xcode 4.  Skip building it in this case.
2013-05-30 00:14:29 -07:00
Senthil Kumaran 2c4810efa2 #17403: urllib.parse.robotparser normalizes the urls before adding to ruleline.
This helps in handling certain types invalid urls in a conservative manner.
2013-05-29 05:58:47 -07:00
Ned Deily 1ab29e78f9 Issue #18080: When building a C extension module on OS X, if the compiler
is overriden with the CC environment variable, use the new compiler as
the default for linking if LDSHARED is not also overriden.  This restores
Distutils behavior introduced in 2.7.3 and inadvertently dropped in 2.7.4.
2013-05-28 16:31:45 -07:00
Raymond Hettinger 7393c69d6d Issue #18015: Fix unpickling of 2.7.3 and 2.7.4 namedtuples. 2013-05-27 10:58:55 -07:00
Ronald Oussoren 16c52a3376 Issue #17269: Workaround for a platform bug in getaddrinfo on OSX
Without this patch socket.getaddrinfo crashed when called
with some unusual argument combinations.
2013-05-24 13:45:27 +02:00
Ned Deily 674f4fa2ad Issue #17532: Always include Options menu for IDLE on OS X.
Patch by Guilherme Simões.
2013-05-22 15:16:17 -07:00
Benjamin Peterson 1cf48b4adc implement missing inequality on WeakSet 2013-05-22 13:25:41 -07:00
Roger Serwy 02c0ed0612 #14146: Highlight source line while debugging on Windows. 2013-05-20 22:13:39 -05:00
Benjamin Peterson b91ef008ba add missing NULL check (closes #18019) 2013-05-19 19:38:12 -07:00
Antoine Pitrou f41ffedad0 Issue #11995: test_pydoc doesn't import all sys.path modules anymore. 2013-05-19 15:44:54 +02:00
Vinay Sajip bb6b51ca25 Issue #17981: Closed socket on error in SysLogHandler. 2013-05-16 22:47:47 +01:00
doko@ubuntu.com 9855249a9f - Fix typos in the multiprocessing module. 2013-05-15 16:54:16 +02:00
doko@ubuntu.com 96645cc4ff - Issue #17754: Make ctypes.util.find_library() independent of the locale. 2013-05-15 15:46:11 +02:00
Serhiy Storchaka 7423903eee Issue #17606: Fixed support of encoded byte strings in the XMLGenerator
characters() and ignorableWhitespace() methods.  Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:29:34 +03:00
Benjamin Peterson b6492dd828 update topics 2013-05-11 22:31:33 -05:00
Benjamin Peterson 086494483d bump version to 2.7.5 2013-05-11 22:29:20 -05:00
Benjamin Peterson 5a27168883 prevent IDLE from trying to close when sys.stdin is reassigned (#17838) 2013-05-11 22:24:28 -05:00
Benjamin Peterson 6e165b40e1 backout 214d8909513d for regressions (#1159051) 2013-05-11 13:17:13 -05:00
Serhiy Storchaka ce34ba6e3c Issue #16601: Restarting iteration over tarfile no more continues from where
it left off.  Patch by Michael Birtwell.
2013-05-09 14:22:05 +03:00
Terry Jan Reedy 673770c59d Issue 16584: in filecomp._cmp, catch IOError as well as os.error.
Patch by Till Maas.
2013-05-08 23:42:41 -04:00
Serhiy Storchaka db03e6b842 Issue #17656: Skip test_extract_unicode_filenames if the FS encoding
doesn't support non-ASCII filenames.
2013-05-08 21:52:31 +03:00
Ezio Melotti 794e5573f4 #17833: add debug output to investigate buildbot failure. 2013-05-07 09:34:49 +03:00