Mark Dickinson
40228912c8
Fix possible undefined behaviour from signed overflow in struct module.
...
Backport of revisions 81897, 81898 and 81902 from py3k.
2010-06-11 20:27:05 +00:00
Mark Dickinson
4a3acca7c1
Merged revisions 81897-81898,81902 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r81897 | mark.dickinson | 2010-06-11 17:56:34 +0100 (Fri, 11 Jun 2010) | 1 line
Avoid possible undefined behaviour from signed overflow.
........
r81898 | mark.dickinson | 2010-06-11 20:05:08 +0100 (Fri, 11 Jun 2010) | 1 line
Fix an incorrect return type.
........
r81902 | mark.dickinson | 2010-06-11 20:50:30 +0100 (Fri, 11 Jun 2010) | 1 line
Fix more undefined-behaviour inducing overflow checks in struct module.
........
2010-06-11 20:08:36 +00:00
Mark Dickinson
b72e6860d8
Fix more undefined-behaviour inducing overflow checks in struct module.
2010-06-11 19:50:30 +00:00
Mark Dickinson
ab4096f2f9
Avoid possible undefined behaviour from signed overflow.
2010-06-11 16:56:34 +00:00
Mark Dickinson
1c164a6f85
Fix typo in docstring.
2010-06-11 16:49:20 +00:00
Alexander Belopolsky
177e8530cb
Issue #3129 : Trailing digits in format string are no longer ignored.
2010-06-11 16:04:59 +00:00
Mark Dickinson
08ade6faa0
Issue #8188 : Comparisons between Decimal objects and other numeric
...
objects (Fraction, float, complex, int) now all function as expected.
2010-06-11 10:44:52 +00:00
Victor Stinner
1286d7f060
test_sys: add a test on the file system encoding for darwin
2010-06-11 00:41:41 +00:00
Michael Foord
2b293cf1a5
Merged revisions 81878 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81878 | michael.foord | 2010-06-10 21:40:21 +0100 (Thu, 10 Jun 2010) | 2 lines
Fix issue with nested test suites debug method and module setups. (unittest)
........
2010-06-10 20:41:54 +00:00
Michael Foord
33958b87f2
Fix issue with nested test suites debug method and module setups. (unittest)
2010-06-10 20:40:21 +00:00
Michael Foord
c41d141f4f
Merged revisions 81859 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81859 | michael.foord | 2010-06-09 13:29:56 +0100 (Wed, 09 Jun 2010) | 1 line
Typo correction.
........
2010-06-10 16:17:07 +00:00
Michael Foord
b874874194
Merged revisions 81853 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81853 | michael.foord | 2010-06-08 23:44:52 +0100 (Tue, 08 Jun 2010) | 1 line
Issue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus class and module teardowns are not run by unittest.TestSuite.debug().
........
2010-06-10 16:16:08 +00:00
Mark Dickinson
c73013127b
Issue #8950 : Make PyArg_Parse* with 'L' code raise for float inputs,
...
instead of warning. This makes it consistent with the other integer
codes.
2010-06-10 16:05:10 +00:00
Philip Jenvey
ddf0d0383c
Merged revisions 79780 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r79780 | philip.jenvey | 2010-04-04 20:05:24 -0700 (Sun, 04 Apr 2010) | 9 lines
Merged revisions 79779 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79779 | philip.jenvey | 2010-04-04 19:51:51 -0700 (Sun, 04 Apr 2010) | 2 lines
fix escape_encode to return the correct consumed size
........
................
2010-06-09 17:56:11 +00:00
Philip Jenvey
bc3376f66a
Merged revisions 79779 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79779 | philip.jenvey | 2010-04-04 19:51:51 -0700 (Sun, 04 Apr 2010) | 2 lines
fix escape_encode to return the correct consumed size
........
2010-06-09 17:55:28 +00:00
Michael Foord
ae1bb9a00c
Typo correction.
2010-06-09 12:29:56 +00:00
Stefan Krah
0ca4624e8a
Issue #8932 : Skip required when compiled --without-threads.
2010-06-09 08:56:28 +00:00
Kristján Valur Jónsson
17173cfe7b
http://bugs.python.org/issue8832
...
Issue minidom.unlink with a context manager
2010-06-09 08:13:42 +00:00
Victor Stinner
3dcb5acdb0
Issue #8838 , #8339 : Remove codecs.charbuffer_encode() and "t#" parsing format
...
Remove last references to the "char buffer" of the buffer protocol from
Python3.
2010-06-08 22:54:19 +00:00
Michael Foord
0fedb28951
Issue 8948. cleanup functions are not run by unittest.TestCase.debug(), plus class and module teardowns are not run by unittest.TestSuite.debug().
2010-06-08 22:44:52 +00:00
Benjamin Peterson
99bcf5ce08
Merged revisions 81823,81835 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81823 | benjamin.peterson | 2010-06-07 17:31:26 -0500 (Mon, 07 Jun 2010) | 9 lines
Merged revisions 81820 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81820 | benjamin.peterson | 2010-06-07 17:23:23 -0500 (Mon, 07 Jun 2010) | 1 line
correctly overflow when indexes are too large
........
................
r81835 | benjamin.peterson | 2010-06-08 09:57:22 -0500 (Tue, 08 Jun 2010) | 9 lines
Merged revisions 81834 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81834 | benjamin.peterson | 2010-06-08 09:53:29 -0500 (Tue, 08 Jun 2010) | 1 line
kill extra word
........
................
2010-06-08 15:12:17 +00:00
R. David Murray
737e469da3
Merged revisions 81832 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r81832 | r.david.murray | 2010-06-08 10:41:45 -0400 (Tue, 08 Jun 2010) | 2 lines
Now that sunau has some tests, remove it from test_sundry.
........
2010-06-08 14:43:46 +00:00
R. David Murray
a59bfb3c7d
Now that sunau has some tests, remove it from test_sundry.
2010-06-08 14:41:45 +00:00
Stefan Krah
095b273afc
Issue #7384 : If the system readline library is linked against ncurses,
...
the curses module must be linked against ncurses as well. Otherwise it
is not safe to load both the readline and curses modules in an application.
Thanks Thomas Dickey for answering questions about ncurses/ncursesw
and readline!
2010-06-08 13:41:44 +00:00
Benjamin Peterson
eacc8737be
Merged revisions 81825 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81825 | benjamin.peterson | 2010-06-07 17:33:09 -0500 (Mon, 07 Jun 2010) | 1 line
use unicode literals
........
2010-06-07 22:38:19 +00:00
Benjamin Peterson
eabdeba25e
use unicode literals
2010-06-07 22:33:09 +00:00
Benjamin Peterson
59a1b2f732
Merged revisions 81820 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81820 | benjamin.peterson | 2010-06-07 17:23:23 -0500 (Mon, 07 Jun 2010) | 1 line
correctly overflow when indexes are too large
........
2010-06-07 22:31:26 +00:00
Benjamin Peterson
c971913f84
Merged revisions 81820 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81820 | benjamin.peterson | 2010-06-07 17:23:23 -0500 (Mon, 07 Jun 2010) | 1 line
correctly overflow when indexes are too large
........
2010-06-07 22:27:32 +00:00
Benjamin Peterson
13e934acc0
correctly overflow when indexes are too large
2010-06-07 22:23:23 +00:00
Ezio Melotti
0b41707dde
Silence deprecation warning in test___all__ caused by an import bsddb.
2010-06-07 22:00:18 +00:00
Ezio Melotti
ac85eeb1f0
Merged revisions 81769 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81769 | ezio.melotti | 2010-06-06 01:28:10 +0300 (Sun, 06 Jun 2010) | 1 line
Replace deprecated fail* methods with the equivalent assert* ones.
........
2010-06-07 21:53:10 +00:00
Victor Stinner
d67cb78f18
Merged revisions 81809 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r81809 | victor.stinner | 2010-06-07 22:14:04 +0200 (lun., 07 juin 2010) | 3 lines
Issue #8897 : Fix sunau module, use bytes to write the header. Patch written by
Thomas Jollans.
........
2010-06-07 20:24:48 +00:00
Victor Stinner
7f3652e371
Issue #8897 : Fix sunau module, use bytes to write the header. Patch written by
...
Thomas Jollans.
2010-06-07 20:14:04 +00:00
Benjamin Peterson
0229e8495f
update pydoc-topics
2010-06-06 00:49:27 +00:00
Benjamin Peterson
77d534e59d
bump version to 2.7 rc1
2010-06-06 00:22:09 +00:00
Michael Foord
d50a6b94b7
Merged revisions 81770 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81770 | michael.foord | 2010-06-06 00:58:40 +0100 (Sun, 06 Jun 2010) | 1 line
Code formatting change.
........
2010-06-05 23:59:34 +00:00
Michael Foord
c532c57d44
Code formatting change.
2010-06-05 23:58:40 +00:00
Ezio Melotti
62c3c79426
Replace deprecated fail* methods with the equivalent assert* ones.
2010-06-05 22:28:10 +00:00
Michael Foord
520ed0a150
Merged revisions 81764 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81764 | michael.foord | 2010-06-05 21:59:00 +0100 (Sat, 05 Jun 2010) | 1 line
Tests for issue 8302, skipped test in a setUpClass or a setUpModule are reported as skips rather than errors.
........
2010-06-05 21:12:23 +00:00
Michael Foord
da562f65e9
Merged revisions 81763 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81763 | michael.foord | 2010-06-05 21:33:43 +0100 (Sat, 05 Jun 2010) | 1 line
Tests for unittest.TestCase.maxDiff.
........
2010-06-05 21:01:08 +00:00
Michael Foord
db919f0188
Tests for issue 8302, skipped test in a setUpClass or a setUpModule are reported as skips rather than errors.
2010-06-05 20:59:00 +00:00
Michael Foord
c1d7c5b7fa
Tests for unittest.TestCase.maxDiff.
2010-06-05 20:33:43 +00:00
Michael Foord
20e287caed
Issue 8302. SkipTest exception is setUpClass or setUpModule is now reported as a skip rather than an error.
2010-06-05 19:38:42 +00:00
Ezio Melotti
ab2eb0ee84
Add a NEWS entry for r81758 and clarify a comment.
2010-06-05 19:21:32 +00:00
Ezio Melotti
e57e50c8e7
Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629.
...
1) #8271 : when a byte sequence is invalid, only the start byte and all the
valid continuation bytes are now replaced by U+FFFD, instead of replacing
the number of bytes specified by the start byte.
See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (pages 94-95);
2) 5- and 6-bytes-long UTF-8 sequences are now considered invalid (no changes
in behavior);
3) Add code and tests to reject surrogates (U+D800-U+DFFF) as defined in
RFC 3629, but leave it commented out since it's not backward compatible;
4) Change the error messages "unexpected code byte" to "invalid start byte"
and "invalid data" to "invalid continuation byte";
5) Add an extensive set of tests in test_unicode;
6) Fix test_codeccallbacks because it was failing after this change.
2010-06-05 17:51:07 +00:00
Michael Foord
ac76074628
Merged revisions 81753 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81753 | michael.foord | 2010-06-05 14:48:27 +0100 (Sat, 05 Jun 2010) | 1 line
Fix unittest tests after previous commit.
........
2010-06-05 13:57:23 +00:00
Michael Foord
9dad32efe8
Merged revisions 81752 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81752 | michael.foord | 2010-06-05 14:38:16 +0100 (Sat, 05 Jun 2010) | 1 line
unittest.TestCase assertion methods inform you when they have omitted an over long diff on failure. Issue 8351.
........
2010-06-05 13:49:56 +00:00
Michael Foord
f2c25c5cb0
Fix unittest tests after previous commit.
2010-06-05 13:48:27 +00:00
Michael Foord
5fe21ff91a
unittest.TestCase assertion methods inform you when they have omitted an over long diff on failure. Issue 8351.
2010-06-05 13:38:16 +00:00
Mark Dickinson
3f9181143a
Merged revisions 81749 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81749 | mark.dickinson | 2010-06-05 14:18:33 +0100 (Sat, 05 Jun 2010) | 2 lines
Fix test_py3kwarn not to test for __cmp__-related DeprecationWarning.
........
2010-06-05 13:24:04 +00:00