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
Raymond Hettinger
4967be074b
Issue #11071 : Fix whatsnew description of O/S access to raw bytes.
2011-03-25 12:41:34 -07:00
Raymond Hettinger
df07aacebb
Issue #11071 : Fix whatsnew description of O/S access to raw bytes.
2011-03-25 12:41:07 -07:00
R David Murray
961355a56a
Merge #11584 : Since __getitem__ returns headers, make decode_header handle them.
2011-03-25 15:31:52 -04:00
Éric Araujo
4dcf50250c
Use universal construct os.path.expanduser('~') instead of os.environ['HOME']
2011-03-25 20:31:50 +01:00
R David Murray
041015cc70
#11584 : Since __getitem__ returns headers, make decode_header handle them.
...
Why I consider this a bug rather than an API change: the API change was
to Message, which didn't used to return Headers unless you added them
yourself. Now it does (for 8bit binary header input), so decode_header
needs to be able to handle them.
2011-03-25 15:10:55 -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
ebbf1e67a8
#2650 : Refactor re.escape to use enumerate().
2011-03-25 14:19:30 +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
Kurt B. Kaiser
07b29a07ad
Merge from 3.2 again
2011-03-25 00:32:23 -04:00
Kurt B. Kaiser
32a95a70c9
Merge from 3.1 again
2011-03-25 00:30:40 -04:00
Kurt B. Kaiser
7a0814c144
Merge from 3.2 again
2011-03-25 00:26:11 -04:00
Kurt B. Kaiser
439dfffaf3
Merge 3.2 heads
2011-03-25 00:22:09 -04:00
Kurt B. Kaiser
e093b0d185
Merge default heads
2011-03-24 23:41:20 -04:00
Eli Bendersky
1aef6b6e1e
Issue #11634 : Remove misleading paragraph from a comment
2011-03-24 22:32:56 +02:00
Kurt B. Kaiser
e88893ccc6
Merge heads
2011-03-24 15:10:28 -04:00
Kurt B. Kaiser
85f3cb45c1
Merge 3.2
2011-03-24 15:03:14 -04: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
Kurt B. Kaiser
5cf7878fda
Merge 3.1
2011-03-24 13:19:35 -04:00
Kurt B. Kaiser
73979c3149
Merge 3.2
2011-03-24 12:51:10 -04: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
R David Murray
c7d28be62f
Merge #11606 : improved body_encode algorithm, no longer produces overlong lines
2011-03-24 12:27:23 -04:00
R David Murray
b938c8c253
#11606 : improved body_encode algorithm, no longer produces overlong lines
...
Algorithm and initial patch by Michael Henry.
2011-03-24 12:19:26 -04:00
Kurt B. Kaiser
f9439914c8
Merge 3.1
2011-03-24 12:03:36 -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
Senthil Kumaran
ea8b024d11
issue11236 getpass.getpass to respond ctrl-c or ctrl-z
2011-03-24 22:27:01 +08:00
Senthil Kumaran
e6ead3905d
issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda
2011-03-24 11:47:29 +08:00
Senthil Kumaran
2024acd36f
issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. Patch by Nadeem Vawda.
2011-03-24 11:46:19 +08: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
Brett Cannon
5d43cff623
Remove a stale comment.
2011-03-23 18:12:24 -07:00
Brett Cannon
442c9b92d8
Make importlib compatible with __import__ by "fixing" code.co_filename
...
paths.
__import__ does a little trick when importing from bytecode by
back-patching the co_filename paths to point to the file location
where the code object was loaded from, *not* where the code object was
originally created. This allows co_filename to point to a valid path.
Problem is that co_filename is immutable from Python, so a private
function -- imp._fix_co_filename() -- had to be introduced in order to
get things working properly. Originally the plan was to add a file
argument to marshal.loads(), but that failed as the algorithm used by
__import__ is not fully recursive as one might expect, so to be fully
backwards-compatible the code used by __import__ needed to be exposed.
This closes issue #6811 by taking a different approach than outlined
in the issue.
2011-03-23 16:14:42 -07:00
Brett Cannon
a7468bc5c6
Have importlib use the repr of a module name in error messages.
...
This makes it obvious that an import failed because of some extraneous
whitespace (e.g., a newline).
This is a partial fix for issue #8754 .
2011-03-23 16:06:00 -07:00
Antoine Pitrou
f3c524d535
Issue #11653 : fix -W with -j in regrtest.
2011-03-23 23:05:07 +01:00
Antoine Pitrou
e44b1258ea
Add NEWS entry for 9aa6097131ef
2011-03-23 23:02:31 +01:00
Antoine Pitrou
293954dd76
Issue #11653 : fix -W with -j in regrtest
2011-03-23 23:01:49 +01:00
Raymond Hettinger
15d0c1d073
Minor clean-ups.
2011-03-23 14:38:39 -07:00
Raymond Hettinger
28dff61287
Add news entry for the _source attribute created by namedtuple.
2011-03-23 13:05:02 -07:00