Commit Graph

15227 Commits

Author SHA1 Message Date
Ezio Melotti ef4909643d #7092: silence more -3 and -Wd warnings 2010-01-31 11:46:54 +00:00
Martin v. Löwis a8e34b707c Merged revisions 77419,77435 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r77419 | benjamin.peterson | 2010-01-10 21:39:48 +0100 (So, 10 Jan 2010) | 1 line

  enclose path in quotes to handle paths with spaces correctly #7666
........
  r77435 | alexandre.vassalotti | 2010-01-12 01:36:54 +0100 (Di, 12 Jan 2010) | 2 lines

  Issue #1967: Add fixer for dictionary views.
........
2010-01-30 10:56:23 +00:00
Ezio Melotti a2d4653740 #7092: silence py3k warnings for deprecated modules 2010-01-30 07:22:54 +00:00
R. David Murray 05b4171624 Fix typo in assertSequenceEqual docstring. 2010-01-29 19:35:39 +00:00
Mark Dickinson 36ecd676ea Issue #7788: Fix a crash produced by deleting a list slice with huge
step value.  Patch by Marcin Bachry.
2010-01-29 17:11:39 +00:00
R. David Murray b5d7400e8a Change error report when the object passed to suite.addTest is not
callable to include the repr of the invalid object.
2010-01-28 21:16:33 +00:00
Benjamin Peterson 11fab6c07d avoid a py3k warning from __hash__ 2010-01-28 02:18:25 +00:00
Ezio Melotti 4611b05bd8 avoid to use zlib when the compress type is not ZIP_DEFLATED 2010-01-28 01:41:30 +00:00
Antoine Pitrou 94c33ebfa8 Issue #7610: Reworked implementation of the internal
:class:`zipfile.ZipExtFile` class used to represent files stored inside
an archive.  The new implementation is significantly faster and can
be wrapped in a :class:`io.BufferedReader` object for more speedups.
It also solves an issue where interleaved calls to `read()` and
`readline()` give wrong results.  Patch by Nir Aides.
2010-01-27 20:59:50 +00:00
Jesse Noller 654ade3e6a Issue #6963: Added maxtasksperchild argument to multiprocessing.Pool 2010-01-27 03:05:57 +00:00
Benjamin Peterson 2deb5c758a raise a clear TypeError when trying to register a non-class 2010-01-27 02:16:42 +00:00
Benjamin Peterson 17527bedad for UserDict to be compatible with abcs, it must subclass object 2010-01-27 02:15:28 +00:00
Eric Smith 74c2577497 Added named (but not numbered) attributes to sys.getwindowsversion() test. 2010-01-27 02:06:25 +00:00
Eric Smith 59529e1ef6 Switch to test_support.get_attribute. 2010-01-27 01:21:15 +00:00
Eric Smith 514e77e0ae Removed unneeded test. 2010-01-27 00:58:43 +00:00
Eric Smith ee931b7253 Issue #7766: Change sys.getwindowsversion() return value to a named tuple and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type. 2010-01-27 00:28:29 +00:00
Tarek Ziadé 92e68af56a added local get_platform/set_platform APIs in distutils.sysconfig 2010-01-26 22:46:15 +00:00
Tarek Ziadé 0276c7ad0b reintroduced the names in Distutils for APIs that were relocated 2010-01-26 21:21:54 +00:00
Tarek Ziadé b28e5d7e41 fixed bdist_msi imports and added a test module for distutils.command.bdist_msi 2010-01-26 17:20:37 +00:00
Ezio Melotti ffd849618a #7092: fix DeprecationWarnings for json when the tests are run with -3 -Wd. 2010-01-26 15:57:21 +00:00
Tarek Ziadé ef97caf111 switched the call order so this call works without suffering from issue #7774 2010-01-25 23:19:56 +00:00
Benjamin Peterson 28e369a8f8 compare types with is not == 2010-01-25 03:58:21 +00:00
Benjamin Peterson a617e208fc mention from_float() in error message 2010-01-25 03:52:52 +00:00
Benjamin Peterson a43f34cc2a fix an UnboundLocalError when the release file is empty #7773 2010-01-25 03:31:13 +00:00
Ezio Melotti aab2401977 #7269: fix failures in test_bsddb3. Patch by Florent Xicluna. 2010-01-24 21:47:59 +00:00
Ezio Melotti 469a05fe46 remove archaic functions from test_support 2010-01-24 20:48:35 +00:00
Ezio Melotti b0f5adc3f4 use assert[Not]IsInstance where appropriate 2010-01-24 16:58:36 +00:00
Tarek Ziadé f14c7fc33d Fixed #7748: now upload and register commands don't need to force the encoding anymore : DistributionMetada returns utf8 strings 2010-01-24 00:33:32 +00:00
Ezio Melotti aa98058cc4 use assert[Not]In where appropriate 2010-01-23 23:04:36 +00:00
Tarek Ziadé c64614e043 fixed the 64bits tests for get_platform() - mac osx 2010-01-23 17:52:57 +00:00
Ezio Melotti 0e4e73240a Increased the overflow value on test_dealloc to make sure that it is big enough even for wide builds. 2010-01-23 10:43:05 +00:00
Tarek Ziadé 5633a8048f taking sysconfig out of distutils 2010-01-23 09:23:15 +00:00
Ezio Melotti f8a9402c97 This should fix the failure introduced in r77680. The error message is now different and it caused the test to fail. The failing test is not present in 2.5 so it is failing only on 2.6 and newer versions. 2010-01-22 16:58:28 +00:00
Mark Dickinson a3112d1462 Use // for floor division. 2010-01-21 19:58:41 +00:00
Mark Dickinson 5a633488d4 Add two more test_strtod test values. 2010-01-21 18:32:27 +00:00
Mark Dickinson 294d6acb89 Additional testcases for strtod. 2010-01-21 17:02:53 +00:00
Mark Dickinson 4141d65fb7 Various dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing code
and exit points.  2. Simplify bigcomp comparison loop.  3. Don't set
ERANGE on _Py_dg_strtod underflow (it was set inconsistently anyway).
4. Remove unused dsign field from BCinfo struct.
2010-01-20 17:36:31 +00:00
Gregory P. Smith 8926108bfb Revert debugprint code in r77607. 2010-01-19 08:25:26 +00:00
Gregory P. Smith 8f6f42621a Add a pydebug mode only debug print to help debug the errors in
http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/

Will be removed shortly.
2010-01-19 08:01:00 +00:00
Benjamin Peterson 9179dab3f4 data descriptors do not override the class dictionary if __get__ is not defined
Adjust documentation and add a test to verify this behavior.

See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for
discussion.
2010-01-18 23:07:56 +00:00
Ezio Melotti b01f5e6f84 #7730: remove spaces after functions names 2010-01-18 09:10:26 +00:00
Antoine Pitrou e80a6a4ead Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)
could crash in many places because of the PyByteArray_AS_STRING() macro
returning NULL.  The macro now returns a statically allocated empty
string instead.
2010-01-17 12:26:20 +00:00
Mark Dickinson ab6ee7a042 Increase number of strtod tests slightly, to make it more likely that a memory leak is detected. 2010-01-17 11:10:03 +00:00
Mark Dickinson d87f22cec8 Add better error reporting for MemoryErrors caused by str->float conversions. 2010-01-16 20:33:02 +00:00
Mark Dickinson 811ff822f8 Issue #7632: Fix one more case of incorrect rounding for str -> float
conversion (see bug 5 in the issue tracker).
2010-01-16 17:57:49 +00:00
Antoine Pitrou db983a7c38 Followup to #7703: a2b_hqx() didn't follow the new buffer API (neither in trunk
nor in py3k).  Patch by Florent Xicluna as well as additional tests.
2010-01-16 17:45:56 +00:00
R. David Murray c755dba906 Fix issue number in comment. 2010-01-16 16:08:32 +00:00
Mark Dickinson 476279f18b Issue #7632: Fix a serious wrong output bug for string -> float conversion.
Also remove some now unused variables, and add comments clarifying the
possible outputs of the parsing section of _Py_dg_strtod.  Thanks
Eric Smith for reviewing.
2010-01-16 10:44:00 +00:00
R. David Murray ed44dfa4c7 Issue #1670765: Prevent email.generator.Generator from re-wrapping
headers in multipart/signed MIME parts, which fixes one of the sources of
invalid modifications to such parts by Generator.  Patch and tests by
Martin von Gagern.
2010-01-16 05:15:17 +00:00
Benjamin Peterson 667dc19130 try to fix for windows 2010-01-15 02:26:07 +00:00