Serhiy Storchaka
4918b47c64
Issue #25935 : Garbage collector now breaks reference loops with OrderedDict.
2016-01-19 14:48:42 +02:00
Serhiy Storchaka
d205d0145c
Issue #25935 : Garbage collector now breaks reference loops with OrderedDict.
2016-01-19 14:46:25 +02:00
Victor Stinner
70c6a13613
Merge 3.5
2016-01-19 08:50:56 +01: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
2c028492d4
merge 3.5 ( #25731 )
2016-01-18 21:18:35 -08: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
f12dc26c66
Issue #25859 : Merge NNTP test server from 3.5
2016-01-19 01:35:44 +00: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
99132051bf
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:02:13 +02: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
9d4f3d81c7
Added exceptins for testing non-reversible import mapping for Issue #26013 .
2016-01-18 22:34:19 +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
75ed708285
Issue #9006 : Added tests for XML RPC with non-UTF-8 encoding.
2016-01-18 19:40:23 +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
Serhiy Storchaka
9cc4ed5c7a
Issue #26129 : Deprecated accepting non-integers in grp.getgrgid().
2016-01-18 18:49:57 +02:00
Victor Stinner
9def284387
subprocess._optim_args_from_interpreter_flags()
...
Issue #26100 :
* Add subprocess._optim_args_from_interpreter_flags()
* Add test.support.optim_args_from_interpreter_flags()
* Use new functions in distutils, test_cmd_line_script, test_compileall and
test_inspect
The change enables test_details() test of test_inspect when -O or -OO command
line option is used.
2016-01-18 12:15:08 +01:00
Victor Stinner
c437d0cb4e
Fix test_compilepath() of test_compileall
...
Issue #26101 : Exclude Lib/test/ from sys.path in test_compilepath(). The
directory contains invalid Python files like Lib/test/badsyntax_pep3120.py,
whereas the test ensures that all files can be compiled.
2016-01-18 11:25:50 +01:00
Martin Panter
5318d1048f
Issue #23883 : grp and pwd are None on Windows
2016-01-16 11:01:14 +00:00
Serhiy Storchaka
2c1d3e320f
Issue #23883 : Removed redundant names from blacklists.
2016-01-16 11:05:11 +02:00
Martin Panter
104dcdab59
Issue #23883 : Add missing APIs to tarfile.__all__
...
Patch by Joel Taddei and Jacek Kołodziej.
2016-01-16 06:59:13 +00:00
Martin Panter
4eb376c441
Issue #23883 : Add missing APIs to calendar.__all__
...
Patch by Joel Taddei and Jacek Kołodziej.
2016-01-16 06:49:30 +00:00
Martin Panter
7978e10441
Issue #23883 : Missing fileinput.__all__ APIs; patch by Mauro SM Rodrigues
2016-01-16 06:26:54 +00:00
Martin Panter
2033f41c35
Issue #26127 : Merge test_gdb fix from 3.5
2016-01-16 05:20:57 +00: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
d7a815b115
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:42 -08: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
Ethan Furman
ccf44b0445
branch merge
2016-01-15 15:03:12 -08:00
Ethan Furman
60255b67b9
revert change 87a9dff5106c: pure Enum members again evaluate to True;
...
update Finer Points section of docs to cover boolean evaluation;
add more tests for pure and mixed boolean evaluation
2016-01-15 15:01:33 -08:00
Brett Cannon
63b8505281
Issue #25791 : Raise an ImportWarning when __spec__ or __package__ are
...
not defined for a relative import.
This is the start of work to try and clean up import semantics to rely
more on a module's spec than on the myriad attributes that get set on
a module. Thanks to Rose Ames for the patch.
2016-01-15 13:33:03 -08:00
Brett Cannon
43cfd8240c
Merge for issue #17633
2016-01-15 11:23:46 -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
Martin Panter
4edc0e8407
Issue #25940 : Merge ETIMEDOUT fix from 3.5
2016-01-15 02:37:21 +00: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
8df9848322
Issue #25940 : test_ssl is working again
2016-01-14 13:26:43 +00:00
Martin Panter
3570e02fd2
Issue #25940 : Merge self-signed.pythontest.net testing from 3.5
2016-01-14 13:25:06 +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
Senthil Kumaran
436831dbe4
Issue22642 - Convert trace module's option handling mechanism from getopt to argparse.
...
Patch contributed by SilentGhost.
2016-01-13 07:46:54 -08:00
Yury Selivanov
37dc2b2883
Issue #25486 : Resurrect inspect.getargspec in 3.6. Backout a565aad5d6e1.
...
The decision is that we shouldn't remove popular APIs (however long they
are depreacted) from Python 3, while 2.7 is still around and supported.
2016-01-11 15:15:01 -05: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
4f8273d77e
Merge 3.5 (issue #26050 )
2016-01-11 12:32:53 -05:00
Yury Selivanov
b4b8a0ef3e
Merge 3.4 (Issue #26050 )
2016-01-11 12:30:56 -05:00