Commit graph

75856 commits

Author SHA1 Message Date
Serhiy Storchaka
e912496c60 Issue #16642: Document kwargs field in sched.Event named tuple. 2012-12-29 20:57:52 +02:00
Antoine Pitrou
6464b84b3e Forward port new test for SSLSocket.connect_ex() 2012-12-28 19:08:49 +01:00
Antoine Pitrou
ddb87ab1b4 Forward port new test for SSLSocket.connect_ex() 2012-12-28 19:07:43 +01:00
Antoine Pitrou
40f12ab0c5 Backport Python 3.2 fix for issue #12065, and add another test for SSLSocket.connect_ex(). 2012-12-28 19:03:43 +01:00
Serhiy Storchaka
c4051aa8eb Merge heads 2012-12-28 10:16:47 +02:00
Raymond Hettinger
c195b4e88c Make the from_iterable() recipe more usable.
The code isn't exactly equivalent because a classmethod would
only make sense inside a chain class, and it would need "cls"
as a first argument, and it would need to return an instance
of "chain" rather than a generator.

The updated example drops the @classmethod decorator so that
it can be used standalone:  list(from_iterable(['abc', 'def']))
This should be communicate what from_iterable does.
2012-12-28 00:03:30 -08:00
Serhiy Storchaka
00e2843115 Issue #16761: Raise TypeError when int() called with base argument only. 2012-12-28 10:02:42 +02:00
Serhiy Storchaka
0b386d5247 Issue #16761: Raise TypeError when int() called with base argument only. 2012-12-28 09:42:11 +02:00
Serhiy Storchaka
cf095f8e0f Issue #16761: Raise TypeError when int() or long() called with base argument only. 2012-12-28 09:31:59 +02:00
Chris Jerdonek
28441e353c Merge from 3.2: Issue #15324: Fix regrtest --fromfile, --match, --randomize. 2012-12-27 18:25:54 -08:00
Chris Jerdonek
1e4bd53a34 Issue #15324: Fix regrtest parsing of --fromfile, --match, and --randomize. 2012-12-27 18:16:32 -08:00
Chris Jerdonek
3684c79e00 Issue #15324: Fix regrtest parsing of --fromfile and --randomize options. 2012-12-27 18:14:01 -08:00
Ezio Melotti
63ee149ca6 #16796: merge with 3.2. 2012-12-28 02:00:22 +02:00
Ezio Melotti
52336f0b50 #16796: fix typo. Patch by Michael Schurter. 2012-12-28 01:59:24 +02:00
Ezio Melotti
82ee30384c #16796: fix typo. Patch by Michael Schurter. 2012-12-28 01:59:24 +02:00
Serhiy Storchaka
c90be30b0d Issue #16792: Use assertIs() to test identity. 2012-12-28 00:44:20 +02:00
Serhiy Storchaka
a29159b075 Issue #16793. Replace deprecated unittest asserts with modern counterparts. 2012-12-28 00:34:57 +02:00
Serhiy Storchaka
8876145fab Issue #16793. Replace deprecated unittest asserts with modern counterparts. 2012-12-28 00:32:19 +02:00
Serhiy Storchaka
1ef73d21a2 Issue #16792: Mark small ints test as CPython-only. 2012-12-28 00:16:53 +02:00
Serhiy Storchaka
3b3170447f Issue #16792: Mark small ints test as CPython-only. 2012-12-27 23:57:00 +02:00
Ezio Melotti
8a158be94e Null merge with 3.2. 2012-12-27 23:52:36 +02:00
Serhiy Storchaka
270767b2ce Issue #16792: Mark small ints test as CPython-only. 2012-12-27 23:07:00 +02:00
Chris Jerdonek
6f70fe8046 Issue #16790: add some of the recent issue #16045 int tests to test_long.
This patch also provides a simple way to share tests going forward
between test_int and test_long.
2012-12-27 12:53:29 -08:00
Brian Curtin
33e05e7905 Fix #16759. Convert DWORD registry values using unsigned long.
When converting REG_DWORD registry values into Python, the conversion
needs to be made from an *unsigned* long (k instead of i) to match the
DWORD type.
2012-12-27 14:37:06 -06:00
Brian Curtin
9640ead585 another merge 2012-12-27 14:14:42 -06:00
Brian Curtin
9eac6b3848 Merge 2012-12-27 14:12:43 -06:00
Brian Curtin
e6bfa2911a Merge 3.2 2012-12-27 14:06:06 -06:00
Brian Curtin
172e42295f Fix #16759. Convert DWORD registry values using PyLong_FromUnsignedLong.
When converting REG_DWORD registry values into Python ints, the conversion
needs to be made from an *unsigned* long to match the DWORD type.
2012-12-27 14:04:42 -06:00
Serhiy Storchaka
a0b7e9c74c Null merge. 2012-12-27 22:00:12 +02:00
Serhiy Storchaka
64df4a1c45 Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE.
Patch by Roger Serwy.
2012-12-27 21:53:06 +02:00
Serhiy Storchaka
07e0e06f8a Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE.
Patch by Roger Serwy.
2012-12-27 21:38:04 +02:00
Serhiy Storchaka
61006a2113 Issue #16504: Catch SyntaxErrors raised by tokenizer in IDLE. 2012-12-27 21:34:23 +02:00
Serhiy Storchaka
e261055eaf Issue #16682: Replace "Python string" to "bytes object" in audioop documentation. 2012-12-27 20:46:19 +02:00
Serhiy Storchaka
c8bd74ddfd Issue #16682: Replace "Python string" to "bytes object" in audioop documentation. 2012-12-27 20:43:36 +02:00
Brian Curtin
0e091b0365 Fix #14420. Check for PyLong as well as PyInt when converting in Py2Reg.
This fixes a ValueError seen in winreg.SetValueEx when passed long
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 12:28:51 -06:00
Brian Curtin
62cf69ec7c Merge 3.2 2012-12-27 10:14:30 -06:00
Brian Curtin
12706f2082 Fix #14420. Use PyLong_AsUnsignedLong to support the full range of DWORD.
This fixes an OverflowError seen in winreg.SetValueEx when passed
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 10:12:45 -06:00
Hynek Schlawack
4a5a4c2808 #16618: Add more glob regression tests
Mostly about symlinks and str/unicode behavior.

Patch by Serhiy Storchaka.
2012-12-27 10:24:21 +01:00
Hynek Schlawack
6f52027168 #16618: Make glob.glob match consistently across strings and bytes
Fixes handling of leading dots.

Patch by Serhiy Storchaka.
2012-12-27 10:15:53 +01:00
Hynek Schlawack
e26568f812 #16618: Make glob.glob match consistently across strings and bytes
Fixes handling of leading dots.

Patch by Serhiy Storchaka.
2012-12-27 10:10:11 +01:00
Andrew Svetlov
b172697cd8 fix test for subprocess (#16644) 2012-12-26 23:34:54 +02:00
Andrew Svetlov
57a1233110 fix test for subprocess (#16644) 2012-12-26 23:31:45 +02:00
Jesus Cea
aa24468c9b MERGE: Closes #16789: :meth:quit links to constants instead of own module 2012-12-26 16:47:40 +01:00
Jesus Cea
c73f863a8d Closes #16789: :meth:quit links to constants instead of own module 2012-12-26 16:47:03 +01:00
Jesus Cea
4947049b40 Closes #16789: :meth:quit links to constants instead of own module 2012-12-26 16:46:04 +01:00
Kristján Valur Jónsson
c8e7e2bb76 Merge with 3.2 :
Issue #14574: Ignore socket errors raised when flushing a connection on close.
2012-12-26 15:13:29 +00:00
Senthil Kumaran
00679a7ee0 Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:46:39 -08:00
Senthil Kumaran
303eb478f2 Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:45:58 -08:00
Senthil Kumaran
2f01e239cb Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:45:22 -08:00
Chris Jerdonek
3416769b60 Null merge. 2012-12-25 15:27:56 -08:00