Barry Warsaw
409da157d7
Eric Snow's implementation of PEP 421.
...
Issue 14673: Add sys.implementation
2012-06-03 16:18:47 -04:00
R David Murray
82ffabdfa4
#2658 : Add test for issue fixed by fix for #1079 .
2012-06-03 12:27:07 -04:00
R David Murray
07ea53cb21
#1079 : Fix parsing of encoded words.
...
This is a behavior change: before this leading and trailing spaces were
stripped from ASCII parts, now they are preserved. Without this fix we didn't
parse the examples in the RFC correctly, so I think breaking backward
compatibility here is justified.
Patch by Ralf Schlatterbeck.
2012-06-02 17:56:49 -04:00
Victor Stinner
0dec1bfef9
Fix sporadic failure of test_time.test_process_time() on Windows
...
Use a threshold of 20 ms instead of 10 ms.
2012-06-01 22:45:23 +02:00
Hynek Schlawack
35db513187
#14814 : Fix errror message creation in ipaddress.collapse_addresses
2012-06-01 20:12:17 +02:00
Nick Coghlan
77452fc121
Close #14969 : Improve the handling of exception chaining in contextlib.ExitStack
2012-06-01 22:48:32 +10:00
Eli Bendersky
2b6b73e7e1
Issue #14007 : implement doctype() method calling in XMLParser of _elementtree.
...
Includes exposing a doctype handler from expat through pyexpat.
2012-06-01 11:32:34 +03:00
Eli Bendersky
52467b167e
Issue #14007 : make XMLParser a real subclassable type exported from _elementtree. +cleanups
2012-06-01 07:13:08 +03:00
R David Murray
1be413e366
Don't use metaclasses when class decorators can do the job.
...
Thanks to Nick Coghlan for pointing out that I'd forgotten about class
decorators.
2012-05-31 18:00:45 -04:00
Nick Coghlan
a5bd2a18ce
Close #14963 : Use an iterative algorithm in contextlib.ExitStack.__exit__ (Patch by Alon Horev)
2012-06-01 00:00:38 +10:00
Nick Coghlan
c73e8c2830
Issue #14963 : Added test cases for contextlib.ExitStack exception handling behaviour (Initial patch by Alon Horev)
2012-05-31 23:49:26 +10:00
Vinay Sajip
d70be9ba1f
Added test skip under Windows, as not applicable there.
2012-05-31 12:37:04 +01:00
R David Murray
56517e5cb9
Make parameterized tests in email less hackish.
...
Or perhaps more hackish, depending on your perspective. But at least this
way it is now possible to run the individual tests using the unittest CLI.
2012-05-30 21:53:40 -04:00
Eli Bendersky
48d358ba86
Issue #14007 : implemented the 'element_factory' feature of TreeBuilder in
...
_elementtree, with a test.
2012-05-30 17:57:50 +03:00
R David Murray
bb75678003
#14796 : fix failure of new calendar test on windows.
2012-05-30 08:10:54 -04:00
Vinay Sajip
5e86eed33e
Reapplied skip logic for test on Windows, which appears to have been lost during a merge.
2012-05-29 22:48:10 +01:00
Vinay Sajip
c1f0b53875
Updated test to reflect renamed file.
2012-05-29 22:29:50 +01:00
R David Murray
d0c8695617
#14796 : improve calendar test coverage.
...
Patch by Oleg Plakhotnyuk.
2012-05-29 12:55:05 -04:00
R David Murray
026ba312d4
#10839 : add new test file that was omitted from checkin
2012-05-29 12:31:11 -04:00
Eli Bendersky
58d548dff1
Issue #14007 : make TreeBuilder an actual type exposed from _elementtree, and subclassable.
2012-05-29 15:45:16 +03:00
Hynek Schlawack
52209d3a1e
#14835 : Make plistlib output empty arrays & dicts like OS X
...
Patch by Sidney San Martín.
2012-05-29 12:04:54 +02:00
Eli Bendersky
737b173355
Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.
...
Add attrib keyword to Element and SubElement in _elementtree.
Patch developed with Ezio Melotti.
2012-05-29 06:02:56 +03:00
R David Murray
6bed342b58
Refactor test_email/test_pickleable and add tests for date headers
2012-05-28 21:09:04 -04:00
R David Murray
a7c9ddb59c
Regularize test_email/test_headerregistry's references to policy.
2012-05-28 20:22:37 -04:00
R David Murray
d41595b920
Refactor test_email/test_defect_handling.
2012-05-28 20:14:10 -04:00
Richard Oudkerk
3e0a1eb889
Issue #14930 : Make memoryview objects weakrefable.
2012-05-28 21:35:09 +01:00
Vinay Sajip
ef4c5010e4
Fixed typo.
2012-05-28 17:01:17 +01:00
Vinay Sajip
382a7c0180
Tweaked tests to use launcher executable name on OS X.
2012-05-28 16:34:47 +01:00
R David Murray
7ef3ff3f2e
#12515 : email now registers a defect if the MIME end boundary is missing.
...
This commit also restores the news item for 167256 that it looks like
Terry inadvertently deleted. (Either that, or I don't understand
now merging works...which is equally possible.)
2012-05-27 22:20:42 -04:00
R David Murray
80e0aee95b
#1672568 : email now registers defects for base64 payload format errors.
...
Which also means that it is now producing *something* for any base64
payload, which is what leads to the couple of older test changes in
test_email. This is a slightly backward incompatible behavior change,
but the new behavior is so much more useful than the old (you can now
*reliably* detect errors, and any program that was detecting errors by
sniffing for a base64 return from get_payload(decode=True) and then doing
its own error-recovery decode will just get the error-recovery decode
right away). So this seems to me to be worth the small risk inherent
in this behavior change.
This patch also refactors the defect tests into a separate test file,
since they are no longer just parser tests.
2012-05-27 21:23:34 -04:00
R David Murray
adbdcdbd95
#14925 : email now registers a defect for missing header/body separator.
...
This patch also deprecates the MalformedHeaderDefect. My best guess is that
this defect was rendered obsolete by a refactoring of the parser, and the
corresponding defect for the new parser (which this patch introduces) was
overlooked.
2012-05-27 20:45:01 -04:00
R David Murray
ea9766897b
Make headerregistry fully part of the provisional api.
...
When I made the checkin of the provisional email policy, I knew that
Address and Group needed to be made accessible from somewhere. The more
I looked at it, though, the more it became clear that since this is a
provisional API anyway, there's no good reason to hide headerregistry as
a private API. It was designed to ultimately be part of the public API,
and so it should be part of the provisional API.
This patch fully documents the headerregistry API, and deletes the
abbreviated version of those docs I had added to the provisional policy
docs.
2012-05-27 15:03:38 -04:00
Vinay Sajip
393da3240a
Changed executable name computation in test_venv to allow for debug executables.
2012-05-27 19:05:36 +01:00
Vinay Sajip
b3b49cd1d2
Refined venv tests.
2012-05-27 18:39:22 +01:00
Vinay Sajip
7e203498d1
Fixed _sys_home computation and added diagnostics for Windows buildbot failures.
2012-05-27 17:30:09 +01:00
Nick Coghlan
0b43bcf528
Close #14857 : fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370 , but also updates unittest.mock to workaround that issue
2012-05-27 18:17:07 +10:00
Vinay Sajip
ee2bbed925
Merged upstream changes.
2012-05-26 20:39:27 +01:00
Vinay Sajip
42211426eb
Addressed some buildbot errors and comments on the checkin by Antoine on python-dev.
2012-05-26 20:36:12 +01:00
R David Murray
d1a30c939c
#8739 : upgrade smtpd to RFC 5321 and 1870.
...
smtpd now handles EHLO and has infrastructure for extended smtp command mode.
The SIZE extension is also implemented. In order to support parameters on
MAIL FROM, the RFC 5322 parser from the email package is used to parse the
address "token".
Logging subclasses things and overrides __init__, so it was necessary to
update those __init__ functions in the logging tests to make the logging tests
pass.
The original suggestion and patch were by Alberto Trevino. Juhana Jauhiainen
added the --size argument and SIZE parameter support. Michele Orrù improved
the patch and added more tests. Dan Boswell conditionalized various bits of
code on whether or not we are in HELO or EHLO mode, as well as some other
improvements and tests. I finalized the patch and added the address parsing.
2012-05-26 14:33:59 -04:00
R David Murray
032eed3c4a
Recognize '<>' as a special case of an angle-addr in header_value_parser.
...
Although '<>' is invalid according to RFC 5322, SMTP uses it for various
things, and it sometimes ends up in email headers. This patch changes
get_angle_addr to recognize it and just register a Defect instead of raising a
parsing error.
2012-05-26 14:31:12 -04:00
Nick Coghlan
2c58910d3d
Issue #14814 : Clean out an obsolete property and method from ipaddress Network objects
2012-05-27 01:03:25 +10:00
Nick Coghlan
aff73f91cc
Issue #14814 : Cleanup ipaddress header comments
2012-05-27 00:57:25 +10:00
Nick Coghlan
51c3067551
Issue #14814 : In the spirit of TOOWTDI, ditch the redundant version parameter to the factory functions by using the appropriate direct class references instead
2012-05-27 00:25:58 +10:00
R David Murray
d2d521eafd
#665194 : Add a localtime function to email.utils.
...
Without this function people would be tempted to use the other date functions
in email.utils to compute an aware localtime, and those functions are not as
good for that purpose as this code. The code is Alexander Belopolsy's from
his proposed patch for issue 9527, with a fix (and additional tests) by Brian
K. Jones.
2012-05-25 23:22:59 -04:00
R David Murray
dcaf2ece6c
#12586 : Fix a small oversight in the new email policy header setting code.
...
This is a danger of focusing on unit tests: sometimes you forget
to do the integration tests.
2012-05-25 22:53:12 -04:00
Vinay Sajip
7ded1f0f69
Implemented PEP 405 (Python virtual environments).
2012-05-26 03:45:29 +01:00
R David Murray
0b6f6c82b5
#12586 : add provisional email policy with new header parsing and folding.
...
When the new policies are used (and only when the new policies are explicitly
used) headers turn into objects that have attributes based on their parsed
values, and can be set using objects that encapsulate the values, as well as
set directly from unicode strings. The folding algorithm then takes care of
encoding unicode where needed, and folding according to the highest level
syntactic objects.
With this patch only date and time headers are parsed as anything other than
unstructured, but that is all the helper methods in the existing API handle.
I do plan to add more parsers, and complete the set specified in the RFC
before the package becomes stable.
2012-05-25 18:42:14 -04:00
R David Murray
c27e52265b
#14731 : refactor email policy framework.
...
This patch primarily does two things: (1) it adds some internal-interface
methods to Policy that allow for Policy to control the parsing and folding of
headers in such a way that we can construct a backward compatibility policy
that is 100% compatible with the 3.2 API, while allowing a new policy to
implement the email6 API. (2) it adds that backward compatibility policy and
refactors the test suite so that the only differences between the 3.2
test_email.py file and the 3.3 test_email.py file is some small changes in
test framework and the addition of tests for bugs fixed that apply to the 3.2
API.
There are some additional teaks, such as moving just the code needed for the
compatibility policy into _policybase, so that the library code can import
only _policybase. That way the new code that will be added for email6
will only get imported when a non-compatibility policy is imported.
2012-05-25 15:01:48 -04:00
Eric V. Smith
f879e32cc5
Added test for namespace package dynamic path updates.
2012-05-25 11:25:27 -04:00
Hynek Schlawack
9866d96e48
#4841 : Fix FileIO constructor to honor closefd when called repeatedly
...
Patch by Victor Stinner.
2012-05-25 10:27:43 +02:00
Hynek Schlawack
2cc7156515
#4841 : Fix FileIO constructor to honor closefd when called repeatedly
...
Patch by Victor Stinner.
2012-05-25 10:05:53 +02:00
Eric V. Smith
984b11f88f
issue 14660: Implement PEP 420, namespace packages.
2012-05-24 20:21:04 -04:00
Senthil Kumaran
4715ca5600
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:57:38 +08:00
Senthil Kumaran
2fc5a50809
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:56:17 +08:00
Sandro Tosi
876ecad9f5
Issue #14814 : improve docstrings and arguments value handling, as per Terry J. Reedy's comments
2012-05-23 22:26:55 +02:00
Hynek Schlawack
e02ba1031f
#14885 : Make support.skip_unless_xattr check also tempfile
...
There is a rare edge case where the filesystem used by the tempfile functions
(usually /tmp) doesn't support xattrs while the one used by TESTFN (the current
directory, so likely to be below /home) does. This causes the xattr related
test_shutil tests fail. skip_unless_xattr now checks both.
I have also added skip_unless_xattr to __all__ where it has been missing.
2012-05-23 11:22:44 +02:00
Nick Coghlan
1d5ccdb24d
Close #14136 by cleaning up the PEP 409 command line test (patch by Ethan Furman)
2012-05-21 23:03:30 +10:00
Nick Coghlan
3267a30de1
Close #13585 : add contextlib.ExitStack to replace the ill-fated contextlib.nested API
2012-05-21 22:54:43 +10:00
Nick Coghlan
dc9b2555a8
Issue #14814 : addition of the ipaddress module (stage 1 - code and tests)
2012-05-20 21:01:57 +10:00
Senthil Kumaran
0b943a18ef
Issue #14426 : Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
2012-05-20 12:06:51 +08:00
Senthil Kumaran
00c2ec282e
Issue #14426 : Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
2012-05-20 12:05:16 +08:00
Eli Bendersky
b20df95827
Issue #14849 : setup Element data members to be assignable in subclasses
2012-05-20 06:33:29 +03:00
Nick Coghlan
7fc570a51e
Close #14588 : added a PEP 3115 compliant dynamic type creation mechanism
2012-05-20 02:34:13 +10:00
Ezio Melotti
ed1183db8b
#14072 : merge with 3.2.
2012-05-19 17:16:22 +03:00
Ezio Melotti
6709b7d5d1
#14072 : Fix parsing of tel URIs in urlparse by making the check for ports stricter.
2012-05-19 17:15:19 +03:00
Hynek Schlawack
d527259f14
#13152 : Allow to specify a custom tabsize for expanding tabs in textwrap
...
Patch by John Feuerstein.
2012-05-19 13:33:11 +02:00
Senthil Kumaran
d34b57a9a2
merge - Fix Issue14721: Send Content-length: 0 for empty body () in the http.client requests
2012-05-19 16:58:45 +08:00
Senthil Kumaran
5fa4a89601
Fix Issue14721: Send Content-length: 0 for empty body () in the http.client requests
2012-05-19 16:58:09 +08:00
Senthil Kumaran
15e848b076
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:12:46 +08:00
Senthil Kumaran
1be320ebdd
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:12:00 +08:00
Petri Lehtinen
43ae3ceab8
#14798 : pyclbr now raises ImportError instead of KeyError for missing packages
2012-05-18 21:59:49 +03:00
Petri Lehtinen
8d88604682
#14798 : pyclbr now raises ImportError instead of KeyError for missing packages
2012-05-18 21:56:36 +03:00
Antoine Pitrou
ebdcd859e5
Move private function _args_from_interpreter_flags() to subprocess.py, so
...
that it can be imported when threads are disabled.
(followup to issue #12098 )
2012-05-18 18:33:07 +02:00
Richard Oudkerk
77c84f2def
#12098 : Make multiprocessing's child processes inherit sys.flags on Windows
...
Initial patch by Sergey Mezentsev.
2012-05-18 14:28:02 +01:00
Antoine Pitrou
314a16b0ec
Make the test completely clean up after itself.
2012-05-17 21:02:54 +02:00
Antoine Pitrou
ea3eb88bca
Issue #9260 : A finer-grained import lock.
...
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
2012-05-17 18:55:59 +02:00
Antoine Pitrou
de9ac6c2e5
Issue #14780 : urllib.request.urlopen() now has a `cadefault` argument to use the default certificate store.
...
Initial patch by James Oakley.
2012-05-16 21:40:01 +02:00
Stefan Krah
5d953184a6
Issue #14779 : Get sizeof(void *) directly rather than relying on sysconfig.
2012-05-16 20:41:56 +02:00
Antoine Pitrou
019ff19c39
Issue #14693 : Under non-Windows platforms, hashlib's fallback modules are always compiled, even if OpenSSL is present at build time.
2012-05-16 16:41:26 +02:00
Giampaolo Rodola'
26fd8feb5e
merge heads
2012-05-16 16:03:07 +02:00
Giampaolo Rodola'
e126678216
#14807 : fix BB failures on Windows - avoid to to rely too many details of the mode string.
2012-05-16 16:01:59 +02:00
Antoine Pitrou
7ca29507f6
Forward port additional tests from 2.7 (issue #14829 ).
2012-05-16 15:06:00 +02:00
Antoine Pitrou
fb5b954ee0
Forward port additional tests from 2.7 (issue #14829 ).
2012-05-16 15:01:40 +02:00
Eric V. Smith
5cdc6308b6
Cleanup so subsequent tests won't fail. Needs to be moved into a support routine (see 14715).
2012-05-16 04:48:04 -04:00
Eric V. Smith
313fbe2106
Merge from 3.2.
2012-05-16 04:49:22 -04:00
Eric V. Smith
c8e106babb
Merge from 3.2.
2012-05-15 20:46:06 -04:00
Eric V. Smith
a790c9b6d6
Issue #14817 : Add rudimentary tests for pkgutil.extend_path.
2012-05-15 20:44:06 -04:00
Giampaolo Rodola'
12ea86adce
merge heads
2012-05-15 22:21:01 +02:00
Giampaolo Rodola'
b28df76ee2
#14807 : fix bb failure due to symlink test relying on hard-coded permissions
2012-05-15 22:20:10 +02:00
Hynek Schlawack
39bf90d319
Add two more sorts to test_os.WalkTests I've missed before
2012-05-15 18:40:17 +02:00
Senthil Kumaran
c5f31ed63d
merge heads
2012-05-16 00:07:24 +08:00
Senthil Kumaran
92a5bf0c0a
Issue12541 - Add UserWarning for unquoted realms
2012-05-16 00:03:29 +08:00
Senthil Kumaran
0ea91cb5c6
Issue12541 - Add UserWarning for unquoted realms
2012-05-15 23:59:42 +08:00
Hynek Schlawack
c96f5a0457
Sort file list in test_os.WalkTests
...
Adding new files into the tree lead to buildbot fails as the order wasn't
deterministic.
2012-05-15 17:55:38 +02:00
Senthil Kumaran
acfc26acb0
merge heads
2012-05-15 22:42:11 +08:00
Senthil Kumaran
b26fe2f313
merge from 3.2 - Issue #12541 : Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
2012-05-15 22:39:17 +08:00
Hynek Schlawack
66bfcc1b0f
#14773 : Fix os.fwalk() failing on dangling symlinks
2012-05-15 16:32:21 +02:00
Senthil Kumaran
34f3fcc269
Issue #12541 : Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
...
G: changed Misc/NEWS
2012-05-15 22:30:25 +08:00
Giampaolo Rodola'
ffa1d0b8d5
#14807 : move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning.
2012-05-15 15:30:25 +02:00
Benjamin Peterson
d5a1c44455
PEP 415: Implement suppression of __context__ display with an exception attribute
...
This replaces the original PEP 409 implementation. See #14133 .
2012-05-14 22:09:31 -07:00
Antoine Pitrou
e2eab5e768
Followup to issue #14157 : respect the relative ordering of values produced by time.strptime().
...
Patch by Hynek.
2012-05-14 19:45:27 +02:00
Antoine Pitrou
072e4a3fc7
Followup to issue #14157 : respect the relative ordering of values produced by time.strptime().
...
Patch by Hynek.
2012-05-14 19:44:59 +02:00
Antoine Pitrou
9a2349030a
Issue #14417 : Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes issue #14205 ).
2012-05-13 20:48:01 +02:00
Charles-François Natali
7feb9f4225
Issue #14532 : Add a secure_compare() helper to the hmac module, to mitigate
...
timing attacks. Patch by Jon Oberheide.
2012-05-13 19:53:07 +02:00
Martin v. Löwis
7fb79fcb64
Issue #14366 : Support lzma compression in zip files.
...
Patch by Serhiy Storchaka.
2012-05-13 10:06:36 +02:00
Brett Cannon
acc0c181a8
Remove a now worthless test.
2012-05-12 17:40:28 -04:00
Antoine Pitrou
61597d3e92
Try to fix test_shutil failure under Fedora - patch by Hynek.
2012-05-12 23:37:35 +02:00
Stefan Krah
094d0e002c
Issue #14779 : Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit
...
universal: it returns a meaningless result. Use sys.maxsize instead of
platform.architecture as a fallback. Patch by Ned Deily.
2012-05-12 23:11:51 +02:00
Antoine Pitrou
424246fbf3
Issue #14082 : shutil.copy2() now copies extended attributes, if possible.
...
Patch by Hynek Schlawack.
2012-05-12 19:02:01 +02:00
Brett Cannon
c049952de7
Issue #13959 : Have
...
importlib.abc.FileLoader.load_module()/get_filename() and
importlib.machinery.ExtensionFileLoader.load_module() have their
single argument be optional as the loader's constructor has all the
ncessary information.
This allows for the deprecation of
imp.load_source()/load_compile()/load_package().
2012-05-11 14:48:41 -04:00
Ned Deily
5fddf866d8
Issue #14662 : Prevent shutil failures on OS X when destination does not
...
support chflag operations. (Patch by Hynek Schlawack)
2012-05-10 17:21:23 -07:00
Ned Deily
baf75713c7
Issue #14662 : Prevent shutil failures on OS X when destination does not
...
support chflag operations. (Patch by Hynek Schlawack)
2012-05-10 17:05:19 -07:00
Antoine Pitrou
e8751e05d9
Issue #14157 : Fix time.strptime failing without a year on February 29th.
...
Patch by Hynek Schlawack.
2012-05-10 20:18:46 +02:00
Antoine Pitrou
1682e5d740
Issue #14157 : Fix time.strptime failing without a year on February 29th.
...
Patch by Hynek Schlawack.
2012-05-10 20:17:46 +02:00
Richard Oudkerk
59d5404bc7
Issue #14753 : Make multiprocessing treat negative timeouts as it did in 3.2
...
In Python 3.2 and earlier, Process.join() and Connection.poll()
treated negative timeouts as zero timeouts. Earlier versions from
the 3.3 line of development treat them as infinite timeouts.
The patch reverts to the old behaviour.
2012-05-10 16:11:12 +01:00
Jesus Cea
b58ab2c6aa
MERGE: Closes #14768 : os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
2012-05-10 05:16:41 +02:00
Jesus Cea
7f0d88860f
Closes #14768 : os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
2012-05-10 05:10:50 +02:00
Victor Stinner
f59c28c930
unicode_writer_finish() checks string consistency
2012-05-09 03:24:14 +02:00
Richard Oudkerk
5d73c178a8
Issue #14727 : Fix race in test_multiprocessing
2012-05-08 22:24:47 +01:00
Richard Oudkerk
104b3f4bf7
Minor fix for test_multiprocessing
2012-05-08 16:08:07 +01:00
Mark Dickinson
79575b210f
Issue #14742 : Don't include DirectoryTestCase from test_unparse in test_tools until we can speed it up.
2012-05-07 22:36:43 +01:00
Mark Dickinson
943cab2fec
Issue #14741 : Merge fix from 3.2.
2012-05-07 17:25:14 +01:00
Mark Dickinson
da029fb293
Issue #14741 : Fix missing support for ellipsis in parser module.
2012-05-07 17:24:04 +01:00
Mark Dickinson
72f6095d4f
Issue #14697 : Merge fix from 3.2.
2012-05-07 16:36:33 +01:00
Mark Dickinson
11c1dee183
Issue #14697 : Fix missing parser module support for set displays and set comprehensions.
2012-05-07 16:34:34 +01:00
Mark Dickinson
cf360b9209
Issue #14701 : Add missing support for 'raise ... from' in parser module.
2012-05-07 12:01:27 +01:00
Mark Dickinson
9fad160411
Issue #14701 : Merge fix from 3.2.
2012-05-07 12:03:11 +01:00
Mark Dickinson
99e2e5552a
Issue #14700 : Fix two broken and undefined-behaviour-inducing overflow checks in old-style string formatting. Thanks Serhiy Storchaka for report and original patch.
2012-05-07 11:20:50 +01:00
Mark Dickinson
44ceea9326
Issue #14695 : Run Tools/parser/test_unparse.py as part of test_tools.
2012-05-07 10:27:23 +01:00
Nadeem Vawda
bc459bb484
Rename lzma.check_is_supported() to is_check_supported() to avoid grammatical confusion.
2012-05-06 23:01:51 +02:00
Nadeem Vawda
f55b329edc
Add lzma.{encode,decode}_filter_properties().
2012-05-06 23:01:27 +02:00
Nadeem Vawda
11328e4437
Really fix test_gzip failures on Windows.
2012-05-06 19:24:18 +02:00
Richard Oudkerk
6dbca367dc
Make test_multiprocessing more lenient about another timeout check
2012-05-06 16:46:36 +01:00
Nadeem Vawda
9d9dc8eba0
Fix test_gzip failures on Windows.
2012-05-06 16:25:35 +02:00
Nadeem Vawda
1b8a14d3f0
Separate tests for gzip.GzipFile and gzip.open.
2012-05-06 15:17:52 +02:00
Nadeem Vawda
7e126205e6
Closes #13989 : Add support for text modes to gzip.open().
...
Also, add tests for gzip.open().
2012-05-06 15:04:01 +02:00
Vinay Sajip
f1b34ee61b
#12660 : Skip test_gdb when run from an installed Python.
2012-05-06 12:03:05 +01:00
Vinay Sajip
73954040f6
Issue #9116 : Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message.
2012-05-06 11:34:50 +01:00
Vinay Sajip
363712349a
Closes #14729 : Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message.
2012-05-06 11:28:46 +01:00
Georg Brandl
b4c8902a87
#13183 : backport fixes to test_pdb to 3.2 branch
2012-05-06 11:50:00 +02:00
Larry Hastings
faf91e75ab
Issue #14705 : Add 'p' format character to PyArg_ParseTuple* for bool support.
2012-05-05 16:54:29 -07:00
Richard Oudkerk
7ef909cdd7
Fix for issue 14725 for 3.2 branch
2012-05-05 20:41:23 +01:00
Richard Oudkerk
fdb8dcf675
Fix for Issue 14725 for 3.3 branch.
2012-05-05 19:45:37 +01:00
Lars Gustäbel
7a919e9930
Issue #13815 : TarFile.extractfile() now returns io.BufferedReader objects.
...
The ExFileObject class was removed, some of its code went into _FileInFile.
2012-05-05 18:15:03 +02:00
Antoine Pitrou
f340c21ca9
Fix test connecting to sha256.tbs-internet.com.
...
The certificate has changed and the test now needs SNI to pass.
2012-05-04 16:26:56 +02:00
Antoine Pitrou
16f6f8338b
Fix test connecting to sha256.tbs-internet.com.
...
The certificate has changed and the test now needs SNI to pass.
2012-05-04 16:26:02 +02:00
Richard Oudkerk
009b15e2c3
Give test_multiprocessing better chance of avoiding timeout failures on Windows
2012-05-04 09:44:39 +01:00
Richard Oudkerk
a6becaa9cb
Fix dangling warning for test_multiprocessing
2012-05-03 18:29:02 +01:00
Vinay Sajip
ac20f463da
Merged hanged order of cleanup operations from 3.2.
2012-05-03 12:09:38 +01:00
Vinay Sajip
89282afafb
Changed order of cleanup operations to be more sensible.
2012-05-03 12:06:52 +01:00
Larry Hastings
76ad59b7e8
Issue #14127 : Add ns= parameter to utime, futimes, and lutimes.
...
Removed futimens as it is now redundant.
Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat
and ns= parameter to utime--it once again preserves exact metadata on Linux!
2012-05-03 00:30:07 -07:00
Charles-François Natali
598b2f6bd0
Merge.
2012-05-02 20:51:59 +02:00
Charles-François Natali
360b3c21f5
os.popen().close() returns None on success, not 0...
2012-05-02 20:50:13 +02:00
Charles-François Natali
39687ee9db
os.popen().close() returns None on success, not 0...
2012-05-02 20:49:14 +02:00
Richard Oudkerk
225cb8d077
Make test_multiprocessing cleanup properly
...
Previously, when an error was encountered some processes would not be
stopped until atexit callbacks were run. On Windows that was too late
to prevent a PermissionError when regrtest tried to remove the temp
directory it ran the tests in.
2012-05-02 19:36:11 +01:00
Charles-François Natali
d59240de83
Issue #14698 : Make test_posix more robust when the current UID doesn't have an
...
associated pwd entry.
2012-05-02 20:04:40 +02:00
Charles-François Natali
e8a255a5a2
Issue #14698 : Make test_posix more robust when the current UID doesn't have an
...
associated pwd entry.
2012-05-02 20:01:38 +02:00
Martin v. Löwis
67880cc962
Issue #13183 : Revert 0b53b70a40a0 (reenable test on windows)
2012-05-02 07:41:22 +02:00
Senthil Kumaran
bf6c19598a
fix closes issue13183 - windows test failure
2012-05-02 08:01:02 +08:00
Senthil Kumaran
cb172041d3
fix windows test failure - issue13183
2012-05-02 08:00:22 +08:00
Benjamin Peterson
1c5ae55c85
don't use assertEqual for test for bool equality
2012-05-01 11:14:32 -04:00
Benjamin Peterson
8fbd295458
merge 3.2 ( #14699 )
2012-05-01 09:51:46 -04:00
Benjamin Peterson
7295c6a871
fix calling the classmethod descriptor directly ( closes #14699 )
2012-05-01 09:51:09 -04:00
Benjamin Peterson
49a69e4d48
strip is_ prefixes on clock_info fields
2012-05-01 09:38:34 -04:00
Martin v. Löwis
d099b56be7
Check extract_version when opening a zipfile.
2012-05-01 14:08:22 +02:00
Georg Brandl
b613a3d458
Disable test_13183 temporarily on Windows for 3.3a3 release.
2012-05-01 09:57:34 +02:00
Georg Brandl
4bde9caf74
test_pdb: fix failure of test_issue13183 in debug mode, and make sure files are cleaned up.
2012-05-01 09:21:16 +02:00
Martin v. Löwis
b3260f08cf
Detect unsupported compression types.
2012-05-01 08:38:01 +02:00
Martin v. Löwis
f6b16a4b50
Issue #14371 : Support bzip2 in zipfile module.
...
Patch by Serhiy Storchaka.
2012-05-01 07:58:44 +02:00
Senthil Kumaran
417c3848d5
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye
2012-05-01 10:37:11 +08:00
Senthil Kumaran
42d7081806
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye
2012-05-01 10:07:49 +08:00
Richard Oudkerk
2452419921
Issue #14669 : Skip multiprocessing connection pickling test on MacOSX
...
Passing of fds is unreliable on MacOSX, compare issues #6560 and #12958 .
2012-04-30 14:48:51 +01:00
Richard Oudkerk
4460c3476d
Minor fix for multiprocessing unit test
...
Read from socket might have returned partial message.
2012-04-30 14:48:50 +01:00
Victor Stinner
9a8ad0c5ea
Issue #14428 : Remove test_process_time_threads() from test_time
...
The test is unstable and it's not really interesting to test exactly how
threads are handled.
2012-04-30 01:39:57 +02:00
Victor Stinner
5df72c2c27
Issue #14428 : Make test_process_time_threads() less strict
2012-04-30 00:51:31 +02:00
Alexander Belopolsky
934cb18ef5
merged
2012-04-29 18:20:05 -04:00
Alexander Belopolsky
b8f02b5a5f
fixed test_imaplib failure on Win
2012-04-29 18:16:46 -04:00
Mark Dickinson
57404891a0
Issue #14696 : Merge from 3.2
2012-04-29 22:20:01 +01:00
Mark Dickinson
407b3bd89b
Issue #14696 : Fix parser module to understand 'nonlocal' declarations.
2012-04-29 22:18:31 +01:00
Alexander Belopolsky
5a38f80f9c
Issue #10941 : Fix imaplib.Internaldate2tuple to produce correct result near
...
the DST transition. Patch by Joe Peterson.
2012-04-29 16:12:27 -04:00
Alexander Belopolsky
2420d83158
Issue #10941 : Fix imaplib.Internaldate2tuple to produce correct result near
...
the DST transition. Patch by Joe Peterson.
2012-04-29 15:56:49 -04:00
Mark Dickinson
89e6d3896a
Remove untests for non-existent functionality.
2012-04-29 19:17:05 +01:00
Victor Stinner
1fc3ec91cc
Issue #14428 : Rewrite test_process_time_threads() test
...
time.process_time() is CPU time, not a number of seconds.
2012-04-29 19:46:19 +02:00
Mark Dickinson
b63fd2a408
Issue #9154 : Merge fix from 3.2.
2012-04-29 18:35:56 +01:00
Mark Dickinson
ea7e9f9a83
Issue #9154 : Fix parser module to understand function annotations.
2012-04-29 18:34:40 +01:00
Brett Cannon
acf85cd131
Issue #13959 : Re-implement imp.NullImporter in Lib/imp.py.
2012-04-29 12:50:03 -04:00
Mark Dickinson
e383e82e04
Issue #14521 : Make result of float('nan') and float('-nan') more consistent across platforms. Further, don't rely on Py_HUGE_VAL for float('inf').
2012-04-29 15:31:56 +01:00
Senthil Kumaran
889ad16e54
httplib test for early eof response. related to Issue13684
2012-04-29 10:21:26 +08:00
Senthil Kumaran
9c29f86a81
httplib test for early eof response. related to Issue13684
2012-04-29 10:20:46 +08:00
Victor Stinner
fe98e2fc83
Issue #14428 : Use the new time.perf_counter() and time.process_time() functions
...
* Replace "time.clock on windows, or time.time" with time.perf_counter()
* profile module: only use time.process_time() instead of trying different
functions providing the process time
* timeit module: use time.perf_counter() by default, time.time() and
time.clock() can still be used using --time and --clock options
* pybench program: use time.perf_counter() by default, add support for
the new time.process_time() and time.perf_counter() functions, but stay
backward compatible. Use also time.get_clock_info() to display information
of the timer.
2012-04-29 03:01:20 +02:00
Victor Stinner
ec89539ccc
Issue #14428 , #14397 : Implement the PEP 418
...
* Rename time.steady() to time.monotonic()
* On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of
QueryPerformanceCounter()
* time.monotonic() uses CLOCK_HIGHRES if available
* Add time.get_clock_info(), time.perf_counter() and time.process_time()
functions
2012-04-29 02:41:27 +02:00
Antoine Pitrou
92ff4e196b
Issue #14666 : stop multiprocessing's resource-sharing thread after the tests are done.
...
Also, block delivery of signals to that thread. Patch by Richard Oudkerk.
This will hopefully fix sporadic freezes on the FreeBSD 9.0 buildbot.
2012-04-27 23:51:03 +02:00
Brett Cannon
3c6ea1c14d
Issue #14605 : Insert to the front of sys.meta_path, don't append.
2012-04-27 13:52:55 -04:00
Brett Cannon
c8287efed3
Invalidate finder caches after creating a new script.
2012-04-27 13:52:03 -04:00
Jesus Cea
990eff0776
Backing out 86dc014cdd74. Not ready yet
2012-04-26 17:05:31 +02:00
Jesus Cea
2b47f0a23f
Close #10142 : Support for SEEK_HOLE/SEEK_DATA
2012-04-26 16:39:35 +02:00
Brett Cannon
e0d88a173c
Issue #14605 : Make explicit the entries on sys.path_hooks that used to
...
be implicit.
Added a warning for when sys.path_hooks is found to be empty. Also
changed the meaning of None in sys.path_importer_cache to represent
trying sys.path_hooks again (an interpretation of previous semantics).
Also added a warning for when None was found.
The long-term goal is for None in sys.path_importer_cache to represent
the same as imp.NullImporter: no finder found for that sys.path entry.
2012-04-25 20:54:04 -04:00
Brett Cannon
8f79dd5d7c
Silence DeprecationWarning for cgi.escape() usage in test_cgi.
2012-04-25 20:49:19 -04:00
Brett Cannon
5a5d6a1033
Merge
2012-04-25 20:18:24 -04:00
Vinay Sajip
c94871a5c0
Merged fixed test from 3.2.
2012-04-25 10:51:35 +01:00