Serhiy Storchaka
e914cd1308
Issue #16620 : Fixed AttributeError in msilib.Directory.glob().
2016-01-19 13:55:36 +02:00
Victor Stinner
47b91b0a81
Fix BytecodeTestCase.assertNotInBytecode()
...
Issue #11816 : Fix bytecode_helper to handle correctly errors. Don't use
unassigned variables.
2016-01-19 08:48:48 +01:00
Benjamin Peterson
9ad11544bf
set tp_new from the class in the hierarchy that actually owns the descriptor ( closes #25731 )
...
Debugging by Eryk Sun.
2016-01-18 21:11:18 -08:00
Martin Panter
8f19e8e1c5
Issue #25859 : Reimplement NNTP test_starttls() using local server
...
The previous test relied on a remote server, which currently seems to be
shutting the connection down once TLS has been set up, causing an EOFError.
Now the test is implemented using a minimal NNTP server running in a
background thread.
2016-01-19 01:10:58 +00:00
Berker Peksag
1b25eff76e
Issue #25366 : Skip test_with_pip when threading module is not available
...
Some dependencies of pip import threading module unconditionally so
we need to skip the test to make buildbots happy.
2016-01-19 02:01:53 +02:00
Serhiy Storchaka
5c1d9d2ff7
Added exceptins for testing non-reversible import mapping for Issue #26013 .
2016-01-18 22:33:44 +02:00
Serhiy Storchaka
111c7b9011
Issue #26013 : Added compatibility with broken protocol 2 pickles created
...
in old Python 3 versions (3.4.3 and lower).
2016-01-18 21:35:22 +02:00
Serhiy Storchaka
084f7e4012
Issue #9006 : Added tests for XML RPC with non-UTF-8 encoding.
2016-01-18 19:39:26 +02:00
Terry Jan Reedy
356765194c
Issue #25905 : Specify 'ascii' encoding for README.txt and NEWS.txt.
...
Re-encode CREDITS.txt to utf-8 and open it with 'utf-8'.
2016-01-16 23:44:04 -05:00
Steve Dower
332334f1ab
Issue #26071 : bdist_wininst created binaries fail to start and find 32bit Python
2016-01-16 13:54:53 -08:00
Steve Dower
1d329413fc
Issue #25850 : Use cross-compilation by default for 64-bit Windows.
2016-01-16 12:39:10 -08:00
Martin Panter
7a5fe6d5d1
Issue #14771 : Redirect GDB's stdin to avoid messing the terminal settings
...
Otherwise, GDB seems to affect the terminal's foreground process group,
interfering with test_ioctl, which does not expect the foreground process to
change during the test. This change also solves the problem of the tests
being stopped in the shell if test_gdb is run twice in parallel.
2016-01-16 05:18:47 +00:00
Gregory P. Smith
a3a58331a5
Make the error message regex more lenient so that it matches both
...
"certificate verify failed " and "CERTIFICATE_VERIFY_FAILED " as
some SSL libraries use different text than OpenSSL.
2016-01-15 17:30:24 -08:00
Gregory P. Smith
c7b05a409d
Make the error message regex more lenient so that it matches both
...
"certificate verify failed " and "CERTIFICATE_VERIFY_FAILED " as
some SSL libraries use different text than OpenSSL.
2016-01-15 17:29:45 -08:00
Brett Cannon
56aae8f304
Issue #17633 : Improve support for namespace packages with zipimport.
...
Previously zipimport mistakenly limited namespace support to only the
top-level of the zipfile when it should have supported an arbitrary
depth.
Thanks to Phil Connel for the bug report and initial patch and Mike
Romberg for the final patch.
2016-01-15 11:22:19 -08:00
Brett Cannon
07b954d148
Add some "used with permission" mentions where external resources are referenced.
...
Permission was validated prior to adding these markings.
2016-01-15 09:53:51 -08:00
Martin Panter
a8b43b5fc3
Issue #25940 : Merge ETIMEDOUT fix from 3.4 into 3.5
2016-01-15 02:28:59 +00:00
Martin Panter
3f2240ccb6
Issue #25940 : Merge ETIMEDOUT fix from 3.3 into 3.4
2016-01-15 02:18:31 +00:00
Martin Panter
fab75d9bb9
Issue #25940 : Merge ETIMEDOUT fix from 3.2 into 3.3
2016-01-15 02:08:13 +00:00
Martin Panter
035583b389
Issue #25940 : On Windows, connecting to port 444 returns ETIMEDOUT
2016-01-15 01:16:41 +00:00
Martin Panter
40b97ec57a
Issue #25940 : Update new SSL tests for self-signed.pythontest.net
...
Removed SSL_ERROR_SYSCALL checking from ssl_io_loop() so that the loop can
terminate when unwrap() raises that error.
2016-01-14 13:05:46 +00:00
Martin Panter
17cbee49d6
Issue #25940 : Merge self-signed.pythontest.net testing from 3.4 into 3.5
2016-01-14 13:22:29 +00:00
Martin Panter
b55f8b79af
Issue #25940 : Update new SSL tests for self-signed.pythontest.net
2016-01-14 12:53:56 +00:00
Martin Panter
514bb0711f
Issue #25940 : Merge self-signed.pythontest.net testing from 3.3 into 3.4
2016-01-14 12:46:49 +00:00
Martin Panter
73f55076f6
Issue #25940 : Merge self-signed.pythontest.net testing from 3.2 into 3.3
2016-01-14 12:21:02 +00:00
Martin Panter
3d81d93f34
Issue #25940 : Use self-signed.pythontest.net in SSL tests
...
This is instead of svn.python.org, whose certificate recently expired, and
whose new certificate uses a different root certificate.
The certificate used at the pythontest server was modifed to set the "basic
constraints" CA flag. This flag seems to be required for test_get_ca_certs_
capath() to work (in Python 3.4+).
Added the new self-signed certificate to capath with the following commands:
cp Lib/test/{selfsigned_pythontestdotnet.pem,capath/}
c_rehash -v Lib/test/capath/
c_rehash -v -old Lib/test/capath/
# Note the generated file names
cp Lib/test/capath/{selfsigned_pythontestdotnet.pem,0e4015b9.0}
mv Lib/test/capath/{selfsigned_pythontestdotnet.pem,ce7b8643.0}
The new server responds with "No route to host" when connecting to port 444.
2016-01-14 09:36:00 +00:00
Barry Warsaw
e973620472
Merge heads.
2016-01-11 15:53:19 -05:00
doko@ubuntu.com
b2b1217270
- Issue #24705 : Fix sysconfig._parse_makefile not expanding ${} vars
...
appearing before $() vars.
2016-01-11 21:41:40 +01:00
Barry Warsaw
09880c89e9
Comment out some tests that won't pass now that we've reverted the
...
picklability regression. Also, as per further discussion, remove the
regressing code.
2016-01-11 15:14:53 -05:00
Yury Selivanov
b4b8a0ef3e
Merge 3.4 (Issue #26050 )
2016-01-11 12:30:56 -05:00
Yury Selivanov
d9d0e864b9
Issue #26050 : Add asyncio.StreamReader.readuntil() method.
...
Patch by Марк Коренберг.
2016-01-11 12:28:19 -05:00
Andrew Svetlov
4ea31f5b86
merge 3.4
2016-01-11 12:25:40 +02:00
Andrew Svetlov
9d976fa75f
Sync with asyncio
2016-01-11 12:25:23 +02:00
Andrew Svetlov
b86abb79aa
merge 3.4
2016-01-11 09:09:10 +02:00
Andrew Svetlov
c07b16b40f
Sync with asyncio repo
2016-01-11 08:42:49 +02:00
Ezio Melotti
ee2a392e6a
#24789 : fix docstring of ctypes.create_string_buffer. Patch by Matheus Vieira Portela.
2016-01-09 16:08:24 +02:00
Senthil Kumaran
81bc927da7
Issue #22138 : Fix mock.patch behavior when patching descriptors. Restore
...
original values after patching.
Patch contributed by Sean McCully.
2016-01-08 23:43:29 -08:00
Guido van Rossum
03abf6dd98
Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.4->3.5)
2016-01-07 13:13:04 -08:00
Guido van Rossum
9c39b67ca5
Hopeful fix for test_rglob_common on Windows without symlinks.
2016-01-07 13:12:34 -08:00
Guido van Rossum
c3a8272705
Add another try/except PermissionError to avoid depending on listdir order. Fix issues #24120 and #26012 . (Merge 3.4->3.5)
2016-01-07 10:57:37 -08:00
Guido van Rossum
bc9fddaf50
Add another try/except PermissionError to avoid depending on listdir order. Fix issues #24120 and #26012 .
2016-01-07 10:56:36 -08:00
Berker Peksag
16fb674882
Fix typo in docstring of multiprocessing.spawn.spawn_main()
2016-01-07 19:02:55 +02:00
Guido van Rossum
1a4afec0d6
Issue #22570 : Add 'path' attribute to pathlib.Path objects. (Merge 3.4->3.5)
2016-01-06 11:03:15 -08:00
Guido van Rossum
e428231539
Issue #22570 : Add 'path' attribute to pathlib.Path objects.
2016-01-06 11:01:42 -08:00
Guido van Rossum
520f297eb4
Issue #26012 : Don't traverse into symlinks for ** pattern in pathlib.Path.[r]glob(). (Merge 3.4->3.5)
2016-01-06 10:35:30 -08:00
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
Yury Selivanov
7888e67027
Merge 3.4
2015-12-11 11:33:08 -05:00
Yury Selivanov
dddc781998
asyncio: Sync with github
2015-12-11 11:32:59 -05:00
Martin Panter
5cf791b035
Issue #25764 : Skip fork failure test when run as root
2015-12-11 05:40:14 +00:00
Martin Panter
b82032f935
Issue #22341 : Drop Python 2 workaround and document CRC initial value
...
Also align the parameter naming in binascii to be consistent with zlib.
2015-12-11 05:19:29 +00:00
Martin Panter
7dda421bff
Issue #14285 : Do not catch exceptions initializing any ancestor package
...
The previous fix only handled the case of the parent package of __main__
failing to initialize.
Also make the "Error while finding spec" formatting slightly more appealing,
and document and test that the module name must be absolute.
2015-12-10 06:47:06 +00:00