Commit graph

38191 commits

Author SHA1 Message Date
Guido van Rossum
69bfb15bd8 Issue #26012: Don't traverse into symlinks for ** pattern in pathlib.Path.[r]glob(). 2016-01-06 10:31:33 -08:00
Guido van Rossum
d54377d2ca Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri. (Merge 3.4->3.5) 2016-01-06 09:51:42 -08:00
Guido van Rossum
6c2d33a258 Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri. 2016-01-06 09:42:07 -08:00
R David Murray
830207e8f3 #22709: Use stdin as-is if it does not have a buffer attribute.
This restores backward compatibility lost in the fix for #21075, and
is better duck typing.

Patch by Akira Li.
2016-01-02 15:41:41 -05:00
Gregory P. Smith
9ecf00e7cb Remove a duplicate test_addresses key:value as identified by Vincent
Davis reviewing code.
2016-01-01 17:41:46 -08:00
Serhiy Storchaka
beb652ccc1 Make catched exception more specific and correct a comment. 2015-12-30 21:00:08 +02:00
Berker Peksag
ff8d0873aa Issue #25977: Fix typos in Lib/tokenize.py
Patch by John Walker.
2015-12-30 01:41:58 +02:00
Benjamin Peterson
3cc8f4b969 make recording and reporting errors and nonlocal and global directives more robust (closes #25973) 2015-12-29 10:08:34 -06:00
Serhiy Storchaka
e4d65e3aab Issue #25447: Copying the lru_cache() wrapper object now always works,
independedly from the type of the wrapped object (by returning the original
object unchanged).
2015-12-28 23:58:07 +02:00
Vinay Sajip
9cdfd18fc6 Closes #25685: Made SocketHandler emission more efficient. 2015-12-26 12:48:44 +00:00
Serhiy Storchaka
f81be8aa3f Issue #22995: Instances of extension types with a state that aren't
subclasses of list or dict and haven't implemented any pickle-related
methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__,
or __getstate__), can no longer be pickled.  Including memoryview.
2015-12-25 21:04:29 +02:00
Serhiy Storchaka
a17ca19d34 Issue #25860: Fixed test failure caused by inconsistency of os.walk() and
os.fwalk() parameter names.
2015-12-23 00:37:34 +02:00
Serhiy Storchaka
0bddc9eb15 Issue #25860: os.fwalk() no longer skips remaining directories when error occurs.
Original patch by Samson Lee.
2015-12-23 00:08:24 +02:00
Serhiy Storchaka
0ce7a3a34c Issue #25914: Fixed and simplified OrderedDict.__sizeof__. 2015-12-22 08:16:18 +02:00
Serhiy Storchaka
66c08d90f6 Issue #25902: Fixed various refcount issues in ElementTree iteration. 2015-12-21 11:09:48 +02:00
Larry Hastings
52d6c2c4c0 Merge. 2015-12-20 22:44:06 -08:00
Serhiy Storchaka
5aac3ed799 Issue #25766: Special method __bytes__() now works in str subclasses. 2015-12-20 16:36:34 +02:00
Serhiy Storchaka
5185597a69 Fixed sizeof tests for dict and type (they were passed by accident).
Added tests for dict views iterators.
2015-12-20 11:39:14 +02:00
Serhiy Storchaka
aaf69aca45 Don't create non-needed file. 2015-12-20 09:37:52 +02:00
Larry Hastings
5caf39d827 Rebuild pydoc topics for Python 3.4.4 final. 2015-12-19 19:28:52 -08:00
Serhiy Storchaka
9c297e43bf Use correct PyGC_Head size in tests for issue #25421. 2015-12-19 22:49:29 +02:00
Serhiy Storchaka
5c4064e8bd Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
2015-12-19 20:05:25 +02:00
Terry Jan Reedy
efd7b34d7c Merge with 3.4 2015-12-18 15:47:13 -05:00
Terry Jan Reedy
5aeadb3fba Issue #25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION MARK. 2015-12-18 15:46:57 -05:00
Serhiy Storchaka
225821c653 Issue #25899: Converted non-ASCII characters in docstrings and manpage
to ASCII replacements.  Original patch by Chris Angelico.
2015-12-18 13:05:04 +02:00
Martin Panter
6f9b010242 Fix a couple of typos in code comments 2015-12-17 10:18:28 +00:00
Yury Selivanov
c4e27e277c Merge 3.4 2015-12-16 20:41:25 -05:00
Yury Selivanov
ea4ce1c776 asyncio/tests: Fix a ResourceWarning due to unclosed loop 2015-12-16 20:41:11 -05:00
Yury Selivanov
152c408ed6 Merge 3.4 2015-12-16 20:23:37 -05:00
Yury Selivanov
3cd863c86e asyncio/tests: Fix ResourceWarnings related to unclosed transports 2015-12-16 20:23:26 -05:00
Yury Selivanov
bcf8afd015 Merge 3.4 2015-12-16 19:51:19 -05:00
Yury Selivanov
5f68ca66bf asyncio/tests: Fix some ResourceWarnings 2015-12-16 19:51:09 -05:00
Yury Selivanov
e277a3dc51 Merge 3.4 2015-12-16 19:40:11 -05:00
Yury Selivanov
aa78adc589 asyncio/tests: Fix deprecation warning 2015-12-16 19:40:03 -05:00
Yury Selivanov
a3f82bad16 Merge 3.4 2015-12-16 19:35:39 -05:00
Yury Selivanov
ec45226eeb Normalize whitespace 2015-12-16 19:35:30 -05:00
Yury Selivanov
631546cf92 Merge 3.4 2015-12-16 19:31:40 -05:00
Yury Selivanov
d5c2a62100 asyncio: Skip getaddrinfo if host is already resolved.
getaddrinfo takes an exclusive lock on some platforms, causing clients to queue
up waiting for the lock if many names are being resolved concurrently. Users
may want to handle name resolution in their own code, for the sake of caching,
using an alternate resolver, or to measure DNS duration separately from
connection duration. Skip getaddrinfo if the "host" passed into
create_connection is already resolved.

See https://github.com/python/asyncio/pull/302 for details.

Patch by A. Jesse Jiryu Davis.
2015-12-16 19:31:17 -05:00
Martin Panter
a7f9933efa Issue #23788: Merge redundant test_bad_address() into test_urllibnet
In Python 2, these were duplicated; one for urllib.urlopen() and one for
urllib2.urlopen(). The test_urllibnet version has a better precondition to
avoid false failures with bad DNS, and the test_urllib2_localnet version had
a more up-to-date comment and domain name.
2015-12-16 04:36:20 +00:00
Gregory P. Smith
6edadfc9ca * Re-fix issue #19284: Don't generate the no-op -R command line
parameter to "enable" the always on sys.flags.hash_randomization
  in _args_from_interpreter_flags() used by multiprocessing and
  some unittests.  This simplifies the code.
* assert_python_ok docstring typo fix.
* Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.
2015-12-13 20:09:42 -08:00
Gregory P. Smith
0212c4dc6b Re-fix issue #19284: Don't generate the no-op -R command line
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests.  This simplifies the code.
2015-12-13 20:05:55 -08:00
Gregory P. Smith
220ba72c20 Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed
due to test_hash_randomization expecting a different seed per process.
2015-12-13 20:01:44 -08:00
Gregory P. Smith
4cb6d37d1d assert_python_ok docstring typo fix. 2015-12-13 20:00:24 -08:00
Guido van Rossum
1a316e82f6 Sync asyncio with upstream git repo (conditional import in test_pep492.py). 2015-12-12 17:01:47 -08:00
Martin Panter
dda584340e Issue #19771: Omit irrelevant message if package could not be initialized 2015-12-12 06:58:55 +00:00
Martin Panter
ce70132bc4 Issue #25809: Skip testing platform-dependent French thousands separator 2015-12-12 06:53:34 +00:00
Martin Panter
6a109365ec Issue #25809: Skip testing platform-dependent French thousands separator 2015-12-12 06:53:34 +00:00
Berker Peksag
a7d81270cc Issue #25755: Move PropertyWritableDoc into the test case
This fixes a test failure in refleak mode because
test_property_decorator_doc_writable no longer modifies
the class in module level.

Initial patch by Nan Wu and Torsten Landschoff (from issue 25757)
2015-12-11 23:48:13 +02:00
Yury Selivanov
d3ded40a53 Merge 3.4 2015-12-11 11:34:11 -05:00
Yury Selivanov
0ac3a0cd79 asyncio: Make Tasks check if Futures are attached to the same event loop
See https://github.com/python/asyncio/pull/303 for details
2015-12-11 11:33:59 -05:00