Get rid of buffer() in test_ctypes: backport the 3.x tests.
........
r79295 | florent.xicluna | 2010-03-22 17:07:38 +0100 (lun, 22 mar 2010) | 3 lines
Issue #7703: ctypes supports both buffer() and memoryview(). The former is deprecated.
Complement of r79288.
........
r79296 | florent.xicluna | 2010-03-22 17:36:51 +0100 (lun, 22 mar 2010) | 3 lines
Preserve backward compatibility of the ctypes module.
"This file should be kept compatible with Python 2.3, see PEP 291."
........
r79334 | florent.xicluna | 2010-03-23 12:07:54 +0100 (mar, 23 mar 2010) | 2 lines
Skip test_format_deprecation if _ctypes is not available. Add a filter to the warning check.
........
r79378 | florent.xicluna | 2010-03-24 18:32:58 +0100 (mer, 24 mar 2010) | 3 lines
Skip test_ascii_formatd if _ctypes is not available (BSD, ...).
Previous change was incomplete (r79334).
........
................
Florent Xicluna [Sun, 28 Mar 2010 11:38:06 +0000 (11:38 +0000)]
Blocked revisions 78510,78583,78607,78654-78655,78663,78672,78674,78676,78702,78705,78723-78725,78727,78733,78792,78795-78797,78801,78829,78831,78834,78929,78942,78945,78961,79033,79050,79062,79065,79083,79088,79093-79094,79102,79128,79145,79209,79473 via svnmerge
Clean test_subprocess: use assertRaises, skipIf, skipUnless helpers and a custom helper assertStderrEqual.
........
r78509 | florent.xicluna | 2010-02-27 22:15:27 +0100 (sam, 27 fév 2010) | 2 lines
Fix an oversight in r78508: p.wait() should be compared to 0
........
................
r78583 | florent.xicluna | 2010-03-02 17:06:24 +0100 (mar, 02 mar 2010) | 9 lines
Recorded merge of revisions 78582 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Tentatively enable test_pep277 on all platforms.
........
r78594 | florent.xicluna | 2010-03-02 23:34:11 +0100 (mar, 02 mar 2010) | 2 lines
Test test_pep277 is only relevant for Unicode-friendly filesystems.
........
r78606 | florent.xicluna | 2010-03-03 00:56:38 +0100 (mer, 03 mar 2010) | 2 lines
#7805: wait until all workers are started before collecting their PIDs
........
................
r78655 | florent.xicluna | 2010-03-04 17:10:55 +0100 (jeu, 04 mar 2010) | 2 lines
Missing part from r78654
................
r78663 | florent.xicluna | 2010-03-04 22:50:56 +0100 (jeu, 04 mar 2010) | 16 lines
Merged revisions 78661-78662 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Workaround #3137: Retry SIGINT if it is not received the first time.
test_send_signal should not hang anymore on various Linux distributions.
........
................
r78674 | florent.xicluna | 2010-03-05 02:07:40 +0100 (ven, 05 mar 2010) | 2 lines
Remove some debug line...
................
r78676 | florent.xicluna | 2010-03-05 02:18:04 +0100 (ven, 05 mar 2010) | 9 lines
Merged revisions 78673 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
#2777: Apply same recipe for test_terminate and test_kill, i.e. close or redirect fds.
........
................
r78723 | florent.xicluna | 2010-03-06 12:43:55 +0100 (sam, 06 mar 2010) | 14 lines
Merged revisions 78719-78720 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Keep the test files in the ./build/ subdirectory, if Python is not installed.
Remove two hacks which are no longer needed after #7712, because all __file__ attributes are absolute.
........
r78720 | florent.xicluna | 2010-03-06 10:11:55 +0100 (sam, 06 mar 2010) | 2 lines
Print platform information to stdout, to help troubleshooting platform-specific failures.
........
................
r78724 | florent.xicluna | 2010-03-06 12:52:51 +0100 (sam, 06 mar 2010) | 9 lines
Merged revisions 78721 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
#2777: Apply same recipe on win32, i.e. do not inherit file handles.
........
................
r78725 | florent.xicluna | 2010-03-06 15:04:16 +0100 (sam, 06 mar 2010) | 2 lines
Fix test_pydoc when sys.modules["test"] is first imported using importlib.import_module.
................
r78727 | florent.xicluna | 2010-03-06 15:43:34 +0100 (sam, 06 mar 2010) | 2 lines
Fix TypeError on usage() when using regrtest switches which are not compatible.
................
r78733 | florent.xicluna | 2010-03-06 18:34:48 +0100 (sam, 06 mar 2010) | 9 lines
Merged revisions 78732 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Do not print the header lines when running a single test.
........
................
r78792 | florent.xicluna | 2010-03-08 13:24:53 +0100 (lun, 08 mar 2010) | 13 lines
Merged revisions 78734-78735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Create test_genericpath.CommonTest and reuse it to test other path modules.
........
r78735 | florent.xicluna | 2010-03-06 19:52:52 +0100 (sam, 06 mar 2010) | 2 lines
Minor tweaking of previous r78734, and add a NEWS entry.
........
................
r78795 | florent.xicluna | 2010-03-08 13:42:20 +0100 (lun, 08 mar 2010) | 2 lines
Merge other tests from test_*path.py into test_genericpath.CommonTest, and do some cleanup.
................
r78796 | florent.xicluna | 2010-03-08 13:47:44 +0100 (lun, 08 mar 2010) | 2 lines
Fix string-> bytes conversion on backport from 2.x.
................
r78797 | florent.xicluna | 2010-03-08 14:27:26 +0100 (lun, 08 mar 2010) | 30 lines
Merged revisions 78736,78759,78761,78767,78788-78789 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Skip test_send_signal, test_kill, test_terminate on win32 platforms, for 2.7a4 release.
........
r78759 | florent.xicluna | 2010-03-07 13:21:36 +0100 (dim, 07 mar 2010) | 2 lines
#2777: Enable test_send_signal, test_terminate and test_kill on win32 platforms.
........
r78761 | florent.xicluna | 2010-03-07 16:27:39 +0100 (dim, 07 mar 2010) | 4 lines
Do not fail if returncode is 0 on send_signal/kill/terminate, for win32 platforms.
Do not hide the KeyboardInterrupt on POSIX platforms.
........
r78767 | florent.xicluna | 2010-03-07 18:12:23 +0100 (dim, 07 mar 2010) | 2 lines
#2777: Try hard to make Win7 buildbot happy...
........
r78788 | florent.xicluna | 2010-03-08 11:58:12 +0100 (lun, 08 mar 2010) | 2 lines
Fix syntax: "rc != None" -> "rc is not None"
........
r78789 | florent.xicluna | 2010-03-08 11:59:33 +0100 (lun, 08 mar 2010) | 2 lines
Replace the stderr logging with assertNotEqual(returncode, 0).
........
................
r78801 | florent.xicluna | 2010-03-08 16:34:35 +0100 (lun, 08 mar 2010) | 11 lines
Backport the tests only.
Merged revisions 78800 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Fix the test_subprocess failure when sys.executable is meaningless: '' or a directory.
It does not fix #7774.
........
................
r78834 | florent.xicluna | 2010-03-11 02:53:10 +0100 (jeu, 11 mar 2010) | 9 lines
Merged revisions 78833 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Fix some py3k warnings in the standard library.
........
r78758 | florent.xicluna | 2010-03-07 13:18:33 +0100 (dim, 07 mar 2010) | 4 lines
Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are
effectively raised. A new utility ``check_py3k_warnings`` deals with py3k warnings.
........
r78769 | florent.xicluna | 2010-03-07 20:14:12 +0100 (dim, 07 mar 2010) | 2 lines
Refresh the documentation for the test.test_support module.
........
r78815 | florent.xicluna | 2010-03-09 20:57:01 +0100 (mar, 09 mar 2010) | 2 lines
#7772: Fix test_py3kwarn. Now the test suite could pass with "-3" flag.
........
................
r78942 | florent.xicluna | 2010-03-14 00:24:31 +0100 (dim, 14 mar 2010) | 30 lines
Merged revisions 78838-78839,78917,78919,78934,78937 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Issue #6472: The xml.etree package is updated to ElementTree 1.3. The cElementTree module is updated too.
........
r78839 | florent.xicluna | 2010-03-11 16:55:11 +0100 (jeu, 11 mar 2010) | 2 lines
Fix repr of tree Element on windows.
........
r78917 | florent.xicluna | 2010-03-13 12:18:49 +0100 (sam, 13 mar 2010) | 2 lines
Move the xml test data to their own directory.
........
r78919 | florent.xicluna | 2010-03-13 13:41:48 +0100 (sam, 13 mar 2010) | 2 lines
Do not chdir when running test_xml_etree, and enhance the findfile helper.
........
r78934 | florent.xicluna | 2010-03-13 18:56:19 +0100 (sam, 13 mar 2010) | 2 lines
Update some parts of the xml.etree documentation.
........
r78937 | florent.xicluna | 2010-03-13 21:30:15 +0100 (sam, 13 mar 2010) | 3 lines
Add the keyword argument "method=None" to the .write() method and the tostring/tostringlist functions.
Update the function, class and method signatures, according to the new convention.
........
................
r78945 | florent.xicluna | 2010-03-14 02:28:07 +0100 (dim, 14 mar 2010) | 9 lines
Merged revisions 78944 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Minor documentation updates for xml.etree.
........
................
r78961 | florent.xicluna | 2010-03-14 13:31:06 +0100 (dim, 14 mar 2010) | 2 lines
Fix an oversight in r78946 which causes failure in the subprocess module on Windows.
................
r79033 | florent.xicluna | 2010-03-17 21:29:51 +0100 (mer, 17 mar 2010) | 17 lines
Merged revisions 79030-79032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Cleanup in test_import and test_coding.
........
r79031 | florent.xicluna | 2010-03-17 20:15:56 +0100 (mer, 17 mar 2010) | 2 lines
Cleanup some test cases using check_warnings and check_py3k_warnings.
........
r79032 | florent.xicluna | 2010-03-17 21:05:11 +0100 (mer, 17 mar 2010) | 2 lines
Fix and check cgi module deprecation warnings. Revert an unwanted rename in test_import.
........
................
r79050 | florent.xicluna | 2010-03-18 21:00:57 +0100 (jeu, 18 mar 2010) | 9 lines
Merged revisions 79049 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Fix bad unicodedata checksum merge from trunk in r79062
................
r79088 | florent.xicluna | 2010-03-19 02:17:46 +0100 (ven, 19 mar 2010) | 2 lines
Revert Unicode UCD 5.2 upgrade in 3.x. It broke repr() for unicode objects, and gave failures in test_bigmem. Revert 79062, 79065 and 79083.
................
r79093 | florent.xicluna | 2010-03-19 14:37:08 +0100 (ven, 19 mar 2010) | 11 lines
Fixed a failure in test_bigmem.
Merged revision 79059 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Remove py3k deprecation warnings from these Unicode tools.
........
r78986 | florent.xicluna | 2010-03-15 19:08:58 +0100 (lun, 15 mar 2010) | 3 lines
Issue #7783 and #7787: open_urlresource invalidates the outdated files from the local cache.
Use this feature to fix test_normalization.
........
................
r79102 | florent.xicluna | 2010-03-19 20:00:44 +0100 (ven, 19 mar 2010) | 9 lines
Merged revisions 79100 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
#8180: Fix test_pep277 on OS X and add more tests for special Unicode normalization cases.
........
................
r79473 | florent.xicluna | 2010-03-27 23:47:23 +0100 (sam, 27 mar 2010) | 17 lines
Merged revisions 79344,79346,79350 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
The standard error should be empty when the signal is killed, except on SIGINT.
........
r79350 | florent.xicluna | 2010-03-23 20:19:16 +0100 (mar, 23 mar 2010) | 2 lines
The SIGINT signal may happen earlier, during site.py initialization.
........
................
Restore the orginal filesystem encoding before testing
assertRaises(LookupError, sys.setfilesystemencoding, "xxx"). Unittest formats
the exception, but the formatting failed because the file system was invalid
(set to iso-8859-1 by the previous test).
Anyway, ensure to restore the original filesystem encoding when exiting
test_setfilesystemencoding() to avoid error propagation to the other tests.
........
Issue #8211: Save/restore CFLAGS around AC_PROG_CC in configure.in, compiler
optimizations are disabled when --with-pydebug is used.
........
................
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.
........
................
Issue #8139: ossaudiodev didn't initialize its types properly, therefore
some methods (such as oss_mixer_device.fileno()) were not available.
Initial patch by Bertrand Janin.
........
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.
........
................
Issue #4282: Fix the main function of the profile module for a non-ASCII
script, open the file in binary mode and not in text mode with the default
(utf8) encoding.
........
Issue #3137: Don't ignore errors at startup, especially a keyboard interrupt
(SIGINT). If an error occurs while importing the site module, the error is
printed and Python exits. Initialize the GIL before importing the site
module.
........
................
py3k was already patched by issue #3661.
........
................
r78871 | victor.stinner | 2010-03-12 15:31:06 +0100 (ven., 12 mars 2010) | 8 lines
Blocked revisions 78870 via svnmerge
........
r78870 | victor.stinner | 2010-03-12 15:30:26 +0100 (ven., 12 mars 2010) | 1 line
NEWS: issue #7774 is related to Library (sys), not Core and Builtins
........
................
r78873 | victor.stinner | 2010-03-12 15:47:28 +0100 (ven., 12 mars 2010) | 10 lines
Issue #7774: Set sys.executable to an empty string if argv[0] has been
set to an non existent program name and Python is unable to retrieve the real
program name.
Fix also sysconfig: if sys.executable is an empty string, use the current
working directory.
........
r78836 | victor.stinner | 2010-03-11 14:27:35 +0100 (jeu., 11 mars 2010) | 4 lines
Fix test_executable introduce in previous commit (r78835): Windows is able to
retrieve the absolute Python path even if argv[0] has been set to a non
existent program name.
........
r78837 | victor.stinner | 2010-03-11 14:46:06 +0100 (jeu., 11 mars 2010) | 3 lines
Another fix to test_executable() of test_sys: set the current working to avoid
the #7774 bug.
........
................
r78869 | victor.stinner | 2010-03-12 15:27:16 +0100 (ven., 12 mars 2010) | 2 lines
Oops, I loose the NEWS change in my previous backport (r78868) of r78835.
................
sqlite3: Fix a segfault on calling a connection with something else than a
string. Initialize all attributes to be able to call the statement destructor
on error.
Avoid also a duplicate connection in some tests: setUp() does already open a
connection (":memory:").
........
................
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.
........
................
Ezio Melotti [Sat, 6 Mar 2010 03:09:26 +0000 (03:09 +0000)]
Merged revisions 78689,78696-78697,78708,78711 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r78689 | ezio.melotti | 2010-03-05 14:43:17 +0200 (Fri, 05 Mar 2010) | 1 line
This fixes a missing .lower() on the encoding name, a wrong byte undecodable by UTF-8, a wrong variable name, hopefully some windows buildbot on 3.x and adds a proper skip. It might break other things though.
........
r78696 | ezio.melotti | 2010-03-05 17:08:19 +0200 (Fri, 05 Mar 2010) | 1 line
r78689 enabled the test on more platforms but the buildbot did not like it. Using the filesystem encoding might work better. Also see #5604.
........
r78697 | ezio.melotti | 2010-03-05 17:17:26 +0200 (Fri, 05 Mar 2010) | 1 line
sys.getdefaultencoding() can return None.
........
r78708 | ezio.melotti | 2010-03-06 03:20:49 +0200 (Sat, 06 Mar 2010) | 1 line
Cleanup and minor fixes.
........
r78711 | ezio.melotti | 2010-03-06 03:50:25 +0200 (Sat, 06 Mar 2010) | 1 line
The test was failing because the curdir was missing from sys.path. This should fix the problem.
........
Issue #7494: fix a crash in _lsprof (cProfile) after clearing the profiler,
reset also the pointer to the current pointer context.
........
................
Issue #2973: Fix gcc warning on the 2nd argument of ASN1_item_d2i() and
method->d2i(): OpenSSL API changed in OpenSSL 0.9.6m. Patch written by Daniel
Black.
........
................
Initial commit of the argparse library, based on argparse 1.1.
Docs still need some updating to make getopt and optparse match the wording promised in the PEP.
There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.
........
................
Barry Warsaw [Mon, 1 Mar 2010 21:56:18 +0000 (21:56 +0000)]
Manually copy patch for bug 7250 from the release26-maint branch. I suck
because I did this in the wrong order and couldn't smack svnmerge into
submission.
Merged revisions 78515-78516,78522 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78515 | georg.brandl | 2010-02-28 20:19:17 +0200 (Sun, 28 Feb 2010) | 1 line
#8030: make builtin type docstrings more consistent: use "iterable" instead of "seq(uence)", use "new" to show that set() always returns a new object.
........
r78516 | georg.brandl | 2010-02-28 20:26:37 +0200 (Sun, 28 Feb 2010) | 1 line
The set types can also be called without arguments.
........
r78522 | ezio.melotti | 2010-03-01 01:59:00 +0200 (Mon, 01 Mar 2010) | 1 line
#8030: more docstring fix for builtin types.
........
................
Issue #7481: When a threading.Thread failed to start it would leave the
instance stuck in initial state and present in threading.enumerate().
........
................