]>
granicus.if.org Git - python/log
Florent Xicluna [Mon, 22 Mar 2010 22:45:50 +0000 (22:45 +0000)]
#7667: Fix doctest failures with non-ASCII paths.
Benjamin Peterson [Mon, 22 Mar 2010 22:40:06 +0000 (22:40 +0000)]
Merged revisions 79077,79137,79304-79305 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r79077 | benjamin.peterson | 2010-03-18 18:05:29 -0500 (Thu, 18 Mar 2010) | 1 line
port detect_encoding improvements from py3k
........
r79137 | benjamin.peterson | 2010-03-20 11:12:53 -0500 (Sat, 20 Mar 2010) | 1 line
add a fixer for setting sys.exitfunc #2356
........
r79304 | benjamin.peterson | 2010-03-22 17:20:22 -0500 (Mon, 22 Mar 2010) | 1 line
fix test_parser when it's run in a path with spaces #7666
........
r79305 | benjamin.peterson | 2010-03-22 17:27:07 -0500 (Mon, 22 Mar 2010) | 1 line
normalize whitespace
........
Antoine Pitrou [Mon, 22 Mar 2010 19:59:46 +0000 (19:59 +0000)]
Issue #7512: shutil.copystat() could raise an OSError when the filesystem
didn't support chflags() (for example ZFS under FreeBSD). The error is
now silenced.
Florent Xicluna [Mon, 22 Mar 2010 17:18:18 +0000 (17:18 +0000)]
#7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes.
Florent Xicluna [Mon, 22 Mar 2010 16:36:51 +0000 (16:36 +0000)]
Preserve backward compatibility of the ctypes module.
"This file should be kept compatible with Python 2.3, see PEP 291."
Florent Xicluna [Mon, 22 Mar 2010 16:07:38 +0000 (16:07 +0000)]
Issue #7703: ctypes supports both buffer() and memoryview(). The former is deprecated.
Complement of r79288.
R. David Murray [Mon, 22 Mar 2010 15:55:09 +0000 (15:55 +0000)]
Issue #7860: platform.uname now reports the correct 'machine' type
when Python is running in WOW64 mode on 64 bit Windows. Patch by
Brian Curtin.
Vinay Sajip [Mon, 22 Mar 2010 15:29:01 +0000 (15:29 +0000)]
logging: Added getChild utility method to Logger and added isEnabledFor method to LoggerAdapter.
Jesus Cea [Mon, 22 Mar 2010 15:18:46 +0000 (15:18 +0000)]
Missing testsuite files
Florent Xicluna [Mon, 22 Mar 2010 15:02:46 +0000 (15:02 +0000)]
Get rid of buffer() in test_ctypes: backport the 3.x tests.
Antoine Pitrou [Mon, 22 Mar 2010 14:41:48 +0000 (14:41 +0000)]
Fix an occasional test_ftplib failure, following r79226.
Jesus Cea [Mon, 22 Mar 2010 14:22:26 +0000 (14:22 +0000)]
pybsddb 4.8.4 integration. Please, comment in issue #8156
Vinay Sajip [Mon, 22 Mar 2010 13:02:28 +0000 (13:02 +0000)]
Issue #8201: logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time.
Victor Stinner [Mon, 22 Mar 2010 12:36:28 +0000 (12:36 +0000)]
Fix the NEWS about my last commit: an unicode subclass can now override the
__unicode__ method (and not the __str__ method).
Simplify also the testcase.
Vinay Sajip [Mon, 22 Mar 2010 12:33:08 +0000 (12:33 +0000)]
Issue #8200: logging: Handle errors when multiprocessing is not fully loaded when logging occurs.
Victor Stinner [Mon, 22 Mar 2010 12:24:37 +0000 (12:24 +0000)]
Issue #
1583863 : An unicode subclass can now override the __str__ method
Michael Foord [Mon, 22 Mar 2010 02:49:08 +0000 (02:49 +0000)]
Correct usage message displayed for python -m unittest -h
Michael Foord [Mon, 22 Mar 2010 01:56:54 +0000 (01:56 +0000)]
expected failure should not trigger failfast behavior in unittest.
Michael Foord [Mon, 22 Mar 2010 01:41:11 +0000 (01:41 +0000)]
Removing Python 2.3 compatibility code from unittest.
Michael Foord [Mon, 22 Mar 2010 01:02:23 +0000 (01:02 +0000)]
Fix failing test committed by accident.
Michael Foord [Mon, 22 Mar 2010 01:01:34 +0000 (01:01 +0000)]
-f/--failfast command line option for unittest. Issue 8074. Documentation still needed. Plus minor change to test_unittest to allow it to be run with python -m test.unittest
Michael Foord [Mon, 22 Mar 2010 00:06:30 +0000 (00:06 +0000)]
Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest.
Benjamin Peterson [Sun, 21 Mar 2010 20:30:30 +0000 (20:30 +0000)]
take into account keyword arguments when passing too many args
Benjamin Peterson [Sun, 21 Mar 2010 20:21:00 +0000 (20:21 +0000)]
improve error message from passing inadequate number of keyword arguments #6474
Note this removes the "non-keyword" or "keyword" phrases from these messages.
Benjamin Peterson [Sun, 21 Mar 2010 19:56:37 +0000 (19:56 +0000)]
don't write duplicate tests
Benjamin Peterson [Sun, 21 Mar 2010 19:54:56 +0000 (19:54 +0000)]
fix import
Benjamin Peterson [Sun, 21 Mar 2010 19:39:52 +0000 (19:39 +0000)]
co_varnames is certainly a tuple, so let's not waste time finding out
Benjamin Peterson [Sun, 21 Mar 2010 19:35:39 +0000 (19:35 +0000)]
remove pointless condition
Antoine Pitrou [Sun, 21 Mar 2010 19:33:38 +0000 (19:33 +0000)]
Issue #3890: Fix recv() and recv_into() on non-blocking SSL sockets.
Benjamin Peterson [Sun, 21 Mar 2010 19:24:08 +0000 (19:24 +0000)]
flatten condition
Antoine Pitrou [Sun, 21 Mar 2010 19:19:41 +0000 (19:19 +0000)]
Issue #
1628484 : The Makefile doesn't ignore the CFLAGS environment
variable anymore. It also forwards the LDFLAGS settings to the linker
when building a shared library.
Georg Brandl [Sun, 21 Mar 2010 19:01:38 +0000 (19:01 +0000)]
Fix plural.
Andrew M. Kuchling [Sun, 21 Mar 2010 18:47:12 +0000 (18:47 +0000)]
Add items
Florent Xicluna [Sun, 21 Mar 2010 18:00:38 +0000 (18:00 +0000)]
#8180: Fix test_pep277 on OS X and add more tests for special Unicode normalization cases.
Benjamin Peterson [Sun, 21 Mar 2010 17:34:54 +0000 (17:34 +0000)]
rewrite a bit
Florent Xicluna [Sun, 21 Mar 2010 12:27:20 +0000 (12:27 +0000)]
Issue #8179: Fix macpath.realpath() on a non-existing path.
Florent Xicluna [Sun, 21 Mar 2010 11:58:11 +0000 (11:58 +0000)]
Use assertRaises and add a specific warning filter.
Georg Brandl [Sun, 21 Mar 2010 11:50:58 +0000 (11:50 +0000)]
Remove leftover word.
Florent Xicluna [Sun, 21 Mar 2010 11:50:17 +0000 (11:50 +0000)]
No more deprecation warnings for distutils.sysconfig, following r78666.
But when the "dl" module is available, it gives a py3k deprecation warning.
Florent Xicluna [Sun, 21 Mar 2010 11:03:21 +0000 (11:03 +0000)]
Silence some py3k SyntaxWarning using check_py3k_warnings() with "exec" statements.
Florent Xicluna [Sun, 21 Mar 2010 10:51:40 +0000 (10:51 +0000)]
Fix py3k warnings in test_decimal, using unittest.assertItemsEqual.
Florent Xicluna [Sun, 21 Mar 2010 10:50:44 +0000 (10:50 +0000)]
Silence more py3k warnings in unittest.case.
Georg Brandl [Sun, 21 Mar 2010 10:02:47 +0000 (10:02 +0000)]
Include structmember.h correctly.
Georg Brandl [Sun, 21 Mar 2010 09:58:36 +0000 (09:58 +0000)]
Update text for newest US DST regulation. The sample file already has the calculation right.
Georg Brandl [Sun, 21 Mar 2010 09:51:16 +0000 (09:51 +0000)]
Update os.kill() emulation example for Windows to use ctypes.
Georg Brandl [Sun, 21 Mar 2010 09:37:54 +0000 (09:37 +0000)]
Mention inefficiency of lists as queues, add link to collections.deque discussion.
Georg Brandl [Sun, 21 Mar 2010 09:28:16 +0000 (09:28 +0000)]
Clarify that for shell=True, the shell PID will be the child PID.
Georg Brandl [Sun, 21 Mar 2010 09:17:41 +0000 (09:17 +0000)]
Introduce copy by slicing, used in later chapters.
Georg Brandl [Sun, 21 Mar 2010 09:09:38 +0000 (09:09 +0000)]
Document that GzipFile supports iteration.
Georg Brandl [Sun, 21 Mar 2010 09:08:00 +0000 (09:08 +0000)]
Add a paragraph about set displays.
Georg Brandl [Sun, 21 Mar 2010 09:02:01 +0000 (09:02 +0000)]
Remove the "built-in objects" file. It only contained two paragraphs of which only one contained useful information, which belongs in the ref manual however.
Georg Brandl [Sun, 21 Mar 2010 09:01:27 +0000 (09:01 +0000)]
Fix some issues found by Jacques Ducasse on the docs list.
Florent Xicluna [Sun, 21 Mar 2010 01:14:24 +0000 (01:14 +0000)]
#7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper.
Michael Foord [Sun, 21 Mar 2010 00:55:58 +0000 (00:55 +0000)]
Change order of arguments in a unittest function.
Michael Foord [Sun, 21 Mar 2010 00:53:39 +0000 (00:53 +0000)]
A faulty load_tests in a test module no longer halts test discovery. A placeholder test, that reports the failure, is created instead.
Antoine Pitrou [Sun, 21 Mar 2010 00:21:43 +0000 (00:21 +0000)]
Fix overzealous .hgignore file
Florent Xicluna [Sat, 20 Mar 2010 22:26:42 +0000 (22:26 +0000)]
Cleanup test_tarfile, and use check_warnings.
Florent Xicluna [Sat, 20 Mar 2010 22:21:02 +0000 (22:21 +0000)]
Cleanup test_struct using check_warnings.
Benjamin Peterson [Sat, 20 Mar 2010 16:17:37 +0000 (16:17 +0000)]
wrap
Benjamin Peterson [Sat, 20 Mar 2010 16:16:44 +0000 (16:16 +0000)]
document exitfunc fixer
Michael Foord [Sat, 20 Mar 2010 03:00:34 +0000 (03:00 +0000)]
Issue 7832: renaming unittest.TestCase.assertSameElements to assertItemsEqual and changing behaviour
Florent Xicluna [Sat, 20 Mar 2010 00:17:46 +0000 (00:17 +0000)]
#8178 Cleanup the threads after test_thread.TestForkInThread.
Sean Reifscheider [Sat, 20 Mar 2010 00:05:42 +0000 (00:05 +0000)]
Fixing the file call in the rfc822.Message replacement example.
Sean Reifscheider [Fri, 19 Mar 2010 23:19:55 +0000 (23:19 +0000)]
Adding an example of reproducing the rfc822.Message() parsing.
Benjamin Peterson [Fri, 19 Mar 2010 20:39:41 +0000 (20:39 +0000)]
set svn:eol-style to native on C files
Thomas Heller [Fri, 19 Mar 2010 19:59:30 +0000 (19:59 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-79104" from
svn+ssh://pythondev@svn.python.org/python/branches/branch_libffi-3_0_10-win
Matthias Klose [Fri, 19 Mar 2010 18:59:20 +0000 (18:59 +0000)]
update libffi to commit
59a259f4d348f593b45f452309f4d020a28051c4 from the
trunk (adding msvc port).
Florent Xicluna [Fri, 19 Mar 2010 18:34:55 +0000 (18:34 +0000)]
Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown.
Matthias Klose [Fri, 19 Mar 2010 17:46:33 +0000 (17:46 +0000)]
Generate libffi's Makefiles again to be able to run the libffi testsuite
-- Diese und die folgenden Zeilen werden ignoriert --
M _ctypes/libffi/configure
M _ctypes/libffi/configure.ac
M _ctypes/libffi/aclocal.m4
M _ctypes/libffi.diff
Matthias Klose [Fri, 19 Mar 2010 14:45:06 +0000 (14:45 +0000)]
- Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.
Benjamin Peterson [Fri, 19 Mar 2010 01:06:33 +0000 (01:06 +0000)]
keep DeprecationWarning from failing test
Collin Winter [Fri, 19 Mar 2010 00:08:44 +0000 (00:08 +0000)]
Make python-config support multiple option flags on the same command line, rather than requiring one invocation per flag.
Collin Winter [Fri, 19 Mar 2010 00:00:30 +0000 (00:00 +0000)]
Add a separate python-config make target, useful for testing changes to Misc/python-config.in.
Benjamin Peterson [Thu, 18 Mar 2010 23:12:43 +0000 (23:12 +0000)]
make compiler's py3k warning a full deprecation warning #6837
Benjamin Peterson [Thu, 18 Mar 2010 22:55:46 +0000 (22:55 +0000)]
reignore bad_coding
Benjamin Peterson [Thu, 18 Mar 2010 22:44:54 +0000 (22:44 +0000)]
these lines can now be dispensed with
Collin Winter [Thu, 18 Mar 2010 21:54:01 +0000 (21:54 +0000)]
Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT.
Patch by Reid Kleckner!
Florent Xicluna [Thu, 18 Mar 2010 21:50:06 +0000 (21:50 +0000)]
Issue #8024: Update the Unicode database to 5.2
Benjamin Peterson [Thu, 18 Mar 2010 21:32:38 +0000 (21:32 +0000)]
install tkinter and ttk tests
Benjamin Peterson [Thu, 18 Mar 2010 21:30:48 +0000 (21:30 +0000)]
remove installation of deleted test/output dir
Benjamin Peterson [Thu, 18 Mar 2010 21:20:35 +0000 (21:20 +0000)]
don't try to compile anything in lib2to3/tests/data #8169
Florent Xicluna [Thu, 18 Mar 2010 19:51:47 +0000 (19:51 +0000)]
#8155: Preserve backward compatibility for test_support.check_warnings(). Add regression tests.
Senthil Kumaran [Thu, 18 Mar 2010 12:14:15 +0000 (12:14 +0000)]
Fix for Issue8135 - urllib.unquote to support mixed percent escapes
Collin Winter [Thu, 18 Mar 2010 00:10:34 +0000 (00:10 +0000)]
Make test_pwd more stable in the face of unusual LDAP/NIS/Kerberos deployments (the old test was flaky on Google buildslaves).
Antoine Pitrou [Wed, 17 Mar 2010 22:45:39 +0000 (22:45 +0000)]
Issue #8104: socket.recv_into() and socket.recvfrom_into() now support
writing into objects supporting the new buffer API, for example bytearrays
or memoryviews.
Collin Winter [Wed, 17 Mar 2010 22:36:26 +0000 (22:36 +0000)]
Fix a race condition in test_asynchat uncovered by the Unladen Swallow JIT.
Benjamin Peterson [Wed, 17 Mar 2010 20:41:42 +0000 (20:41 +0000)]
prevent lambda functions from having docstrings #8164
Florent Xicluna [Wed, 17 Mar 2010 20:05:11 +0000 (20:05 +0000)]
Fix and check cgi module deprecation warnings. Revert an unwanted rename in test_import.
Florent Xicluna [Wed, 17 Mar 2010 19:15:56 +0000 (19:15 +0000)]
Cleanup some test cases using check_warnings and check_py3k_warnings.
Florent Xicluna [Wed, 17 Mar 2010 19:05:04 +0000 (19:05 +0000)]
Cleanup in test_import and test_coding.
Collin Winter [Wed, 17 Mar 2010 17:36:16 +0000 (17:36 +0000)]
Avoid hardcoding refcounts in tests.
Vinay Sajip [Wed, 17 Mar 2010 15:05:57 +0000 (15:05 +0000)]
Issue #8162: logging: Clarified docstring and documentation for disable function.
Ezio Melotti [Wed, 17 Mar 2010 14:22:34 +0000 (14:22 +0000)]
Use "x in y" instead of y.find(x) != -1.
Ezio Melotti [Wed, 17 Mar 2010 13:52:48 +0000 (13:52 +0000)]
#7092: silence some more py3k warnings.
Collin Winter [Wed, 17 Mar 2010 03:04:01 +0000 (03:04 +0000)]
Delete unused import.
Collin Winter [Wed, 17 Mar 2010 02:40:12 +0000 (02:40 +0000)]
Style cleanup in test_import.
Collin Winter [Wed, 17 Mar 2010 02:02:30 +0000 (02:02 +0000)]
Fix a trivial class of (hypothetical, future) false-positive refleaks, discovered by an optimization in Unladen Swallow's past (which will become CPython's future).
Martin v. Löwis [Tue, 16 Mar 2010 18:49:28 +0000 (18:49 +0000)]
Integrate merge.py into msi.py.
Matthias Klose [Tue, 16 Mar 2010 10:48:52 +0000 (10:48 +0000)]
- Issue #4961: Inconsistent/wrong result of askyesno function in tkMessageBox
with Tcl/Tk-8.5.
Florent Xicluna [Mon, 15 Mar 2010 18:08:58 +0000 (18:08 +0000)]
Issue #7783 and #7787: open_urlresource invalidates the outdated files from the local cache.
Use this feature to fix test_normalization.