Ronald Oussoren
385521c90e
Cleanup of documentation change from #17860
...
Reformulated the textual change, and applied it to the docstring as well.
2013-07-07 09:26:45 +02:00
Brett Cannon
a53cca3fea
Issue #18351 : Fix various issues with
...
importlib._bootstrap._get_sourcefile().
Thanks to its only use by the C API, it was never properly tested
until now.
Thanks to Neal Norwitz for discovering the bug and Madison May for the patch.
2013-07-06 17:56:43 -04:00
Ezio Melotti
2a99d5df63
#18380 : pass regex flags to the right argument. Patch by Valentina Mukhamedzhanova.
2013-07-06 17:16:04 +02:00
Florent Xicluna
5f3fef37f6
test_ftplib: silence a BytesWarning when checking TypeError
2013-07-06 15:08:21 +02:00
Florent Xicluna
d9e7c86d7e
Issue #18375 : Assume --randomize when --randseed is used for running the testsuite.
2013-07-06 12:25:52 +02:00
Christian Heimes
54ad7e39df
Issue #18347 : ElementTree's html serializer now preserves the case of closing tags.
2013-07-05 01:39:49 +02:00
Antoine Pitrou
be9c841494
Issue #11185 : Fix test_wait4 under AIX. Patch by Sébastien Sablé.
2013-07-04 21:03:10 +02:00
Victor Stinner
a9c99a6119
test_time.test_monotonic(): use a longer sleep to try to make the test more reliable
2013-07-03 23:07:37 +02:00
Victor Stinner
330426cfe2
test_faulthandler: skip test_read_null() on AIX
...
AIX maps the first page of memory at address zero as valid, read-only. Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.
2013-07-03 22:29:42 +02:00
Richard Oudkerk
e3e8bcf3e7
Issue #17261 : Ensure multiprocessing's proxies use proper address.
2013-07-02 13:37:43 +01:00
Christian Heimes
2178248858
Issue #18339 : use with self.assertRaises() to make test case more readable
2013-07-01 23:00:13 +02:00
Richard Oudkerk
cca8c53d6a
Issue #17097 : Make multiprocessing ignore EINTR.
2013-07-01 18:59:26 +01:00
Christian Heimes
a24b4d260b
Issue #18339 : Negative ints keys in unpickler.memo dict no longer cause a
...
segfault inside the _pickle C extension.
2013-07-01 15:17:45 +02:00
Terry Jan Reedy
8a0b7756e2
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:52 -04:00
Terry Jan Reedy
acd5f81149
Issue #18189 : add test_delegator for Idle Delegator class.
...
Also change private dict used as a set to a set.
2013-06-30 18:37:05 -04:00
Vinay Sajip
ef1f777e0a
Issue #18224 : Updated test.
2013-06-30 22:11:10 +01:00
Vinay Sajip
61d003a8f1
Issue #18224 : Removed pydoc script from created venv, as it causes problems on Windows and adds no value over and above python -m pydoc ...
2013-06-30 22:06:52 +01:00
Terry Jan Reedy
56fe854a77
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:52:19 -04:00
R David Murray
c170f37d38
#18038 : Use non-deprecated assert names in tests.
2013-06-30 11:46:32 -04:00
R David Murray
925a322570
#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:40:53 -04:00
Terry Jan Reedy
e4e530e7e8
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
95a3f11f95
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:50:12 -04:00
Terry Jan Reedy
70d2c711f1
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:28 -04:00
R David Murray
f6069f9f22
#14360 : make encoders.encode_quopri work.
...
There were no tests for the encoders module. encode_base64 worked
because it is the default and so got tested implicitly elsewhere, and
we use encode_7or8bit internally, so that worked, too. I previously
fixed encode_noop, so this fix means that everythign in the encoders
module now works, hopefully correctly. Also added an explicit test
for encode_base64.
2013-06-27 18:37:00 -04:00
R David Murray
021362dbd4
#18179 : reflow paragraphs.
2013-06-23 16:05:44 -04:00
R David Murray
36beb66be9
#18179 : document the local_hostname parameter.
...
Original patch by Berker Peksag.
2013-06-23 15:47:50 -04:00
Serhiy Storchaka
e19ee8595d
Merge heads
2013-06-23 20:25:40 +03:00
Serhiy Storchaka
8eeae2126c
Issue #18184 : PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
...
OverflowError when an argument of %c format is out of range.
2013-06-23 20:12:14 +03:00
Łukasz Langa
f9b4eb4d04
Fixed issue #18260 : configparser TypeError on source name specified as bytes
2013-06-23 19:10:25 +02:00
Christian Heimes
36a7e4f74a
Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
...
for symlinks.
2013-06-23 16:10:29 +02:00
Victor Stinner
2f084ecfe7
Issue #18137 : Detect integer overflow on precision in float.__format__() and
...
complex.__format__().
2013-06-23 14:54:30 +02:00
Terry Jan Reedy
de3beb2617
#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:51 -04:00
Andrew Kuchling
9290dd14b0
#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 14:50:56 -04:00
Christian Heimes
45d9493ee9
BSD: block devices are gone
...
http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html
2013-06-22 14:48:32 +02:00
Christian Heimes
60a95933cb
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links
2013-06-21 18:53:13 +02:00
Christian Heimes
f678b3131e
Add tests for untested features of the 'stat' module (part of issue #11016 )
2013-06-21 18:25:56 +02:00
Serhiy Storchaka
0a3cdf063c
Issue #18202 : Fix minor bugs and cleanup test_coding.py.
2013-06-19 10:23:35 +03:00
Victor Stinner
5678539500
test_faulthandler: use _sigsegv() instead of _read_null()
...
faulthandler._read_null() is not reliable: it does not crash on AIX.
2013-06-17 23:37:59 +02:00
Victor Stinner
91f9bdd773
Issue #18238 : Skip test_signal.test_sigwaitinfo_interrupted() on AIX
...
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.
2013-06-17 21:51:56 +02:00
Victor Stinner
934676afba
regrtest.py: Fix another typo in the usage of the faulthandler module
2013-06-17 20:35:08 +02:00
Victor Stinner
4de701b728
regrtest.py: Fix typo in the usage of the faulthandler module
2013-06-17 20:27:10 +02:00
Serhiy Storchaka
c7bfe0e42e
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:34:41 +03:00
Serhiy Storchaka
8b56292079
Issue #18223 : Refactor test_tarfile.
...
* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.
and some other minor enhancements.
2013-06-17 15:38:50 +03:00
Brett Cannon
a269d821a1
merge
2013-06-16 19:07:16 -04:00
Brett Cannon
1d75382e81
Fix a misnaming of a method and an argument
2013-06-16 19:06:55 -04:00
Andrew Kuchling
c7b6c50f29
Describe 'surrogateescape' in the documentation.
...
Also, improve some docstring descriptions of the 'errors' parameter.
Closes #14015 .
2013-06-16 12:58:48 -04:00
Gregory P. Smith
b5461b9884
Prevent a possible double close of parent pipe fds when the subprocess
...
exec runs into an error. Prevent a regular multi-close of the /dev/null
fd when any of stdin, stdout and stderr was set to DEVNULL.
2013-06-15 18:04:26 -07:00
Andrew Kuchling
53e5ea7951
#18113 : Objects associated to a curses.panel object with set_userptr() were leaked.
...
Reported by Atsuo Ishimoto.
2013-06-15 14:04:04 -04:00
Brett Cannon
27bbfdbc4c
Drop some dead imports of imp
2013-06-15 13:37:12 -04:00
Serhiy Storchaka
31b1c8bbde
Add tests for issue #18183 .
2013-06-12 09:20:44 +03:00
Roger Serwy
f467521927
#18196 : Avoid displaying spurious SystemExit tracebacks.
2013-06-11 22:25:14 -05:00
Roger Serwy
036e84924a
#5492 : Avoid traceback when exiting IDLE caused by a race condition.
2013-06-11 22:13:17 -05:00
Roger Serwy
391f469681
#17511 : Keep IDLE find dialog open after clicking "Find Next".
...
Original patch by Sarah K.
2013-06-10 23:01:20 -05:00
Benjamin Peterson
7e30373126
remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value (see #18183 )
2013-06-10 09:19:46 -07:00
Richard Oudkerk
0e547b66dc
Issue #18174 : Fix fd leaks in tests.
2013-06-10 16:29:19 +01:00
Ronald Oussoren
a822d36675
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:36:28 +02:00
Serhiy Storchaka
6f50b810b7
Issue #16102 : Make uuid._netbios_getnode() work again on Python 3.
2013-06-09 21:08:05 +03:00
Serhiy Storchaka
3af14aaba5
Issue #18038 : SyntaxError raised during compilation sources with illegal
...
encoding now always contains an encoding name.
2013-06-09 16:51:52 +03:00
Ezio Melotti
28b0d9d13e
#17691 : test_univnewlines now works with unittest test discovery. Patch by Zachary Ware.
2013-06-09 00:07:06 +03:00
Terry Jan Reedy
ba6c0d3b08
#18151 , part 1: Backport idlelilb portion of Andrew Svetlov's 3.4 patch
...
changing IOError to OSError (#16715 ).
2013-06-08 00:22:45 -04:00
Brett Cannon
50793b4438
Issue #18055 : Move to importlib from imp for IDLE.
2013-06-07 13:17:48 -04:00
Terry Jan Reedy
b101435afa
Issue 18130: delete extra spaces
2013-06-05 14:36:33 -04:00
Terry Jan Reedy
247bd5ea30
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:22:26 -04:00
Senthil Kumaran
caa00fec19
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:47 -07:00
Senthil Kumaran
dcdadfe39a
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:12:17 -07:00
Senthil Kumaran
4e42ae81f6
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:27:06 -07:00
Serhiy Storchaka
7d15b54f37
Issue #18094 : test_uuid no more reports skipped tests as passed.
2013-05-31 22:31:02 +03:00
Stefan Krah
891ca9e06a
Backport bff16086f03b and bcaaaa00425b.
2013-05-29 19:14:17 +02:00
Stefan Krah
6edda14b29
Issue #17768 : Support newline fill character in decimal.py and NUL fill
...
character in _decimal.c.
2013-05-29 15:45:38 +02:00
Senthil Kumaran
c70a6ae49b
#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:54:31 -07:00
Terry Jan Reedy
eb4c9c77b8
Issue #15392 : Do not run tests if threading/_thread not available. Otherwise
...
touchup test_idle. Rename README.txt.
2013-05-28 22:21:53 -04:00
Ned Deily
97345680dc
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 3.2.3 and inadvertently dropped in 3.3.0.
2013-05-28 16:35:30 -07:00
Serhiy Storchaka
37a79a12d1
Issue #18025 : Fixed a segfault in io.BufferedIOBase.readinto() when raw
...
stream's read() returns more bytes than requested.
2013-05-28 16:24:45 +03:00
Serhiy Storchaka
12516e2c1b
Issue #17746 : Skip test_shutil.test_non_matching_mode when run as root or
...
on unsuitable platform/environment.
2013-05-28 15:50:15 +03:00
Serhiy Storchaka
ea2b490f3d
Issue #18011 : base64.b32decode() now raises a binascii.Error if there are
...
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
2013-05-28 15:27:29 +03:00
Jason R. Coombs
b501b565c6
Use simple call to os.symlink for broken link (intended for previous commit)
2013-05-27 23:52:43 -04:00
Jason R. Coombs
3a09286790
Issue #13772 : Restored directory detection of targets in `os.symlink` on Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
2013-05-27 23:21:28 -04:00
Terry Jan Reedy
db4e5c53c9
Issue #15392 : Create a unittest framework for IDLE.
...
Preliminary patch by Rajagopalasarma Jayakrishnan.
2013-05-27 21:32:03 -04:00
Antoine Pitrou
80bc00f582
Issue #18063 : fix some struct specifications in the tests for sys.getsizeof().
2013-05-25 23:47:29 +02:00
Eli Bendersky
4ace240fe5
Clean-up duplicated code in tests
2013-05-25 07:12:14 -07:00
Eli Bendersky
6dc32b34dd
Issue #13612 : handle unknown encodings without a buffer overflow.
...
This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new
function - DefaultUnknownEncodingHandler.
Based on a patch by Serhiy Storchaka.
2013-05-25 05:25:48 -07:00
Antoine Pitrou
6b5a38c728
Fix test_bad_address on Ubuntu 13.04
2013-05-25 13:08:13 +02:00
Ronald Oussoren
27a4ac535f
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:47:37 +02:00
Ned Deily
7f0882c920
Issue #17532 : Always include Options menu for IDLE on OS X.
...
Patch by Guilherme Simões.
2013-05-22 15:19:40 -07:00
Benjamin Peterson
6724612755
add test for inequality
2013-05-22 13:27:25 -07:00
Serhiy Storchaka
66d53fa9ad
Issue #16986 : ElementTree now correctly parses a string input not only when
...
an internal XML encoding is UTF-8 or US-ASCII.
2013-05-22 17:07:51 +03:00
Roger Serwy
caf3024fa6
#14146 : Highlight source line while debugging on Windows.
2013-05-20 22:13:39 -05:00
Vinay Sajip
bfc8f26ec2
Issue #17743 : Now use extended syntax of set command in .bat files.
2013-05-20 15:38:12 -07:00
Vinay Sajip
e254751a63
Issue #17744 : Now unset VIRTUAL_ENV environment variable when deactivating.
2013-05-20 15:28:52 -07:00
Benjamin Peterson
611d901289
add recursive repr test
2013-05-19 19:39:38 -07:00
Antoine Pitrou
dc49b2b88c
Try to make test more reliable (saw some sporadic failures on buildbots)
2013-05-19 15:55:40 +02:00
Antoine Pitrou
916fc7bf28
Issue #11995 : test_pydoc doesn't import all sys.path modules anymore.
2013-05-19 15:44:54 +02:00
Serhiy Storchaka
2c3f2f19df
Issue #17812 : Fixed quadratic complexity of base64.b32encode().
2013-05-19 11:41:15 +03:00
Eli Bendersky
08231a9c6a
Issue #17901 : fix TreeBuilder construction for an explicit element_factory=None
...
Based on report and patch by Aaron Oakley.
2013-05-18 15:47:16 -07:00
Richard Oudkerk
90a24270f8
Close file before reopening to keep Windows happy in test_sax.
2013-05-18 18:11:30 +01:00
Antoine Pitrou
636f93c63b
Issue #17980 : Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
2013-05-18 17:56:42 +02:00
Raymond Hettinger
587d3bf78a
Update docstring for _asdict() to indicate it is obsolete.
...
Use the cleaner looking @property style for __dict__.
Move _replace() to be just after make() to indicate that
it is a core method on named tuples.
2013-05-17 16:43:14 -07:00
Benjamin Peterson
d2b58a9880
only recursively expand in the format spec ( closes #17644 )
2013-05-17 17:34:30 -05:00
Raymond Hettinger
b37706f306
Remove unnecessary exception handler.
2013-05-17 02:28:33 -07:00
Vinay Sajip
862b15e7d0
Issue #17981 : Closed socket on error in SysLogHandler.
2013-05-16 22:57:02 +01:00