Commit graph

78877 commits

Author SHA1 Message Date
Giampaolo Rodola'
b071d4f3da profile/cProfile: add tests for run() and runctx() functions 2013-02-12 14:31:06 +01:00
Serhiy Storchaka
f29fb5ea28 Null merge 2013-02-12 09:30:55 +02:00
Serhiy Storchaka
b52d432a78 Null merge 2013-02-12 09:30:03 +02:00
Serhiy Storchaka
da5c2a0646 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-12 09:27:53 +02:00
Serhiy Storchaka
e4ad8aacd1 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-12 09:24:16 +02:00
Serhiy Storchaka
008deb7f04 Clean trailing whitespaces in Makefile.pre.in. 2013-02-12 09:21:36 +02:00
Serhiy Storchaka
083c0aac32 Clean trailing whitespaces in Makefile.pre.in and grpmodule.c. 2013-02-12 09:20:19 +02:00
Ned Deily
aa1e1a2755 Issue #17111: Prevent test_surrogates (test_fileio) failure on OS X 10.4.
An odd bug in OS X 10.4 causes open(2) on a non-existent,
invalid-encoded filename to return errno 22, EINVAL: Invalid argument,
instead of the expected errno 2, ENOENT: No such file or directory,
*if* the containing directory is not empty.  That caused frequent
failures when running the buildbot tests on 10.4 depending on the state
of the test working directory.  The failure is easy to reproduce on
10.4 by running the test directly (not with regrtest), first in an empty
directory, then after adding a file to it.  The fix is to check for and
pass if either errno is returned.
2013-02-11 22:10:59 -08:00
Giampaolo Rodola'
2f50aaf2ff modernize some modules' code by using with statement around open() 2013-02-12 02:04:27 +01:00
Serhiy Storchaka
fd6e6cfa29 Raise KeyError instead of OverflowError when getpwuid's argument is out of
uid_t range.
2013-02-11 20:33:24 +02:00
Serhiy Storchaka
55e2238272 Raise KeyError instead of OverflowError when getpwuid's argument is out of
uid_t range.
2013-02-11 20:32:47 +02:00
R David Murray
c114cc8684 #17171: backport behavior-confirming test from python3. 2013-02-11 10:57:37 -05:00
R David Murray
64634eb321 Merge: #17171: fix email.encoders.encode_7or8bit when applied to binary data. 2013-02-11 10:54:22 -05:00
R David Murray
66383b2e0a Merge: #17171: fix email.encoders.encode_7or8bit when applied to binary data. 2013-02-11 10:53:35 -05:00
R David Murray
ec317a8985 #17171: fix email.encoders.encode_7or8bit when applied to binary data. 2013-02-11 10:51:28 -05:00
R David Murray
f1d3473a2b #17064: fix sporadic permission errors in test_mailbox on windows.
Backported from patch by Jeremy Kloth.
2013-02-11 10:14:24 -05:00
R David Murray
a6e902ae35 Merge: #17064: fix sporadic permission errors in test_mailbox on windows.
Patch by Jeremy Kloth.
2013-02-11 10:05:34 -05:00
R David Murray
0b61d3c0f2 Merge: #17064: fix sporadic permission errors in test_mailbox on windows.
Patch by Jeremy Kloth.
2013-02-11 10:05:03 -05:00
R David Murray
b3e8384cbe #17064: fix sporadic permission errors in test_mailbox on windows.
Patch by Jeremy Kloth.
2013-02-11 10:04:26 -05:00
Michael Foord
890d72d3c9 Merge. Closes issue 17052. 2013-02-11 13:33:00 +00:00
Michael Foord
b71b8ec7b1 Merge 2013-02-11 13:29:58 +00:00
Michael Foord
f78f5b11f6 Correction to issue 17052 fix 2013-02-11 13:20:52 +00:00
Michael Foord
c36bf99189 Correction to issue 17052 fix 2013-02-11 12:53:21 +00:00
Terry Jan Reedy
3420057adb Closes #17158: Add 'symbols' to help() welcome message; clarify 'modules spam'
messages.
2013-02-11 02:23:13 -05:00
Michael Foord
4e08f786f0 Merge. Closes issue 17052. 2013-02-11 00:28:02 +00:00
Michael Foord
a23a39c07d Merge 2013-02-11 00:18:07 +00:00
Michael Foord
8fd396bd22 Issue 17502: unittest discovery should use self.testLoader 2013-02-11 00:04:24 +00:00
Michael Foord
cb66ee7f56 Issue 17502: unittest discovery should use self.testLoader 2013-02-10 23:59:46 +00:00
Serhiy Storchaka
a7b5e82ff0 Reject float as uid or gid.
A regression was introduced in the commit for issue #4591.
2013-02-10 23:28:33 +02:00
Serhiy Storchaka
b462189921 Reject float as uid or gid.
A regression was introduced in the commit for issue issue #4591.
2013-02-10 23:28:02 +02:00
Serhiy Storchaka
c2d020090b Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-10 22:03:08 +02:00
Serhiy Storchaka
7cf5599346 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-10 21:56:49 +02:00
Mark Dickinson
d80b16dbd5 Fix ReST role markup: :method: -> :meth: 2013-02-10 18:43:16 +00:00
Antoine Pitrou
2306e6049b Issue #17165: fix a bare import in _strptime.py.
Patch by Berker Peksag.
2013-02-10 19:29:17 +01:00
Serhiy Storchaka
06e5e730dd Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 2013-02-10 19:29:54 +02:00
Serhiy Storchaka
ac99576a8e Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 2013-02-10 19:29:20 +02:00
Serhiy Storchaka
6c22b1d760 Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 2013-02-10 19:28:56 +02:00
Serhiy Storchaka
65d56390bb Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 2013-02-10 19:27:37 +02:00
Serhiy Storchaka
b8cbba5877 Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
2013-02-10 17:43:25 +02:00
Serhiy Storchaka
801d955f04 Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
2013-02-10 17:42:01 +02:00
Serhiy Storchaka
5e61f14c6d Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
2013-02-10 17:36:00 +02:00
Benjamin Peterson
419d9a83d5 evaluate lambda keyword-only defaults after positional defaults (#16967 again) 2013-02-10 09:48:22 -05:00
Benjamin Peterson
8b466c9932 merge heads 2013-02-10 09:32:22 -05:00
Benjamin Peterson
1ef876cd28 evaluate positional defaults before keyword-only defaults (closes #16967) 2013-02-10 09:29:59 -05:00
Mark Dickinson
1b901baee5 Issue #17149: merge fix from 3.3. 2013-02-10 14:17:20 +00:00
Mark Dickinson
6427358501 Issue #17149: merge fix from 3.2. 2013-02-10 14:16:56 +00:00
Mark Dickinson
be5f91957f Issue #17149: Fix random.vonmisesvariate to always return results in [0, 2*math.pi]. 2013-02-10 14:16:10 +00:00
Mark Dickinson
9aaeb5e0c8 Issue #17149: Fix random.vonmisesvariate to always return results in [0, 2*math.pi]. 2013-02-10 14:13:40 +00:00
Serhiy Storchaka
34a2a87d17 Fix a test for SpooledTemporaryFile (added in issue #10355). 2013-02-10 14:44:43 +02:00
Serhiy Storchaka
bf95c143a2 Fix a test for SpooledTemporaryFile (added in issue #10355). 2013-02-10 14:44:14 +02:00