Terry Jan Reedy [Sat, 29 Jun 2013 03:50:12 +0000 (23:50 -0400)]
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.
Terry Jan Reedy [Fri, 28 Jun 2013 22:59:28 +0000 (18:59 -0400)]
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.
R David Murray [Thu, 27 Jun 2013 22:37:00 +0000 (18:37 -0400)]
#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.
Victor Stinner [Mon, 24 Jun 2013 22:42:31 +0000 (00:42 +0200)]
Issue #18135: ssl.SSLSocket.write() now raises an OverflowError if the input
string in longer than 2 gigabytes, and ssl.SSLContext.load_cert_chain() raises
a ValueError if the password is longer than 2 gigabytes. The ssl module does
not support partial write.
Victor Stinner [Sun, 23 Jun 2013 13:08:23 +0000 (15:08 +0200)]
Issue #18135: Fix a possible integer overflow in ssl.SSLSocket.write()
and in ssl.SSLContext.load_cert_chain() for strings and passwords longer
than 2 gigabytes.
Terry Jan Reedy [Sat, 22 Jun 2013 22:26:51 +0000 (18:26 -0400)]
#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.
Serhiy Storchaka [Mon, 17 Jun 2013 12:38:50 +0000 (15:38 +0300)]
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.
Gregory P. Smith [Sun, 16 Jun 2013 01:04:26 +0000 (18:04 -0700)]
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.
Terry Jan Reedy [Wed, 5 Jun 2013 18:22:26 +0000 (14:22 -0400)]
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.
Victor Stinner [Mon, 3 Jun 2013 20:07:27 +0000 (22:07 +0200)]
Close #18109: os.uname() now decodes fields from the locale encoding, and
socket.gethostname() now decodes the hostname from the locale encoding, instead
of using the UTF-8 encoding in strict mode.
Senthil Kumaran [Sat, 1 Jun 2013 18:12:17 +0000 (11:12 -0700)]
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.
Senthil Kumaran [Sat, 1 Jun 2013 15:27:06 +0000 (08:27 -0700)]
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.
Senthil Kumaran [Wed, 29 May 2013 12:54:31 +0000 (05:54 -0700)]
#17403: urllib.parse.robotparser normalizes the urls before adding to ruleline.
This helps in handling certain types invalid urls in a conservative manner.
Ned Deily [Tue, 28 May 2013 23:35:30 +0000 (16:35 -0700)]
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.
Serhiy Storchaka [Tue, 28 May 2013 12:27:29 +0000 (15:27 +0300)]
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.
Jason R. Coombs [Tue, 28 May 2013 03:21:28 +0000 (23:21 -0400)]
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.