Raymond Hettinger
f400ab40e4
merge
2011-04-13 11:50:34 -07:00
Raymond Hettinger
8a9c4d9866
Issue 3051: make pure python code pass the same tests as the C version.
2011-04-13 11:49:57 -07:00
Ezio Melotti
7d01e78c9e
Merge with 3.2.
2011-04-13 07:21:24 +03:00
Ezio Melotti
04c6423fba
Merge with 3.1.
2011-04-13 07:18:24 +03:00
R David Murray
d16ee63df2
Merge #10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:19:20 -04:00
R David Murray
d5315482e9
Merge #10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:09:18 -04:00
Benjamin Peterson
59c90c6cb2
merge 3.2
2011-04-12 18:35:21 -05:00
Benjamin Peterson
62f8bcb0a4
merge 3.1
2011-04-12 18:34:30 -05:00
Benjamin Peterson
abdeeff3d1
merge heads
2011-04-12 18:34:06 -05:00
Benjamin Peterson
bd3e362089
make assigning to a bytes literal a syntax error ( closes #11506 )
2011-04-12 18:33:28 -05:00
Senthil Kumaran
5809403e6d
merge the change update.
2011-04-13 07:25:48 +08:00
Senthil Kumaran
1cea9a0227
merge from 3.2
2011-04-13 07:24:32 +08:00
Senthil Kumaran
b17abb1af9
merge from 3.1
2011-04-13 07:22:29 +08:00
Victor Stinner
9bf133ca31
Fix #11825 : disable regrtest timeout if Python doesn't support threads
2011-04-13 01:06:27 +02:00
Senthil Kumaran
2643041970
Fix Issue11703 - urllib2.geturl() does not return correct url when the original url contains #fragment. Patch Contribution by Santoso Wijaya.
2011-04-13 07:01:19 +08:00
Raymond Hettinger
9180deb59c
Issue 11747: Fix output format for context diffs.
2011-04-12 15:25:30 -07:00
Raymond Hettinger
f03d3028e0
Issue 11747: Fix output format for context diffs.
2011-04-12 15:19:33 -07:00
Raymond Hettinger
3780542039
Issue 11747: Fix output format for context diffs.
2011-04-12 15:14:12 -07:00
Nadeem Vawda
ea4b46f9a9
Fix 64-bit safety issue in BZ2Compressor and BZ2Decompressor.
2011-04-12 23:02:42 +02:00
Raymond Hettinger
2498c9f06e
Issue #11747 : Fix range formatting in context and unified diffs.
2011-04-11 12:42:59 -07:00
Raymond Hettinger
49353d0e8f
Issue #11747 : Fix range formatting in context and unified diffs.
2011-04-11 12:40:58 -07:00
Vinay Sajip
4a0a31df5c
Added 'handlers' argument to logging.basicConfig.
2011-04-11 08:42:07 +01:00
R David Murray
eb9e074dca
Use stock assertEqual instead of custom ndiffAssertEqual.
...
Eventually I'll actually replace the calls in the tests themselves.
2011-04-10 15:28:29 -04:00
Ezio Melotti
88fdeb45ef
#2650 : re.escape() no longer escapes the "_".
2011-04-10 12:59:16 +03:00
Ned Deily
4e6aba6f63
Issue9670: Merge backout from 3.2.
2011-04-09 14:58:04 -07:00
Ned Deily
2604e33f30
Issue9670: Merge backout to 3.2.
2011-04-09 14:53:47 -07:00
Ned Deily
45e47e58ed
Issue9670: Back out changeset 378b40d71175; test fails on other platforms
...
and on OS X with pydebug.
2011-04-09 14:50:59 -07:00
Antoine Pitrou
131a6414dd
Issue #11757 : select.select() now raises ValueError when a negative timeout
...
is passed (previously, a select.error with EINVAL would be raised). Patch
by Charles-François Natali.
2011-04-09 23:49:58 +02:00
Ned Deily
6e678b4395
Issue #9670 : merge with current
2011-04-09 12:47:12 -07:00
Ned Deily
15012a67d2
Issue #9670 : merge with 3.2
2011-04-09 12:37:55 -07:00
Ned Deily
517ac72b00
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(Patch by Ronald Oussoren)
2011-04-09 12:32:12 -07:00
Ross Lagerwall
b2a290c329
Merge with 3.2
2011-04-09 20:12:43 +02:00
Ross Lagerwall
226580e6dc
Merge with 3.1
2011-04-09 20:05:04 +02:00
Ross Lagerwall
e620d10701
Issue #11719 : Fix message about unexpected test_msilib skip.
...
Patch by Nadeem Vawda.
2011-04-09 19:30:03 +02:00
Victor Stinner
c790a5346d
faulthandler: dump_tracebacks_later() displays also the timeout
2011-04-08 13:39:59 +02:00
Victor Stinner
de10f4054b
faulthandler: one more time, fix usage of locks in the watchdog thread
...
* Write a new test to ensure that dump_tracebacks_later() still works if
it was already called and then cancelled before
* Don't use a variable to check the status of the thread, only rely on locks
* The thread only releases cancel_event if it was able to acquire it (if
the timer was interrupted)
* The main thread always hold this lock. It is only released when
faulthandler_thread() is interrupted until this thread exits, or at Python
exit.
2011-04-08 12:57:06 +02:00
R David Murray
7ede59d77a
Merge #11492 : fix header truncation on folding when there are runs of split chars.
...
Not a complete fix for this issue.
2011-04-07 21:00:33 -04:00
R David Murray
63d320b44f
Merge: Improve test coverage of _split_ascii method.
2011-04-07 20:42:28 -04:00
Brian Quinlan
d08b330a15
Merge to tip.
2011-04-08 08:30:41 +10:00
Brian Quinlan
f007876bd6
Issue #11777 : Executor.map does not submit futures until iter.next() is called
2011-04-08 08:19:33 +10:00
Antoine Pitrou
b1eb660270
Fix faulthandler timeout to avoid breaking buildbots
2011-04-07 23:22:28 +02:00
Ezio Melotti
6537be7fb2
#7311 : merge with 3.2.
2011-04-07 22:27:44 +03:00
Ezio Melotti
2e3607c1e7
#7311 : fix html.parser to accept non-ASCII attribute values.
2011-04-07 22:03:31 +03:00
Victor Stinner
ff4cd88266
faulthandler: fix compilating without threads
2011-04-07 11:50:25 +02:00
Antoine Pitrou
efbcb18997
Issue #11766 : increase countdown waiting for a pool of processes to start
...
up. Hopefully fixes transient buildbot failures.
2011-04-06 22:54:14 +02:00
Antoine Pitrou
540ab064e2
Issue #11766 : increase countdown waiting for a pool of processes to start
...
up. Hopefully fixes transient buildbot failures.
2011-04-06 22:51:17 +02:00
R David Murray
8debacb51c
#1690608 : make formataddr RFC2047 aware.
...
Patch by Torsten Becker.
2011-04-06 09:35:57 -04:00
R David Murray
a0b1c77a19
Merge #11605 : don't use set/get_payload in feedparser; they do conversions.
2011-04-06 08:16:13 -04:00
Senthil Kumaran
736975a771
merge from 3.2
2011-04-06 14:16:08 +08:00
Senthil Kumaran
ae664fb528
Merge from 3.1
2011-04-06 14:11:09 +08:00
Senthil Kumaran
8f377a3bbe
Issue #10762 : Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.
2011-04-06 12:54:06 +08:00
Alexander Belopolsky
28deea1fa5
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 20:43:15 -04:00
Alexander Belopolsky
b6f5ec7370
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 20:07:38 -04:00
Antoine Pitrou
e21a596d51
Try to fix sporadic test_multiprocessing failure
2011-04-05 18:13:06 +02:00
Antoine Pitrou
04026cf56c
Try to fix sporadic test_multiprocessing failure
2011-04-05 18:12:15 +02:00
Antoine Pitrou
c824e9a713
Try to fix sporadic test_multiprocessing failure
2011-04-05 18:11:33 +02:00
Ross Lagerwall
0b9ea93a64
Merge with 3.2
2011-04-05 16:07:49 +02:00
Ross Lagerwall
02ba73c0ef
Merge with 3.1
2011-04-05 15:48:47 +02:00
Ross Lagerwall
4f61b02520
Issue #10963 : Ensure that subprocess.communicate() never raises EPIPE.
2011-04-05 15:34:00 +02:00
Raymond Hettinger
7ab9e22e34
Issue #11707 : Fast C version of functools.cmp_to_key()
2011-04-05 02:33:54 -07:00
Victor Stinner
271b27e5fe
Issue #11768 : add debug messages in test_threadsignals.test_signals
2011-04-05 02:29:30 +02:00
Victor Stinner
fe7c5b5bdf
Issue #9319 : Include the filename in "Non-UTF8 code ..." syntax error.
2011-04-05 01:48:03 +02:00
Victor Stinner
9bdb43e43f
Issue #11765 : don't test time.sleep() in test_faulthandler
...
time.time() and/or time.sleep() are not accurate on Windows, don't test them
in test_faulthandler. Anyway, the check was written for an old implementation
of dump_tracebacks_later(), it is not more needed.
2011-04-04 23:42:30 +02:00
Antoine Pitrou
54e7135fe8
Try to fix sporadic failure in test_thread/test_threading
2011-04-04 22:00:45 +02:00
Antoine Pitrou
4333affb74
Try to fix sporadic failure in test_thread/test_threading
2011-04-04 22:00:10 +02:00
Antoine Pitrou
45fdb457da
Try to fix sporadic failure in test_thread/test_threading
2011-04-04 21:59:09 +02:00
Antoine Pitrou
4ec4b0c041
Issue #10791 : Implement missing method GzipFile.read1(), allowing GzipFile
...
to be wrapped in a TextIOWrapper. Patch by Nadeem Vawda.
2011-04-04 21:00:37 +02:00
Antoine Pitrou
d11f76f8b9
Issue #11761 : make tests for gc.get_count() less fragile
2011-04-04 19:52:56 +02:00
Antoine Pitrou
e9b2a4cb59
Issue #11761 : make tests for gc.get_count() less fragile
2011-04-04 19:51:33 +02:00
Antoine Pitrou
b35f29a0e0
Issue #11761 : make tests for gc.get_count() less fragile
2011-04-04 19:50:42 +02:00
Victor Stinner
f7ec1698a2
Reenable regrtest.py timeout (30 min): #11738 and #11753 looks to be fixed
2011-04-04 12:54:33 +02:00
Steven Bethard
7c8ea37d9b
Issue #9347 : Fix formatting for tuples in argparse type= error messages.
2011-04-04 02:10:40 +02:00
Steven Bethard
7cb20a8605
Issue #9347 : Fix formatting for tuples in argparse type= error messages.
2011-04-04 01:53:02 +02:00
Antoine Pitrou
fc2e3763c8
Issue #11749 : try to fix transient test_socket failure
2011-04-04 01:22:06 +02:00
Antoine Pitrou
43bf045be0
Issue #11749 : try to fix transient test_socket failure
2011-04-04 01:21:37 +02:00
Victor Stinner
d7edf3b82d
Issue #11727 , issue #11753 , issue #11755 : disable regrtest timeout
...
Disable regrtest timeout until #11753 and #11755 are fixed
2011-04-03 23:46:42 +02:00
Victor Stinner
f77ccc6d7e
test_faulthandler: improve the test on dump_tracebacks_later(cancel=True)
2011-04-03 18:45:42 +02:00
Victor Stinner
1b3241fa0c
test_faulthandler: fix regex on the check_dump_traceback_threads() traceback
...
The traceback may contain "_is_owned":
Thread 0x40962b90:
File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 220 in _is_owned
File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 227 in wait
File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 421 in wait
File "<string>", line 23 in run
File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 735 in _bootstrap_inner
File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/threading.py", line 708 in _bootstrap
Current thread XXX:
File "<string>", line 10 in dump
File "<string>", line 28 in <module>
2011-04-03 18:41:22 +02:00
Antoine Pitrou
6dca52772b
Issue #11748 : try to fix sporadic failures in test_ftplib
2011-04-03 18:29:45 +02:00
Antoine Pitrou
37dc5f85b8
Issue #5863 : Rewrite BZ2File in pure Python, and allow it to accept
...
file-like objects using a new `fileobj` constructor argument. Patch by
Nadeem Vawda.
2011-04-03 17:05:46 +02:00
Victor Stinner
d91a5caf0d
Issue #11727 : set regrtest default timeout to 30 minutes
2011-04-01 18:16:36 +02:00
Victor Stinner
305bff1ef5
Issue #11727 : set regrtest default timeout to 15 minutes
2011-04-01 15:59:59 +02:00
Victor Stinner
44378d46f6
Issue #11393 : signal of user signal displays tracebacks even if tstate==NULL
...
* faulthandler_user() displays the tracebacks of all threads even if it is
unable to get the state of the current thread
* test_faulthandler: only release the GIL in test_gil_released() check
* create check_signum() subfunction
2011-04-01 15:37:12 +02:00
Victor Stinner
a01ca12a52
Issue #11393 : Fix faulthandler.disable() and add a test
2011-04-01 12:56:17 +02:00
Victor Stinner
d727e23243
Issue #11393 : The fault handler handles also SIGABRT
2011-04-01 12:13:55 +02:00
Victor Stinner
7ad24e9a73
Issue #11393 : test_faulthandler is more tolerant on inaccurate time
2011-03-31 22:35:49 +02:00
R David Murray
a46ed1186f
Move assertBytesEqual to base test class, improve it, and hook into assertEqual
2011-03-31 13:11:40 -04:00
Victor Stinner
eb50e51a0f
Issue #11393 : get more information on assertion error (test_faulthandler)
2011-03-31 19:07:58 +02:00
Victor Stinner
7d648a0cec
Issue #11727 : Antoine and Arfrever don't like "0 < timeout" style (regrtest.py)
2011-03-31 18:27:50 +02:00
R David Murray
a256bacf91
Move infrastructure into __init__ to lay groundwork for splitting test_email.
...
The split probably won't happen for a while, but I might as well lay the
groundwork now since I'll be adding new test modules before too long.
2011-03-31 12:20:23 -04:00
Victor Stinner
1940233102
Issue #11393 : check that stdout is empty if we use a file
2011-03-31 18:15:52 +02:00
Victor Stinner
0cc8d59069
Issue #11727 : add --timeout option to regrtest (disabled by default).
2011-03-31 18:10:13 +02:00
Victor Stinner
4b73988122
regrtest.py checks that child process exit code is zero
2011-03-31 18:02:36 +02:00
R David Murray
28346b8077
Only a few files were opened using findfile; consistently don't use it.
2011-03-31 11:40:20 -04:00
Victor Stinner
05585cbdc8
Issue #11393 : test_faulthandler checks the exitcode after the output
2011-03-31 13:29:56 +02:00
Victor Stinner
f048075079
Issue #11393 : limit stack overflow test to 100 MB
...
Stop if the stack overflow doesn't occur after allocating 100 MB on the stack.
2011-03-31 11:34:08 +02:00
Victor Stinner
3c7c355e67
Issue #11557 : disable test_logging.test_no_kwargs (fail on most buildbots)
2011-03-31 03:22:15 +02:00
Victor Stinner
0862d6ed8f
Issue #11393 : Disable test_stack_overflow of test_faulthandler
2011-03-31 02:05:54 +02:00
Victor Stinner
bb14b37044
Issue #11393 : reenable all tests in regrtest.py (wooops, sorry Antoine)
2011-03-31 01:34:22 +02:00
Victor Stinner
024e37adcc
Issue #11393 : Add the new faulthandler module
2011-03-31 01:31:06 +02:00
Antoine Pitrou
d85456279f
Issue #11618 : Fix the timeout logic in threading.Lock.acquire() under
...
Windows.
2011-03-31 01:03:10 +02:00
Antoine Pitrou
7899acfc23
Issue #11618 : Fix the timeout logic in threading.Lock.acquire() under
...
Windows.
2011-03-31 01:00:32 +02:00
Kristjan Valur Jonsson
8c5b748026
Merge
2011-03-30 11:55:52 +00:00
Kristjan Valur Jonsson
d05595697d
Merge 3.1
2011-03-30 11:54:13 +00:00
Kristjan Valur Jonsson
3c136e19b9
Merge
2011-03-30 11:39:24 +00:00
Kristjan Valur Jonsson
978da33c7a
Merge 3.2
2011-03-30 11:32:06 +00:00
Kristjan Valur Jonsson
fa3edbed25
Merge 3.1
2011-03-30 11:24:58 +00:00
Kristjan Valur Jonsson
35722a9376
Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
...
ti can raise an exception even if PyLong_Check() has
succeeded.
2011-03-30 11:04:28 +00:00
Guido van Rossum
20d2ab435e
Merge issue 11662.
2011-03-29 12:58:29 -07:00
Guido van Rossum
acb63092b7
Merge issue 11662.
2011-03-29 12:55:41 -07:00
guido@google.com
69cfcabae3
Merge.
2011-03-29 12:09:45 -07:00
guido@google.com
2008a8f8c0
Merge Issue 11662 from 3.2 branch.
2011-03-29 12:02:49 -07:00
guido@google.com
c768ff5d4f
Merge Issue 11662 from 3.1 branch.
2011-03-29 11:51:26 -07:00
guido@google.com
a119df91f3
Issue 11662: Fix vulnerability in urllib/urllib2.
...
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)
2011-03-29 11:41:02 -07:00
Vinay Sajip
e6c1eb9267
Closes issue #11557 : Added Natalia Bidart's patch to improve test coverage.
2011-03-29 17:20:34 +01:00
R David Murray
1ebdd714ac
Add a __main__.py to test_email so it works with -m like it did before move.
2011-03-29 09:59:45 -04:00
Benjamin Peterson
1df78c8e6e
merge 3.2
2011-03-28 17:42:35 -05:00
Benjamin Peterson
6a2638b163
Correct handling of functions with only kwarg args in getcallargs ( closes #11256 )
...
A patch from Daniel Urban.
2011-03-28 17:32:31 -05:00
Raymond Hettinger
5d44613e3b
Add optional *func* argument to itertools.accumulate().
2011-03-27 18:52:10 -07:00
Martin v. Löwis
af88d86699
merge #11696
2011-03-27 21:09:00 +02:00
Martin v. Löwis
987403bf14
merge #11696
2011-03-27 21:07:13 +02:00
Martin v. Löwis
f8d887e0d3
Closes #11696 : Fix ID generation in msilib.
...
Patch by Mark Mc Mahon.
2011-03-27 21:05:51 +02:00
Mark Dickinson
574980e946
Merge #9696
2011-03-27 16:30:50 +01:00
Mark Dickinson
79a9036d09
Merge #9696
2011-03-27 16:30:07 +01:00
Mark Dickinson
92b60d55d9
Issue #9696 : Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.
2011-03-27 16:25:40 +01:00
Steven Bethard
4ad8f66559
Issue #9026 : Fix order of argparse sub-commands in help messages. (Merged from 3.2.)
2011-03-27 14:04:03 +02:00
Steven Bethard
8a6a198abf
Issue #9026 : Fix order of argparse sub-commands in help messages.
2011-03-27 13:53:53 +02:00
Ross Lagerwall
4aeb542a72
Merge with 3.2
2011-03-26 21:22:09 +02:00
Ross Lagerwall
17ace7a07c
Merge with 3.1
2011-03-26 21:21:46 +02:00
Ross Lagerwall
b8a5769a6d
Issue #11659 : Fix ResourceWarning in test_subprocess introduced by #11459 .
...
Patch by Ben Hayden.
2011-03-26 21:19:57 +02:00
Antoine Pitrou
0a01b9f91b
Merge from 3.2
2011-03-26 18:39:55 +01:00
Antoine Pitrou
d9faa201ce
Read HTTP response inside transient_internet()
2011-03-26 18:38:06 +01:00
Antoine Pitrou
b651949f53
test_urllibnet: make it so that transient_internet() applies to the
...
whole HTTP exchange, not only the opening.
2011-03-26 18:36:42 +01:00
Steven Bethard
edbe4c5249
Issue #9348 : Raise an early error if argparse nargs and metavar don't match. (Merge from 3.2.)
2011-03-26 17:35:11 +01:00
Steven Bethard
8d9a4628c3
Issue #9348 : Raise an early error if argparse nargs and metavar don't match.
2011-03-26 17:33:56 +01:00
Steven Bethard
0331e906d6
Issue #11174 : Add argparse.MetavarTypeHelpFormatter, which uses type names
...
for the names of optional and positional arguments in help messages.
2011-03-26 14:48:04 +01:00
Mark Dickinson
657bd0a25d
Merge #11675
2011-03-26 10:22:56 +00:00
Mark Dickinson
633872e3fb
Merge #11675
2011-03-26 10:21:20 +00:00
Mark Dickinson
89461ef8fc
Issue #11675 : Zero-out newly-created multiprocessing.[Raw]Array objects.
2011-03-26 10:19:03 +00:00
Éric Araujo
b3a591bf06
Branch merge
2011-03-26 02:01:33 +01:00
Éric Araujo
be3bd57ba2
Remove traces of division_warning left over from Python 2 ( #10998 )
2011-03-26 01:55:15 +01:00
Raymond Hettinger
007bdbd7ab
Issue #11666 : Teach pydoc to display full help for named tuples
2011-03-25 14:16:13 -07:00
Raymond Hettinger
1103d05775
Issue #11666 : Teach pydoc to display full help for named tuples
2011-03-25 14:15:24 -07:00
R David Murray
79fe2a3462
Merge #9557 : eliminate 3 seconds of static overhead from test_mailbox.
2011-03-25 16:20:16 -04:00
R David Murray
66a4e12da4
Merge #9557 : eliminate 3 seconds of static overhead from test_mailbox.
2011-03-25 16:16:54 -04:00
R David Murray
b9a428d57d
#9557 : eliminate 3 seconds of static overhead from test_mailbox.
...
This patch doesn't quite fix the 'run in a VM with Samba share'
timing problem, but it should at least make it better.
2011-03-25 16:03:47 -04:00
R David Murray
961355a56a
Merge #11584 : Since __getitem__ returns headers, make decode_header handle them.
2011-03-25 15:31:52 -04:00
Ezio Melotti
fd2c2a5271
#2650 : Merge with 3.2.
2011-03-25 14:26:56 +02:00
Ezio Melotti
213eb96902
#2650 : Merge with 3.1.
2011-03-25 14:25:36 +02:00
Ezio Melotti
7b9e97b487
#2650 : Add tests with non-ascii chars for re.escape.
2011-03-25 14:09:33 +02:00
Ezio Melotti
d2114ebd97
#2650 : Refactor the tests for re.escape.
2011-03-25 14:08:44 +02:00
Thomas Wouters
518b5aea1a
Revert the Lib/test/test_bigmem.py changes from commit 17891566a478 (and a
...
few other assertEqual tests that snuck in), and expand the docstrings and
comments explaining why and how these tests are supposed to work.
2011-03-25 11:42:37 +01:00
R David Murray
576483085c
#11093 : make NOTTESTS empty by renaming confusingly named files in test dir.
...
Patch by Sandro Tosi.
2011-03-24 14:57:05 -04:00
R David Murray
b588f8dd9f
#11031 : Add --testdir to specify where to find tests
...
Patch by Sandro Tosi. The main purpose of this option is to allow
an alternate set of tests files to be used when running tests
of the regrtest tool itself.
2011-03-24 14:42:58 -04:00
R David Murray
03504fc2fb
#11030 : make --coverdir work for relative directories again.
2011-03-24 14:35:30 -04:00
Raymond Hettinger
6712a3e14f
Remove test_importable(). Couldn't see how to make this reliable across all platforms.
2011-03-24 10:51:06 -07:00
Raymond Hettinger
d4652fab51
Isolate the test_source() test in test_collections
2011-03-24 09:45:43 -07:00
R David Murray
73bd0448b9
Merge #11606 : improved body_encode algorithm, no longer produces overlong lines
2011-03-24 12:28:39 -04:00
Victor Stinner
f09e652a0e
Merge 3.2
2011-03-24 16:39:34 +01:00
Victor Stinner
900189b414
Merge 3.1
2011-03-24 16:39:07 +01:00
Victor Stinner
29943aa120
test_multiprocessing: use assertLess() to see the timeout on error
2011-03-24 16:24:07 +01:00
Antoine Pitrou
bace3b9ac6
Add tests for the atexit hook in concurrent.futures (part of #11635 )
2011-03-24 15:48:26 +01:00
Antoine Pitrou
aebac0b55a
Add tests for the atexit hook in concurrent.futures (part of #11635 )
2011-03-24 15:47:39 +01:00
Raymond Hettinger
f6d3e8eaef
Add tests for _source to importable and exec'able.
...
Move __name__ back out of the template; the responsibility
for setting __name__ lies with the caller (which knows
something about the new namespace), not with the class
definition (which doesn't know about the namespace it is
being built in).
2011-03-23 20:33:30 -07:00
Antoine Pitrou
f3c524d535
Issue #11653 : fix -W with -j in regrtest.
2011-03-23 23:05:07 +01:00
Antoine Pitrou
293954dd76
Issue #11653 : fix -W with -j in regrtest
2011-03-23 23:01:49 +01:00
Raymond Hettinger
41da10e62c
Merge
2011-03-23 12:53:32 -07:00
Raymond Hettinger
2ebea41d31
Expose the namedtuple source with a _source attribute.
2011-03-23 12:52:23 -07:00
R David Murray
5839b9635c
Merge #11590 : fix quoprimime decode handling of empty strings and line endings.
2011-03-23 15:37:26 -04:00
Antoine Pitrou
6ab79d9d5b
Allow "-j0" as an argument to regrtest, to automatically select an
...
appropriate number of parallel workers.
2011-03-23 20:17:45 +01:00
Antoine Pitrou
5066b03361
Fix transmitting warning options to the children when running tests in
...
parallel (thanks Michael for pointing this).
2011-03-23 20:10:18 +01:00
R David Murray
3dcf745a61
Merge #11589 : add additional tests for the email quoprimime module.
2011-03-23 14:29:49 -04:00
Mark Dickinson
7c9e803284
Issue #11244 : Remove outdated peepholer check that was preventing the peepholer from folding -0 and -0.0. Thanks Eugene Toder for the patch.
2011-03-23 17:59:37 +00:00
Antoine Pitrou
c28af1f05f
Use transient_internet() consistently in test_imaplib
2011-03-23 03:11:21 +01:00
Antoine Pitrou
924cbea467
Use transient_internet() consistently in test_imaplib
2011-03-23 03:10:14 +01:00
Éric Araujo
48049911d6
Fix obscure set crashers ( #8420 ). Backport of d56b3cafb1e6, reviewed by Raymond.
2011-03-23 02:08:07 +01:00
Antoine Pitrou
36920354c7
Merge
2011-03-22 18:33:33 +01:00
Antoine Pitrou
8e5e942c59
Use shorter timings in test_concurrent_futures to make it a bit faster
...
(it's still very slow)
2011-03-22 18:30:30 +01:00
R David Murray
39bc38c39c
Fix rename spelling error.
2011-03-21 17:36:15 -04:00
R David Murray
9aaba789b3
Correctly move email package tests to Lib/test.
2011-03-21 17:17:06 -04:00
R David Murray
661720e7f7
Make regrtest recognize test packages as well as test modules.
2011-03-21 15:14:34 -04:00
Antoine Pitrou
c107fb1b59
Always print out the traceback when a test "crashed"
2011-03-21 19:55:58 +01:00
Antoine Pitrou
779a5b0b3a
Always print out the traceback when a test "crashed"
2011-03-21 19:55:16 +01:00
Antoine Pitrou
59cc6847a9
Try to make test_import a bit more robust
2011-03-21 19:05:18 +01:00
Antoine Pitrou
46719af05a
Try to make test_import a bit more robust
2011-03-21 19:05:02 +01:00
Antoine Pitrou
732110ab39
Relax timing check (seen a buildbot failure on this)
2011-03-21 18:43:40 +01:00
Antoine Pitrou
60bf7e9e4d
Relax timing check (seen a buildbot failure on this)
2011-03-21 18:43:01 +01:00
Victor Stinner
451385d8f8
Issue #8651 : PyArg_Parse*() functions raise an OverflowError if the file
...
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
(length bigger than 2^31-1 bytes).
2011-03-21 03:22:50 +01:00
Victor Stinner
ee525de6a9
merge
2011-03-21 02:12:09 +01:00
Victor Stinner
13ed2ea7a2
Issue #10864 has been fixed: remove the workaround
2011-03-21 02:11:01 +01:00
Antoine Pitrou
25871dac00
Merge
2011-03-21 00:28:52 +01:00
Antoine Pitrou
03637052ec
Try to strengthen test_httpservers (issue #11617 )
2011-03-21 00:27:45 +01:00
Antoine Pitrou
cb342182ee
Try to strengthen test_httpservers (issue #11617 )
2011-03-21 00:26:51 +01:00
Antoine Pitrou
6d58d64919
Issue #11127 : Raise a TypeError when trying to pickle a socket object.
2011-03-20 23:56:36 +01:00
Victor Stinner
b938bcd211
(merge) Issue #11395 : io.FileIO().write() clamps the data length to 32,767
...
bytes on Windows if the file is a TTY to workaround a Windows bug. The Windows
console returns an error (12: not enough space error) on writing into stdout if
stdout mode is binary and the length is greater than 66,000 bytes (or less,
depending on heap usage).
2011-03-20 23:37:55 +01:00
Victor Stinner
e0daff1c61
Issue #11395 : io.FileIO().write() clamps the data length to 32,767 bytes on
...
Windows if the file is a TTY to workaround a Windows bug. The Windows console
returns an error (12: not enough space error) on writing into stdout if
stdout mode is binary and the length is greater than 66,000 bytes (or less,
depending on heap usage).
2011-03-20 23:36:35 +01:00
Victor Stinner
6ae1e7f04e
Issue #3080 : imp.load_module() accepts None for the module path
...
imp.find_module() returns None as module path for builtin and frozen builtins.
2011-03-20 22:37:17 +01:00
Éric Araujo
6a1454f3a4
Use proper gettext plural forms in optparse ( closes #4391 ).
...
Original patch by Dwayne Bailey.
2011-03-20 19:59:25 +01:00
Antoine Pitrou
ec60e31bad
Merge
2011-03-20 17:42:55 +01:00
Antoine Pitrou
7903cb727e
Merge
2011-03-20 17:36:26 +01:00
Antoine Pitrou
8189ab85e3
Call reap_children() where appropriate
2011-03-20 17:35:32 +01:00
Antoine Pitrou
68c9592d33
Call reap_children() at the end of test_posix
2011-03-20 17:33:57 +01:00
Ross Lagerwall
dedf6cf387
Issue #11615 : Fix sporadic buildbot failures related to #10812 .
2011-03-20 18:27:05 +02:00
Ezio Melotti
45763d0d12
Merge with 3.2.
2011-03-20 15:34:28 +02:00
Ezio Melotti
0123e055fa
Add a check for sys.warnoptions in regrtest.
2011-03-20 15:09:26 +02:00
Senthil Kumaran
a7f43cc09c
branch merge 3.2
2011-03-20 05:33:09 +08:00
Senthil Kumaran
acbaa923b8
Call unfakehttp in order to close connection while opening the connection through a fakehttp object.
...
Address issue11609 - urllib related buildbots failure.
2011-03-20 05:30:16 +08:00
Antoine Pitrou
7b98d02302
Issue #11459 : A `bufsize` value of 0 in subprocess.Popen() really creates
...
unbuffered pipes, such that select() works properly on them.
2011-03-19 17:04:13 +01:00
Antoine Pitrou
877766dee8
Issue #11459 : A `bufsize` value of 0 in subprocess.Popen() really creates
...
unbuffered pipes, such that select() works properly on them.
2011-03-19 17:00:37 +01:00
Senthil Kumaran
d91ffcafcb
Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.
2011-03-19 17:25:27 +08:00
Nick Coghlan
b3c728fd89
Close #11577 : Improve binhex test coverage and fix ResourceWarning
2011-03-16 21:26:40 -04:00
R David Murray
a88da67bcb
#11578 : add unit tests for timeit module.
...
Patch by Michael Henry.
2011-03-16 17:32:27 -04:00
Michael Foord
07926f024a
Closes issue 11503. Improves test coverage of posixpath.
2011-03-16 17:19:16 -04:00
Nick Coghlan
7462fa654b
Backport improved test coverage for string.py
2011-03-16 14:30:45 -04:00
Nick Coghlan
8ed3cf3a4b
Close #11560 : Improve test coverage of shutil
2011-03-16 14:05:35 -04:00
Nick Coghlan
abf202d798
Close #11548 : Correctly handle format argument in shutil.unpack_archive
2011-03-16 13:52:20 -04:00
Ezio Melotti
3b3499ba69
#11565 : Merge with 3.1.
2011-03-16 11:35:38 +02:00
Ezio Melotti
13925008dc
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 11:05:33 +02:00
Jesus Cea
cee3655568
Close issue #8600 : test_gdb failures because innocuous warnings
2011-03-16 01:33:16 +01:00
Michael Foord
dcebe0f2dc
Closes issue 11133. Fixes two cases where inspect.getattr_static could trigger code execution
2011-03-15 19:20:44 -04:00
Raymond Hettinger
29dcaad6eb
Issue 11510: Fix BUILD_SET optimizer bug.
2011-03-15 14:50:16 -07:00
Antoine Pitrou
126848a2d8
Fix whitespace in test_subprocess
2011-03-15 21:17:10 +01:00
Antoine Pitrou
e870623e96
Merge fix for issue #11501
2011-03-15 21:05:36 +01:00
Antoine Pitrou
2c50a09ac4
On behalf of Tarek: Issue #11501 : disutils.archive_utils.make_zipfile no
...
longer fails if zlib is not installed. Instead, the zipfile.ZIP_STORED
compression is used to create the ZipFile. Patch by Natalia B. Bidart.
2011-03-15 21:02:59 +01:00
Gregory P. Smith
961e0e85c0
revert the test_main() change from 08daf3ef6509 so that regrtest continues to run this properly.
2011-03-15 15:43:39 -04:00
Gregory P. Smith
e14e9c2218
Add unittests demonstrating issue #11432 .
2011-03-15 14:55:17 -04:00
R David Murray
56a9d7e3da
#11554 : reactivate test_email_codecs, and make it pass.
...
The fix is to charset.py, which was not doing the encoding to the
correct output character set when doing a body_encode for either
the shift-jis or euc-jp charsets. There's also a fix for handling
a bytes input in encoders.py.
Patch by Michael Henry, comment changes by me.
2011-03-15 12:20:02 -04:00
Gregory P. Smith
de3909da6b
merge 141bbcb19c06
2011-03-15 02:13:09 -04:00
Gregory P. Smith
81ce68597c
Fix the @test_NNNN_tmp file terds being left in whatever your $PWD was
...
when test_subprocess was run.
2011-03-15 02:04:11 -04:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Ronald Oussoren
f2db4de4d8
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list.
2011-03-14 18:46:50 -04:00
Ronald Oussoren
e72e161851
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list
...
Patch by Scott Wilson.
2011-03-14 18:15:25 -04:00
R David Murray
f8b9dfd9a1
#11496 : skip history test if clear_history is not available.
...
Patch by Natalia B. Bidart.
2011-03-14 17:10:22 -04:00
briancurtin
525c25d42f
Fix #11491 . When dbm.open was called with a file which already exists and
...
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 16:03:54 -04:00
briancurtin
94eceeb89c
Fix #11491 . When dbm.open was called with a file which already exists and
...
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 15:35:35 -04:00
Victor Stinner
98dbba5d20
Issue #3080 : Use repr() to format the module name on error
2011-03-14 15:15:47 -04:00
Victor Stinner
ccbf475dfd
Fix imp.cache_from_source() if the directory name contains a dot
...
If the directory name contains a dot but not the filename, don't strip at the
dot.
2011-03-14 15:05:12 -04:00
Ezio Melotti
d9a7c4b8e5
Skip test that requires zlib when zlib is not available.
2011-03-14 18:57:02 +02:00
R David Murray
1a5201f80d
Merge #11488 patch from 3.1.
2011-03-14 09:57:03 -04:00
R David Murray
d89ee79d19
#11488 : Add tests for writelines method of SpooledTemporaryFile.
...
Patch by Evan Dandrea.
2011-03-14 09:55:46 -04:00
R David Murray
6924bd72f5
Fix whitespace
2011-03-13 22:48:55 -04:00
R David Murray
384069c2e8
Merge fix for #11490 from 3.1.
2011-03-13 22:26:53 -04:00
R David Murray
d79210a0e4
#11490 : EACCES can also mean command not found
2011-03-13 22:13:09 -04:00
Antoine Pitrou
d3cccd2a60
Issue #11223 : Fix test_threadsignals to fail, not hang, when the
...
non-semaphore implementation of locks is used under POSIX.
2011-03-13 19:14:21 +01:00
Mark Dickinson
a7f0dffb8d
Merge #11131
2011-03-12 11:17:26 +00:00
Mark Dickinson
37a79fb75b
Issue 11131: Fix sign of zero result on decimal.Decimal plus and minus operations in ROUND_FLOOR rounding mode.
2011-03-12 11:12:52 +00:00
Vinay Sajip
9f9991c2f5
#Issue 11424: added equivalent fixes for dictConfig.
2011-03-07 18:02:57 +00:00
Vinay Sajip
e783553daa
#Issue 11424: merged fix from 3.1.
2011-03-07 17:59:50 +00:00
Vinay Sajip
3f84b07816
Issue #11424 : Fix bug in determining child loggers.
2011-03-07 17:49:33 +00:00
Senthil Kumaran
833d91204f
closes issue11609. buildbot related failures in the test_urllibnet.
2011-03-20 06:13:36 +08:00
Antoine Pitrou
89ba56d5fb
Skip crasher tests
2011-03-19 19:54:01 +01:00
Antoine Pitrou
1679f4daa1
Issue #11459 : A `bufsize` value of 0 in subprocess.Popen() really creates
...
unbuffered pipes, such that select() works properly on them.
2011-03-19 17:06:22 +01:00
Senthil Kumaran
a4d5b0cb62
Closes issue11563 test_urllibnet is triggering a ResourceWarning. Patch by Jeff McNeil.
2011-03-19 17:47:26 +08:00
Nick Coghlan
952c0782b3
Last attempt to get compiler recursion crasher to fail reliably across platforms before giving up and skipping it as unreliably platform dependent
2011-03-19 15:22:59 +10:00
briancurtin
f84f3c3d2d
Fix #11596 . When bz2 isn't available, skip test_bz2_ext_fake.
2011-03-18 13:03:17 -05:00
Ross Lagerwall
7807c3545d
Issue #10812 : Add some extra posix functions to the os module.
2011-03-17 20:20:30 +02:00
Brett Cannon
eb8cee8383
merge
2011-03-17 11:16:38 -07:00
Nick Coghlan
f694a409aa
Give more info in verbose mode when checking crashers, and stress the stack even more in the compiler crasher
2011-03-17 11:04:34 -04:00
Nick Coghlan
bab07a652d
Tidy up merge with remote
2011-03-16 22:11:09 -04:00
Brett Cannon
ecc2db5152
Remove an overly specific exception message test.
2011-03-16 20:11:52 -04:00
Nick Coghlan
c95ec3d560
Exercise crashers to ensure they are still covering known error cases
2011-03-16 19:52:14 -04:00
R David Murray
832ebeb9d4
Merge #11578 test from 3.2.
2011-03-16 17:33:24 -04:00
Michael Foord
4b31818042
merge 3.2
2011-03-16 17:28:51 -04:00
Reid Kleckner
da9ac728a8
Bump up the subprocess timeouts even more. :(
2011-03-16 17:08:21 -04:00
Reid Kleckner
2b228f0d9b
Include the timeout value in TimeoutExpired.
...
This was the original intention, but it wasn't threaded all the way through due
to 'endtime'. Also added a trivial assertion to get coverage of __str__.
2011-03-16 16:57:54 -04:00
Nick Coghlan
e047f66644
Merge fix for #11560 from 3.2
2011-03-16 14:06:31 -04:00
Nick Coghlan
1d7a8879c6
Merge from remote
2011-03-16 13:55:58 -04:00
Nick Coghlan
7bfa67f380
Merge fix for #11548 from 3.2
2011-03-16 13:55:03 -04:00
Ross Lagerwall
ba102ec10d
Issue #5870 : Add subprocess.DEVNULL constant.
2011-03-16 18:40:25 +02:00
Ezio Melotti
b88ed1549e
#11565 : Merge with 3.2.
2011-03-16 11:38:59 +02:00
Jesus Cea
607476bf1d
Merge: Close issue #8600 : test_gdb failures because innocuous warnings
2011-03-16 01:34:29 +01:00
Michael Foord
ed1fce2ee5
merge 3.2
2011-03-15 19:22:19 -04:00
Brett Cannon
55afb1a263
Undo an accidental commit.
2011-03-15 18:48:52 -04:00
Brett Cannon
f47e3ac7b7
merge
2011-03-15 18:45:59 -04:00
Brett Cannon
b8daeda523
merge
2011-03-15 18:45:38 -04:00
Raymond Hettinger
5bd75b8726
whitespace fix
2011-03-15 15:07:38 -07:00
Raymond Hettinger
f932f747e6
whitespace fix
2011-03-15 15:06:09 -07:00
Raymond Hettinger
0661e91fed
Issue 11510: Fix BUILD_SET optimizer bug.
2011-03-15 15:03:36 -07:00
Brett Cannon
b637680f7e
Properly close a file in test_os.
2011-03-15 17:38:22 -04:00
Brett Cannon
ee877a08e9
Don't leave around a test symlink file.
2011-03-15 17:32:14 -04:00
Brett Cannon
f434ba9e4e
merge
2011-03-15 17:23:21 -04:00
Brett Cannon
f30645d552
Close a stream properly in test.test_pulldom.
...
Closes issue #11550 . Thanks to Ben Hayden for some inspiration on the
solution.
2011-03-15 17:22:52 -04:00
Benjamin Peterson
47afc2af79
PyErr_Print can leave sys.last_traceback hanging around; kill it
2011-03-15 15:54:50 -05:00
Benjamin Peterson
8af4919b37
merge heads
2011-03-15 15:21:03 -05:00
Benjamin Peterson
c217a4b71a
should use 'is' here
2011-03-15 15:18:47 -05:00
Antoine Pitrou
8213cafd62
Merge
2011-03-15 21:10:33 +01:00
Antoine Pitrou
0e63f59492
Merge fix for issue #11501
2011-03-15 21:08:50 +01:00
Brett Cannon
71f1363c34
merge
2011-03-15 16:03:32 -04:00
Brett Cannon
b880c1558e
Add warnings support to test.support.args_from_interpreter_flags().
...
This allows the -j flag to regrtest to propagate warnings settings
properly.
2011-03-15 16:03:09 -04:00
Brett Cannon
d47af53126
Move off of assertEquals() and over to assertEqual().
2011-03-15 15:55:12 -04:00
Gregory P. Smith
c15799f88a
merge heads
2011-03-15 15:51:26 -04:00
Benjamin Peterson
e97a5b2bda
merge heads
2011-03-15 14:45:20 -05:00
Benjamin Peterson
d6afe724cb
improve dis test coverage ( closes #11559 )
...
Thanks Matias Bordese. (a few modifications of my own)
2011-03-15 14:44:52 -05:00
Gregory P. Smith
3b4652e074
revert the test_main() change from 08daf3ef6509 so that regrtest continues to run this properly.
2011-03-15 15:43:39 -04:00
Gregory P. Smith
6466a5268a
merge update
2011-03-15 15:35:27 -04:00
Barry Warsaw
254800e150
Merge and resolve Misc/NEWS.
2011-03-15 15:22:42 -04:00
Barry Warsaw
1f5c958721
- Issue #11289 : `smtp.SMTP` class becomes a context manager so it can be used
...
in a `with` statement. Contributed by Giampaolo Rodola.
2011-03-15 15:04:44 -04:00
Gregory P. Smith
112bb3ac6a
Add unittests demonstrating issue #11432 .
2011-03-15 14:55:17 -04:00
R David Murray
df1d00a1e3
Merge #11554 test_email_codecs activation from 3.2.
2011-03-15 12:24:47 -04:00
briancurtin
5eb3591a41
Adjust test names to be more descriptive instead of depending on capitalization.
2011-03-15 10:59:36 -04:00
Benjamin Peterson
eb46288a8d
import style nits
2011-03-15 09:50:18 -05:00
briancurtin
906f0c45fd
Fix #11509 . Significantly increase test coverage for fileinput.
...
Patch by Denver Coneybeare at the PyCon 2011 Sprints.
2011-03-15 10:29:41 -04:00
Eric V. Smith
2e3112f120
Typo.
2011-03-15 04:16:42 -04:00
Gregory P. Smith
58e317ba92
merge 1579808ef25b
2011-03-15 02:15:13 -04:00
Ezio Melotti
373089239b
#11515 : Merge with 3.2.
2011-03-15 06:03:08 +02:00
Reid Kleckner
a9b3a1c49d
Merge with hg.python.org.
2011-03-14 19:34:13 -04:00
Reid Kleckner
93479ccbf0
Tweak subprocess test timeouts to satisfy the buildbot.
2011-03-14 19:32:41 -04:00
Nick Coghlan
5596a8c179
Merge with remote
2011-03-15 08:59:20 +10:00
Nick Coghlan
d25fd4d710
Close #11505 : Improve string.py coverage
2011-03-15 08:54:37 +10:00
Ronald Oussoren
ba3a978fc1
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list.
2011-03-14 18:48:31 -04:00
R David Murray
750beda535
Merge #11496 from 3.2.
2011-03-14 17:14:29 -04:00
briancurtin
30bb6e0360
Fix #11491 . When dbm.open was called with a file which already exists and
...
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 16:36:31 -04:00
Reid Kleckner
80b92d106e
Attempt a larger timeout value to satisfy the buildbots.
2011-03-14 13:34:12 -04:00
Reid Kleckner
8485701714
Merge with default.
2011-03-14 12:12:18 -04:00
Reid Kleckner
31aa7dd141
Add a 'timeout' argument to subprocess.Popen.
...
If the timeout expires before the subprocess exits, the wait method and the
communicate method will raise a subprocess.TimeoutExpired exception. When used
with communicate, it is possible to catch the exception, kill the process, and
retry the communicate and receive any output written to stdout or stderr.
2011-03-14 12:02:10 -04:00
Eric V. Smith
91f0359ee4
Skip test if zlib not present. Closes #11498 . Patch by Natalia B. Bidart.
2011-03-14 11:57:16 -04:00
R David Murray
af9be20060
Merge #11488 patch from 3.2.
2011-03-14 09:58:59 -04:00
R David Murray
74fb7601ba
Merge whitespace fix from 3.2.
2011-03-13 22:49:44 -04:00
R David Murray
dcd79a2d15
Merge fix for #11490 from 3.2.
2011-03-13 22:31:35 -04:00
Antoine Pitrou
f74dee4b88
Merge commit for #11233
2011-03-13 19:16:03 +01:00
Eric V. Smith
b9cd3531c4
Issue 9856: Change object.__format__ with a non-empty format string from a PendingDeprecationWarning to a DeprecationWarning.
2011-03-12 10:08:48 -05:00
Mark Dickinson
e8eabe7b16
Merge #11131
2011-03-12 11:18:46 +00:00
Brett Cannon
755d5129c6
Remove a now unneeded tweak to test_zipimport_support in order to not
...
fail under tracing.
2011-03-11 17:44:43 -05:00
Antoine Pitrou
16c4ce1903
Issue #9935 : Speed up pickling of instances of user-defined classes.
2011-03-11 21:30:43 +01:00
Antoine Pitrou
17b880a5d6
Issue #11244 : The peephole optimizer is now able to constant-fold
...
arbitrarily complex expressions. This also fixes a 3.2 regression where
operations involving negative numbers were not constant-folded.
2011-03-11 17:27:02 +01:00
Giampaolo Rodolà
7a2114719d
#8594 : fix ResourceWarning in test_ftplib.py - patch by Nadeem Vawda.
2011-03-08 21:33:21 +01:00
Vinay Sajip
4bcfb92168
Issue #11424 : Merged fix from 3.2.
2011-03-07 18:14:36 +00:00
Georg Brandl
776e586114
Remove sys.subversion and svn build identification leftovers.
2011-03-06 10:35:42 +01:00
Georg Brandl
fe09a54280
Merge build identification to default branch.
2011-03-06 10:26:32 +01:00
Georg Brandl
13039c87f1
Merge build identification to 3.2 branch.
2011-03-06 10:13:00 +01:00
Antoine Pitrou
f874debbf3
Merge fix for issue #11391
2011-03-06 01:53:19 +01:00
Antoine Pitrou
80d3610bc3
Merge fix for issue #11391
2011-03-06 01:50:56 +01:00
Antoine Pitrou
7b50c2c6ae
Fix buildbot failure following 97a5590b9291
2011-03-06 01:47:18 +01:00
Antoine Pitrou
16a0a0b0a0
Issue #11391 : Writing to a mmap object created with
...
`mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a
TypeError. Patch by Charles-François Natali.
2011-03-06 01:11:03 +01:00
Georg Brandl
8256242b30
Adapt platform and test_platform to the build identification changes.
2011-03-05 21:09:22 +01:00
Georg Brandl
5537d298ea
Add updated .hgeol file and fix newlines in the 3.1 branch.
2011-03-05 15:10:38 +01:00
Eli Bendersky
0716a579a4
Mentioned new clear() method of MutableSequence in its doc, and added unit tests for its mixin methods
2011-03-04 10:38:14 +00:00
Eli Bendersky
e0c8635d89
Merged revisions 88735 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88735 | eli.bendersky | 2011-03-04 06:55:25 +0200 (Fri, 04 Mar 2011) | 2 lines
Issue #11386 : Fixed the exception thrown by bytearray.pop() for empty bytearrays
........
2011-03-04 05:10:57 +00:00
Eli Bendersky
1bc4f193d8
Issue #11386 : Fixed the exception thrown by bytearray.pop() for empty bytearrays
2011-03-04 04:55:25 +00:00
Giampaolo Rodolà
424298a155
Issue 9795: adds context manager protocol to nntplib.NNTP class so that it can used with the 'with' statement.
2011-03-03 18:34:06 +00:00
Eli Bendersky
4db28d3343
Issue #10516 : added copy() and clear() methods to bytearrays as well
2011-03-03 18:21:02 +00:00
Victor Stinner
ff45fedf61
Issue #11377 : Fix quoting on Windows in test_platform
2011-03-03 14:07:21 +00:00
Victor Stinner
1dfd380306
Issue #11377 : Deprecate platform.popen() and reimplement it with os.popen().
2011-03-03 12:54:07 +00:00
Victor Stinner
7b3b20ad29
Issue #8513 : On UNIX, subprocess supports bytes command string.
2011-03-03 12:54:05 +00:00
Nick Coghlan
8370bb9528
Update compiler recursion crasher to more reliably blow the stack and add a tracker issue for it
2011-03-03 11:08:33 +00:00
Benjamin Peterson
863a0c3f53
add tests for xml.pulldom #9373
...
Thanks to Mark Smith for the patch.
2011-03-02 23:40:36 +00:00
Éric Araujo
6f58b6b504
Remove last use of distutils.sysconfig from the stdlib ( #11364 ).
...
Apart from distutils itself, the stdlib has now officially switched to
the new top-level sysconfig module. Patch greenlighted by Ned Deily.
2011-03-02 00:31:51 +00:00
Antoine Pitrou
ec78522424
assertEquals is deprecated
2011-03-02 00:15:44 +00:00
Victor Stinner
6d970f4713
Issue #10831 : PyUnicode_FromFormat() supports %li, %lli and %zi formats
2011-03-02 00:04:25 +00:00
Victor Stinner
968654515f
Issue #10829 : Refactor PyUnicode_FromFormat()
...
* Use the same function to parse the format string in the 3 steps
* Fix crashs on invalid format strings
2011-03-01 23:44:09 +00:00
Victor Stinner
f0e293cbcd
Merged revisions 88700 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88700 | victor.stinner | 2011-03-02 00:08:36 +0100 (mer., 02 mars 2011) | 3 lines
Issue #10911 : Add tests on CGI with non-ASCII characters
Patch written by Pierre Quentel
........
2011-03-01 23:09:57 +00:00
Victor Stinner
096f1a85f0
Issue #10911 : Add tests on CGI with non-ASCII characters
...
Patch written by Pierre Quentel
2011-03-01 23:08:36 +00:00
Antoine Pitrou
819c40ff35
Followup to issue #11140 and r88682: also patch _dummy_thread.
...
Patch by Aymeric Augustin.
2011-03-01 23:05:42 +00:00
Victor Stinner
2b574a2332
Merged revisions 88697 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88697 | victor.stinner | 2011-03-01 23:46:52 +0100 (mar., 01 mars 2011) | 4 lines
Issue #11246 : Fix PyUnicode_FromFormat("%V")
Decode the byte string from UTF-8 (with replace error handler) instead of
ISO-8859-1 (in strict mode). Patch written by Ray Allen.
........
2011-03-01 22:48:49 +00:00
Victor Stinner
2512a8b62e
Issue #11246 : Fix PyUnicode_FromFormat("%V")
...
Decode the byte string from UTF-8 (with replace error handler) instead of
ISO-8859-1 (in strict mode). Patch written by Ray Allen.
2011-03-01 22:46:52 +00:00
Antoine Pitrou
d84dfee7c1
Merged revisions 88691 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88691 | antoine.pitrou | 2011-03-01 01:41:10 +0100 (mar., 01 mars 2011) | 3 lines
Endly, fix UnboundLocalError in telnetlib
........
2011-03-01 00:45:22 +00:00
Antoine Pitrou
4605a00207
Endly, fix UnboundLocalError in telnetlib
2011-03-01 00:41:10 +00:00
Antoine Pitrou
88f416e425
Apparently, skipUnless() doesn't prevent the execution of
...
setUp() under 3.1.
2011-03-01 00:29:11 +00:00
Antoine Pitrou
9e719b6eba
Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines
Issue #10276 : Fix the results of zlib.crc32() and zlib.adler32() on buffers
larger than 4GB. Patch by Nadeem Vawda.
........
r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines
Fix issues on 32-bit systems introduced by r88460
........
r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines
Fix compile error under MSVC introduced by r88460.
........
r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines
Issue #4681 : Allow mmap() to work on file sizes and offsets larger than
4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for
32-bit Windows.
........
r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines
Issue #11277 : finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
........
r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines
Issue #9931 : Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.
........
2011-02-28 23:48:16 +00:00
Antoine Pitrou
061cfb5258
Issue #10866 : Add socket.sethostname(). Initial patch by Ross Lagerwall.
2011-02-28 22:25:22 +00:00
Antoine Pitrou
fcf81fd031
Issue #11140 : Lock.release() now raises a RuntimeError when attempting
...
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError.
2011-02-28 22:03:34 +00:00
Giampaolo Rodolà
cfbcec3823
Issue 11348: skip os.setpriority() test if current nice level is >= 19.
2011-02-28 19:27:16 +00:00
Giampaolo Rodolà
396ff06051
Fix issue 8594: adds a source_address parameter to ftplib module.
2011-02-28 19:19:51 +00:00
Antoine Pitrou
d1c9845b54
Merged revisions 88671 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88671 | antoine.pitrou | 2011-02-27 16:44:12 +0100 (dim., 27 févr. 2011) | 3 lines
Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows
........
2011-02-27 15:45:16 +00:00
Antoine Pitrou
8a14a0c88b
Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows
2011-02-27 15:44:12 +00:00
Antoine Pitrou
86cbfec50a
Merged revisions 88664 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88664 | antoine.pitrou | 2011-02-27 00:24:06 +0100 (dim., 27 févr. 2011) | 4 lines
Issue #11326 : Add the missing connect_ex() implementation for SSL sockets,
and make it work for non-blocking connects.
........
2011-02-26 23:25:34 +00:00
Antoine Pitrou
e93bf7aed2
Issue #11326 : Add the missing connect_ex() implementation for SSL sockets,
...
and make it work for non-blocking connects.
2011-02-26 23:24:06 +00:00
Antoine Pitrou
2de51ff4e1
Make sendfile tests more robust
2011-02-26 17:52:50 +00:00
Antoine Pitrou
4914f9e4e2
Merged revisions 88652 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines
Issue #9931 : Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.
........
2011-02-26 16:49:08 +00:00
Vinay Sajip
399fc14609
Issue #11330 : Updated tests for correct asctime handling.
2011-02-26 16:06:02 +00:00
Vinay Sajip
89807a5277
Issue #11330 : Updated tests for correct asctime handling.
2011-02-26 16:06:02 +00:00
Vinay Sajip
4a7f2168a6
Issue #11330 : Added regression test.
2011-02-26 16:00:04 +00:00
Antoine Pitrou
d20a5f6161
Issue #9931 : Fix hangs in GUI tests under Windows in certain conditions.
...
Patch by Hirokazu Yamamoto.
2011-02-26 15:58:05 +00:00
Vinay Sajip
ed0473cfaf
Issue #9941 : Fixed TimedRotatingHandler test issues.
2011-02-26 15:35:38 +00:00
Antoine Pitrou
18dd0df5af
Issue #11323 : fix sendfile tests under 64-bit Solaris.
2011-02-26 14:29:24 +00:00
Vinay Sajip
ec5a2d5e89
test_logging: Changed TimedRotatingFileHandler tests to use UTC time rather than local time.
2011-02-26 07:18:22 +00:00
Senthil Kumaran
725c2b9873
Merged revisions 88631 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88631 | senthil.kumaran | 2011-02-26 11:44:03 +0800 (Sat, 26 Feb 2011) | 2 lines
Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available (Patch by Ray.Allen)
........
2011-02-26 07:11:27 +00:00
Raymond Hettinger
d032131dcb
Add __bool__ method. Add tests. Fix-up broken test.
2011-02-26 06:53:58 +00:00
Vinay Sajip
cb8b94447c
test_logging: diagnostic code changes.
2011-02-26 06:37:04 +00:00
Senthil Kumaran
75d818fa91
Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available (Patch by Ray.Allen)
2011-02-26 03:44:03 +00:00
Raymond Hettinger
9fe1ccfb5a
Issue #11297 : Add collections.ChainMap()
2011-02-26 01:02:51 +00:00
Antoine Pitrou
692f038a5d
Fix AttributeError.
2011-02-26 00:22:25 +00:00
Antoine Pitrou
8250e23abd
Issue #10755 : Add the posix.fdlistdir() function. Patch by Ross Lagerwall.
2011-02-25 23:41:16 +00:00
Antoine Pitrou
f65132de3d
Issue #4761 : Add the *at() family of functions (openat(), etc.) to the posix
...
module. Patch by Ross Lagerwall.
2011-02-25 23:25:17 +00:00
Antoine Pitrou
5d5381ed00
Merged revisions 88622 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88622 | antoine.pitrou | 2011-02-26 00:07:44 +0100 (sam., 26 févr. 2011) | 5 lines
Issue #7322 : Trying to read from a socket's file-like object after a timeout
occurred now raises an error instead of silently losing data.
Patch by Ross Lagerwall.
........
2011-02-25 23:14:08 +00:00
Antoine Pitrou
68e5c044e8
Issue #7322 : Trying to read from a socket's file-like object after a timeout
...
occurred now raises an error instead of silently losing data.
Patch by Ross Lagerwall.
2011-02-25 23:07:44 +00:00
Vinay Sajip
fc1cf41911
test_logging: Added more diagnostics for buildbot failures.
2011-02-25 22:45:25 +00:00
Giampaolo Rodolà
95bcb93041
Issue 11291: poplib suppresses errors on QUIT.
2011-02-25 22:28:24 +00:00
Giampaolo Rodolà
103a6d6cd6
Issue 11177: asyncore's create_socket() arguments can now be omitted.
2011-02-25 22:21:22 +00:00
Antoine Pitrou
0bd4deba38
Issue #6064 : Add a `daemon` keyword argument to the threading.Thread
...
and multiprocessing.Process constructors in order to override the
default behaviour of inheriting the daemonic property from the current
thread/process.
2011-02-25 22:07:43 +00:00
Giampaolo Rodolà
4bc685752f
(issue 11323) - attempt to fix solaris buildbot failure for os.sendfile(). Also fixed an AttributeError in get/set priority tests.
2011-02-25 21:46:01 +00:00
Antoine Pitrou
d843c2d86f
Merged revisions 88610 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88610 | antoine.pitrou | 2011-02-25 22:24:11 +0100 (ven., 25 févr. 2011) | 4 lines
Issue #10956 : Buffered I/O classes retry reading or writing after a signal
has arrived and the handler returned successfully.
........
2011-02-25 21:34:39 +00:00
Antoine Pitrou
707ce82cab
Issue #10956 : Buffered I/O classes retry reading or writing after a signal
...
has arrived and the handler returned successfully.
2011-02-25 21:24:11 +00:00
Giampaolo Rodolà
18e8bcb289
Issue 10784: adds os.getpriority() and os.setpriority() functions.
2011-02-25 20:57:54 +00:00
Giampaolo Rodolà
31c44031f8
Merged revisions 88604 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88604 | giampaolo.rodola | 2011-02-25 21:05:48 +0100 (ven, 25 feb 2011) | 1 line
(issue 11214) - fix asyncore.strerror test failure on AIX
........
2011-02-25 20:07:25 +00:00
Giampaolo Rodolà
d2751fb482
(issue 11214) - fix asyncore.strerror test failure on AIX
2011-02-25 20:05:48 +00:00
Giampaolo Rodolà
46134645aa
Skip os.sendfile() test if threading module is not available.
2011-02-25 20:01:05 +00:00
Vinay Sajip
eea22d2d66
logging: enabled test which was intermittently failing on buildbots.
2011-02-25 17:02:43 +00:00
Marc-André Lemburg
8f36af7a4c
Normalize the encoding names for Latin-1 and UTF-8 to
...
'latin-1' and 'utf-8'.
These are optimized in the Python Unicode implementation
to result in more direct processing, bypassing the codec
registry.
Also see issue11303.
2011-02-25 15:42:01 +00:00
Giampaolo Rodolà
c9c2c8b034
Issue 10882: add os.sendfile(). (patch provided by Ross Lagerwall)
2011-02-25 14:39:16 +00:00
Benjamin Peterson
2ec8cbc75f
rewrite with assertIs
2011-02-25 14:05:42 +00:00
Eli Bendersky
67ebabd152
Removed fcmp and FUZZ from test.support, following the discussion on python-dev:
...
http://mail.python.org/pipermail/python-dev/2011-January/107735.html
2011-02-25 10:14:17 +00:00
Georg Brandl
d98934c483
Merged revisions 87101,87146,87156,87172,87175,87371,87378,87522-87524,87526-87528,87530-87536,87581 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r87101 | georg.brandl | 2010-12-06 23:02:48 +0100 (Mo, 06 Dez 2010) | 1 line
Remove visible XXX comments.
........
r87146 | georg.brandl | 2010-12-09 19:08:43 +0100 (Do, 09 Dez 2010) | 1 line
Fix "seperate".
........
r87156 | georg.brandl | 2010-12-10 11:01:44 +0100 (Fr, 10 Dez 2010) | 1 line
#10668 : fix wrong call of __init__.
........
r87172 | georg.brandl | 2010-12-11 20:10:30 +0100 (Sa, 11 Dez 2010) | 1 line
Avoid AttributeError(_closed) when a TemporaryDirectory is deallocated whose mkdtemp call failed.
........
r87175 | georg.brandl | 2010-12-11 23:19:34 +0100 (Sa, 11 Dez 2010) | 1 line
Fix markup.
........
r87371 | georg.brandl | 2010-12-18 17:21:58 +0100 (Sa, 18 Dez 2010) | 1 line
Fix typo.
........
r87378 | georg.brandl | 2010-12-18 18:51:28 +0100 (Sa, 18 Dez 2010) | 1 line
#10723 : add missing builtin exceptions.
........
r87522 | georg.brandl | 2010-12-28 10:16:12 +0100 (Di, 28 Dez 2010) | 1 line
Replace sys.maxint mention by sys.maxsize.
........
r87523 | georg.brandl | 2010-12-28 10:18:24 +0100 (Di, 28 Dez 2010) | 1 line
Remove confusing paragraph -- this is relevant only to advanced users anyway and does not belong into the tutorial.
........
r87524 | georg.brandl | 2010-12-28 10:29:19 +0100 (Di, 28 Dez 2010) | 1 line
Fix advice: call PyType_Ready to fill in ob_type of custom types.
........
r87526 | georg.brandl | 2010-12-28 11:38:33 +0100 (Di, 28 Dez 2010) | 1 line
#10777 : fix iteration over dict keys while mutating the dict.
........
r87527 | georg.brandl | 2010-12-28 11:56:20 +0100 (Di, 28 Dez 2010) | 1 line
#10768 : fix ScrolledText widget construction, and make the example work from the interactive shell.
........
r87528 | georg.brandl | 2010-12-28 12:02:12 +0100 (Di, 28 Dez 2010) | 1 line
Add news entry and clarify another.
........
r87530 | georg.brandl | 2010-12-28 12:06:07 +0100 (Di, 28 Dez 2010) | 1 line
#10767 : update README in crashers; not all may have a bug entry and/or be fixed.
........
r87531 | georg.brandl | 2010-12-28 12:08:17 +0100 (Di, 28 Dez 2010) | 1 line
#10742 : document readonly attribute of memoryviews.
........
r87532 | georg.brandl | 2010-12-28 12:15:49 +0100 (Di, 28 Dez 2010) | 1 line
#10781 : clarify that *encoding* is not a parameter for Node objects in general.
........
r87533 | georg.brandl | 2010-12-28 12:38:12 +0100 (Di, 28 Dez 2010) | 1 line
Remove history; adapt a bit more to reST, since this will once be part of the dev guide.
........
r87534 | georg.brandl | 2010-12-28 12:48:53 +0100 (Di, 28 Dez 2010) | 1 line
Rewrap.
........
r87535 | georg.brandl | 2010-12-28 12:49:41 +0100 (Di, 28 Dez 2010) | 1 line
#10739 : document that on Windows, socket.makefile() does not make a file that has a true file descriptor usable where such a thing is expected.
........
r87536 | georg.brandl | 2010-12-28 12:53:25 +0100 (Di, 28 Dez 2010) | 1 line
#10609 : fix non-working dbm example.
........
r87581 | georg.brandl | 2010-12-30 18:36:17 +0100 (Do, 30 Dez 2010) | 1 line
Fix NameErrors.
........
2011-02-25 10:03:34 +00:00
Georg Brandl
f6c8fd62b9
Merged revisions 86537,86867-86868,86881,86887,86913-86915,86931-86933,86960,86964,86974,86980,86996,87008,87050 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r86537 | georg.brandl | 2010-11-19 23:09:04 +0100 (Fr, 19 Nov 2010) | 1 line
Do not put a raw REPLACEMENT CHARACTER in the document.
........
r86867 | georg.brandl | 2010-11-29 15:50:54 +0100 (Mo, 29 Nov 2010) | 1 line
Fix indentation bug.
........
r86868 | georg.brandl | 2010-11-29 15:53:15 +0100 (Mo, 29 Nov 2010) | 1 line
Fix heading style inconsistencies.
........
r86881 | georg.brandl | 2010-11-30 08:43:28 +0100 (Di, 30 Nov 2010) | 1 line
#10584 : fix bad links.
........
r86887 | georg.brandl | 2010-11-30 15:57:54 +0100 (Di, 30 Nov 2010) | 1 line
Fix typo.
........
r86913 | georg.brandl | 2010-12-01 16:32:43 +0100 (Mi, 01 Dez 2010) | 1 line
Add missing word, and add a better reference to the actual function.
........
r86914 | georg.brandl | 2010-12-01 16:36:33 +0100 (Mi, 01 Dez 2010) | 1 line
#10594 : fix parameter names in PyList API docs.
........
r86915 | georg.brandl | 2010-12-01 16:44:25 +0100 (Mi, 01 Dez 2010) | 1 line
Fix some markup and style in the unittest docs.
........
r86931 | georg.brandl | 2010-12-02 10:06:12 +0100 (Do, 02 Dez 2010) | 1 line
Fix-up documentation of makedirs().
........
r86932 | david.malcolm | 2010-12-02 17:41:00 +0100 (Do, 02 Dez 2010) | 2 lines
Fix spelling of Jamie Zawinski's surname in urllib.parse docstring (issue 10606)
........
r86933 | georg.brandl | 2010-12-02 19:02:01 +0100 (Do, 02 Dez 2010) | 1 line
#10597 : fix Py_SetPythonHome docs by pointing to where the meaning of PYTHONHOME is already documented.
........
r86960 | georg.brandl | 2010-12-03 08:55:44 +0100 (Fr, 03 Dez 2010) | 1 line
#10360 : catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does.
........
r86964 | georg.brandl | 2010-12-03 10:58:38 +0100 (Fr, 03 Dez 2010) | 1 line
#10549 : fix interface of docclass() for text documenter.
........
r86974 | georg.brandl | 2010-12-03 16:30:09 +0100 (Fr, 03 Dez 2010) | 1 line
Markup consistency fixes.
........
r86980 | georg.brandl | 2010-12-03 18:19:27 +0100 (Fr, 03 Dez 2010) | 1 line
Fix punctuation.
........
r86996 | georg.brandl | 2010-12-03 20:56:42 +0100 (Fr, 03 Dez 2010) | 1 line
Fix indentation.
........
r87008 | georg.brandl | 2010-12-04 10:04:04 +0100 (Sa, 04 Dez 2010) | 1 line
Fix typo.
........
r87050 | georg.brandl | 2010-12-04 18:09:30 +0100 (Sa, 04 Dez 2010) | 1 line
Fix typo.
........
2011-02-25 09:48:21 +00:00
Eli Bendersky
cbbaa96036
Issue #10516 : adding list.clear() and list.copy() methods
2011-02-25 05:47:53 +00:00
Antoine Pitrou
915605c59a
Merged revisions 88550 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88550 | antoine.pitrou | 2011-02-24 21:50:49 +0100 (jeu., 24 févr. 2011) | 4 lines
Issue #11286 : Raise a ValueError from calling PyMemoryView_FromBuffer with
a buffer struct having a NULL data pointer.
........
2011-02-24 20:53:48 +00:00
Antoine Pitrou
5bffa79c22
Issue #11286 : Raise a ValueError from calling PyMemoryView_FromBuffer with
...
a buffer struct having a NULL data pointer.
2011-02-24 20:50:49 +00:00
Alexander Belopolsky
ec8f0df229
Merged revisions 88546 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88546 | alexander.belopolsky | 2011-02-24 14:40:09 -0500 (Thu, 24 Feb 2011) | 3 lines
Issue #11286 : Fixed unpickling of empty 2.x strings.
........
2011-02-24 20:34:38 +00:00
Alexander Belopolsky
1ce92dc20d
Issue #11286 : Fixed unpickling of empty 2.x strings.
2011-02-24 19:40:09 +00:00
Éric Araujo
6c3787cb70
Allow usage of SomeABC.register as a class decorator. Patch by Edoardo Spadolini ( #10868 ).
2011-02-24 18:03:10 +00:00
Victor Stinner
e1ea8298c6
Issue #3080 : Fix test_reprlib on Windows
...
Fix the test for last module changes (r88520).
2011-02-23 14:14:48 +00:00
Victor Stinner
659eb84457
Merged revisions 88481 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88481 | victor.stinner | 2011-02-21 22:13:44 +0100 (lun., 21 févr. 2011) | 4 lines
Fix PyUnicode_FromFormatV("%c") for non-BMP char
Issue #10830 : Fix PyUnicode_FromFormatV("%c") for non-BMP characters on
narrow build.
........
2011-02-23 12:14:22 +00:00
Victor Stinner
02bfdb3f79
Merged revisions 88530 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88530 | victor.stinner | 2011-02-23 13:07:37 +0100 (mer., 23 févr. 2011) | 4 lines
Issue #11272 : Fix input() and sys.stdin for Windows newline
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').
........
2011-02-23 12:10:23 +00:00
Victor Stinner
c0f1a1afae
Issue #11272 : Fix input() and sys.stdin for Windows newline
...
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').
2011-02-23 12:07:37 +00:00
Lars Gustäbel
9f6cbe09cc
Merged revisions 88528 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88528 | lars.gustaebel | 2011-02-23 12:42:22 +0100 (Wed, 23 Feb 2011) | 16 lines
Issue #11224 : Improved sparse file read support (r85916) introduced a
regression in _FileInFile which is used in file-like objects returned
by TarFile.extractfile(). The inefficient design of the
_FileInFile.read() method causes various dramatic side-effects and
errors:
- The data segment of a file member is read completely into memory
every(!) time a small block is accessed. This is not only slow
but may cause unexpected MemoryErrors with very large files.
- Reading members from compressed tar archives is even slower
because of the excessive backwards seeking which is done when the
same data segment is read over and over again.
- As a backwards seek on a TarFile opened in stream mode is not
possible, using extractfile() fails with a StreamError.
........
2011-02-23 11:52:31 +00:00
Lars Gustäbel
dd071045e7
Issue #11224 : Improved sparse file read support (r85916) introduced a
...
regression in _FileInFile which is used in file-like objects returned
by TarFile.extractfile(). The inefficient design of the
_FileInFile.read() method causes various dramatic side-effects and
errors:
- The data segment of a file member is read completely into memory
every(!) time a small block is accessed. This is not only slow
but may cause unexpected MemoryErrors with very large files.
- Reading members from compressed tar archives is even slower
because of the excessive backwards seeking which is done when the
same data segment is read over and over again.
- As a backwards seek on a TarFile opened in stream mode is not
possible, using extractfile() fails with a StreamError.
2011-02-23 11:42:22 +00:00
Raymond Hettinger
dcb29c93d2
Add tests for the collections helper class and sync-up with py3k branch.
2011-02-23 08:28:06 +00:00
Raymond Hettinger
499e19340e
Add tests for the _ChainMap helper class.
2011-02-23 07:56:53 +00:00
Raymond Hettinger
57d1a887e7
Fix imports from collections.abc
2011-02-23 00:46:28 +00:00
Antoine Pitrou
cc76a410e2
Merged revisions 88511 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines
Issue #11277 : finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
........
2011-02-22 22:36:07 +00:00
Brett Cannon
daa5799cb8
Make Lib/crypt.py meet PEP 8 standards. This also led to a tweak in the new API
...
by making methods() into a module attribute as it is statically calculated.
2011-02-22 21:48:06 +00:00
Antoine Pitrou
543b7f3ee9
Issue #11277 : finally fix Snow Leopard crash following r88460.
...
(probably an OS-related issue with mmap)
2011-02-22 21:42:56 +00:00
Brett Cannon
292ee5dc43
Fix test.test_crypt.test_methods() to pass on OS X.
2011-02-22 20:17:14 +00:00
Sean Reifscheider
e2dfefbe85
Issue #10924 : Adding salt and Modular Crypt Format to crypt library.
2011-02-22 10:55:44 +00:00
Brett Cannon
64c9af1508
Merged revisions 88496 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88496 | brett.cannon | 2011-02-21 19:14:12 -0800 (Mon, 21 Feb 2011) | 4 lines
Issue #10512 : close the log file in cgi when running tests.
Thanks to Nadeem Vawda for the find and an initial fix.
........
2011-02-22 03:16:07 +00:00
Brett Cannon
eeb114b028
Issue #10512 : close the log file in cgi when running tests.
...
Thanks to Nadeem Vawda for the find and an initial fix.
2011-02-22 03:14:12 +00:00
Brett Cannon
7a54073a56
Issue #10992 : make tests pass when run under coverage.
...
Various tests fail when run under coverage. A primary culprit is refcount tests
which fail as the counts are thrown off by the coverage code. A new decorator
-- test.support.refcount_test -- is used to decorate tests which test refcounts
and to skip them when running under coverage. Other tests simply fail because
of changes in the system (e.g., __local__ suddenly appearing).
Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
2011-02-22 03:04:06 +00:00
Raymond Hettinger
16fe75e4e0
Have the test filename match the module filename.
2011-02-22 01:48:33 +00:00
Raymond Hettinger
158c9c26fc
Issue #11085 : Moved collections abstract base classes into a separate module
...
called collections.abc, following the pattern used by importlib.abc. For
backwards compatibility, the names continue to also be imported into the
collections module.
2011-02-22 00:41:50 +00:00
Antoine Pitrou
97696cbf36
Merged revisions 88486 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines
Issue #4681 : Allow mmap() to work on file sizes and offsets larger than
4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for
32-bit Windows.
........
2011-02-21 23:46:27 +00:00
Antoine Pitrou
ecc26923cd
Issue #4681 : Allow mmap() to work on file sizes and offsets larger than
...
4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for
32-bit Windows.
2011-02-21 23:41:12 +00:00
Antoine Pitrou
a47c25d74f
Merged revisions 88484 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88484 | antoine.pitrou | 2011-02-21 22:55:48 +0100 (lun., 21 févr. 2011) | 4 lines
Issue #10826 : Prevent sporadic failure in test_subprocess on Solaris due
to open door files.
........
2011-02-21 21:58:42 +00:00
Antoine Pitrou
ce58dc7b16
Issue #10826 : Prevent sporadic failure in test_subprocess on Solaris due
...
to open door files.
2011-02-21 21:55:48 +00:00
Victor Stinner
5ed8b2c737
Fix PyUnicode_FromFormatV("%c") for non-BMP char
...
Issue #10830 : Fix PyUnicode_FromFormatV("%c") for non-BMP characters on
narrow build.
2011-02-21 21:13:44 +00:00
Victor Stinner
441cc01e0f
compileall uses repr() to format filenames/paths
...
Issue #11169 : compileall module uses repr() to format filenames and paths to
escape surrogate characters and show spaces.
2011-02-21 20:58:02 +00:00
Brett Cannon
31f5929c1e
Issue #10990 : Prevent tests from clobbering a set trace function.
...
Many tests simply didn't care if they unset a pre-existing trace function. This
made test coverage impossible. This patch fixes various tests to put back any
pre-existing trace function. It also introduces test.support.no_tracing as a
decorator which will temporarily unset the trace function for tests which
simply fail otherwise.
Thanks to Kristian Vlaardingerbroek for helping to find the cause of various
trace function unsets.
2011-02-21 19:29:56 +00:00
Antoine Pitrou
f3d22755f9
Merged revisions 88460 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines
Issue #10276 : Fix the results of zlib.crc32() and zlib.adler32() on buffers
larger than 4GB. Patch by Nadeem Vawda.
........
2011-02-21 18:09:00 +00:00
Antoine Pitrou
54f0f84e9f
Issue #10276 : Fix the results of zlib.crc32() and zlib.adler32() on buffers
...
larger than 4GB. Patch by Nadeem Vawda.
2011-02-21 18:03:13 +00:00
Alexander Belopolsky
622ce124b6
Merged revisions 87921 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87921 | alexander.belopolsky | 2011-01-10 21:22:16 -0500 (Mon, 10 Jan 2011) | 1 line
This should fix mktime test on Windows
........
2011-02-15 15:58:04 +00:00
Alexander Belopolsky
4fb96f41f4
Merged revisions 87919 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87919 | alexander.belopolsky | 2011-01-10 20:21:25 -0500 (Mon, 10 Jan 2011) | 4 lines
Issue #1726687 : time.mktime() will now correctly compute value one
second before epoch. Original patch by Peter Wang, reported by Martin
Blais.
........
2011-02-15 15:40:59 +00:00
R. David Murray
fc14114ca9
#11116 : roll back on error during add so mailbox isn't left corrupted.
2011-02-11 22:47:17 +00:00
Senthil Kumaran
2933312fe7
Fixed issue11082 - Reject str for POST data with a TypeError. Document the need to explicitly encode to bytes when using urlencode.
2011-02-11 11:25:47 +00:00
R. David Murray
43b2f457a0
Merged revisions 87136,87221,87256,87337-87338,87571,87839,88164 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87136 | r.david.murray | 2010-12-08 17:53:00 -0500 (Wed, 08 Dec 2010) | 6 lines
Have script_helper._assert_python strip refcount strings from stderr.
This makes the output of the function and those that depend on it
independent of whether or not they are being run under a debug
build.
........
r87221 | r.david.murray | 2010-12-13 19:55:46 -0500 (Mon, 13 Dec 2010) | 4 lines
#10699 : fix docstring for tzset: it does not take a parameter
Thanks to Garrett Cooper for the fix.
........
r87256 | r.david.murray | 2010-12-14 21:19:14 -0500 (Tue, 14 Dec 2010) | 2 lines
#10705 : document what the values of debuglevel are and mean.
........
r87337 | r.david.murray | 2010-12-17 11:11:40 -0500 (Fri, 17 Dec 2010) | 2 lines
#10559 : provide instructions for accessing sys.argv when first mentioned.
........
r87338 | r.david.murray | 2010-12-17 11:29:07 -0500 (Fri, 17 Dec 2010) | 2 lines
#10454 : clarify the compileall docs and help messages.
[compileall.py changes not backported.]
........
r87571 | r.david.murray | 2010-12-29 14:06:48 -0500 (Wed, 29 Dec 2010) | 2 lines
Fix same typo in docs.
........
r87839 | r.david.murray | 2011-01-07 16:57:25 -0500 (Fri, 07 Jan 2011) | 9 lines
Fix formatting of values with embedded newlines when rfc2047 encoding
Before this patch if a value being encoded had an embedded newline,
the line following the newline would have no leading whitespace,
and the whitespace it did have was encoded into the word. Now
the existing whitespace gets turned into a blank, the way it does
in other header reformatting, and the _continuation_ws gets added
at the beginning of the encoded line.
........
r88164 | r.david.murray | 2011-01-24 14:34:58 -0500 (Mon, 24 Jan 2011) | 12 lines
#10960 : fix 'stat' links, link to lstat from stat, general tidy of stat doc.
Original patch by Michal Nowikowski, with some additions and wording
fixes by me.
I changed the wording from 'Performs a stat system call' to 'Performs
the equivalent of a stat system call', since on Windows there are no
stat/lstat system calls involved. I also extended Michal's breakout
of the attributes into a list to the other paragraphs, and rearranged
the order of the paragraphs in the 'stat' docs to make it flow
better and put it in what I think is a more logical/useful order.
........
2011-02-11 03:13:19 +00:00
Nick Coghlan
ef3165720a
Issue 10971: Make test_zipimport_support once again compatible with refleak hunting (reviewed by Georg Brandl)
2011-02-07 13:43:07 +00:00
Georg Brandl
4543846517
#11132 : pass optimize parameter to recursive call in compileall.compile_dir(). Reviewed by Eric A.
2011-02-07 12:36:54 +00:00
Éric Araujo
b344dd06c8
Merged revisions 86236,86240,86332,86340,87271,87273,87447 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
The missing NEWS entries correspond to changes that were made before 3.1.3, but
I think it’s not usual to edit entries of released versions, so I put them at
the top.
........
r86236 | eric.araujo | 2010-11-06 03:44:43 +0100 (sam., 06 nov. 2010) | 2 lines
Make sure each test can be run standalone (./python Lib/distutils/tests/x.py)
........
r86240 | eric.araujo | 2010-11-06 05:11:59 +0100 (sam., 06 nov. 2010) | 2 lines
Prevent ResourceWarnings in test_gettext
........
r86332 | eric.araujo | 2010-11-08 19:15:17 +0100 (lun., 08 nov. 2010) | 4 lines
Add missing NEWS entry for a fix committed by Senthil.
All recent modifications to distutils should now be covered in NEWS.
........
r86340 | eric.araujo | 2010-11-08 22:48:23 +0100 (lun., 08 nov. 2010) | 2 lines
This was actually fixed for the previous alpha.
........
r87271 | eric.araujo | 2010-12-15 20:09:58 +0100 (mer., 15 déc. 2010) | 2 lines
Improve trace documentation (#9264 ). Patch by Eli Bendersky.
........
r87273 | eric.araujo | 2010-12-15 20:30:15 +0100 (mer., 15 déc. 2010) | 2 lines
Use nested method directives, rewrap long lines, fix whitespace.
........
r87447 | eric.araujo | 2010-12-23 20:13:05 +0100 (jeu., 23 déc. 2010) | 2 lines
Fix typo in superclass method name
........
2011-02-02 21:38:37 +00:00
Éric Araujo
a172e2502c
Fix typo: BadZipFile exists in 3.2+ only, not older versions.
2011-02-02 16:58:43 +00:00
Georg Brandl
0f6b47a338
#10680 : fix mutually exclusive arguments in argument groups.
2011-01-30 12:19:35 +00:00
Georg Brandl
d2f3857c40
#10961 : fix exception handling in new pydoc server code.
...
Patch by Ron Adam, reviewed by Eric Araujo.
2011-01-30 08:37:19 +00:00