Serhiy Storchaka
79ad897052
Issue #25911 : Restored support of bytes paths in os.walk() on Windows.
2016-02-08 16:24:15 +02:00
Martin Panter
192697e33b
Issue #26045 : Merge http.client error addition from 3.5
2016-02-09 11:57:11 +00:00
Martin Panter
44391481d7
Issue #26045 : Add UTF-8 suggestion to error in http.client
...
Based on patch by Guido van Rossum.
2016-02-09 10:20:52 +00:00
Serhiy Storchaka
5f6a0b4eb2
Issue #25911 : Restored support of bytes paths in os.walk() on Windows.
2016-02-08 16:23:28 +02:00
Serhiy Storchaka
d0c1f7743d
Issue #26198 : Make datetime error tests more lenient.
2016-02-08 09:26:57 +02:00
Serhiy Storchaka
0c0d537b24
Issue #26198 : Make datetime error tests more lenient.
2016-02-08 09:25:53 +02:00
Serhiy Storchaka
4cd63ef67a
Issue #26198 : ValueError is now raised instead of TypeError on buffer
...
overflow in parsing "es#" and "et#" format units. SystemError is now raised
instead of TypeError on programmical error in parsing format string.
2016-02-08 01:22:47 +02:00
Serhiy Storchaka
3e17c788a8
Issue #26198 : Fixed error messages for some argument parsing errors.
2016-02-08 01:20:21 +02:00
Serhiy Storchaka
c4b813d05d
Issue #26198 : Fixed error messages for some argument parsing errors.
...
Fixed the documented about buffer overflow error for "es#" and "et#" format
units.
2016-02-08 01:06:11 +02:00
Serhiy Storchaka
503f908090
Issue #26039 : Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir().
...
Patch by Thomas Kluyver.
2016-02-08 00:02:25 +02:00
Anish Shah
102d813b55
Issue #26302 : Correctly identify comma as an invalid character for a cookie (correcting regression in Python 3.5).
2016-02-07 05:36:00 +05:00
Serhiy Storchaka
e14c07e4e4
Fixed a bug in os.walk() with bytes path on Windows caused by merging fixes
...
for issues #25995 and #25911 .
2016-02-24 13:03:54 +02:00
Eric V. Smith
135d5f49f6
Fix issue 26287: While handling FORMAT_VALUE opcode, the top of stack was being corrupted if an error occurred in PyObject_Format().
2016-02-05 18:23:08 -05:00
Martin Panter
a3643c280f
Issue #12923 : Merge FancyURLopener fix from 3.5
2016-02-06 01:08:40 +00:00
Yury Selivanov
ab8d4fba6d
Merge 3.5
2016-02-04 14:08:23 -05:00
Yury Selivanov
46f7785e28
Issue #25660 : Fix a unittest and rlcompleter when readline isn't available
2016-02-04 14:00:26 -05:00
Yury Selivanov
aecef0d2d5
Merge 3.5 (issue #25660 )
2016-02-04 01:24:56 -05:00
Yury Selivanov
a7eae4016e
Issue #25660 : Fix TAB key behaviour in REPL.
2016-02-04 01:23:05 -05:00
Martin Panter
a03702252f
Issue #12923 : Reset FancyURLopener's redirect counter even on exception
...
Based on patches by Brian Brazil and Daniel Rocco.
2016-02-04 06:01:35 +00:00
Serhiy Storchaka
65aaef423b
Issue #25945 : Fixed bugs in functools.partial.
...
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
2016-02-02 18:45:47 +02:00
Serhiy Storchaka
3874128519
Issue #25945 : Fixed bugs in functools.partial.
...
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
2016-02-02 18:45:17 +02:00
Raymond Hettinger
a63897164e
merge
2016-02-01 21:21:19 -08:00
Raymond Hettinger
b00da57561
Issue #26194 : Inserting into a full deque to raise an IndexError
2016-02-01 21:19:22 -08:00
Victor Stinner
94c3089818
Merge 3.5 (asyncio)
2016-02-01 12:47:15 +01:00
Victor Stinner
3e7230904e
Fix error message in asyncio.selector_events.
...
Patch written by Carlo Beccarini <hackdiablo.cb@gmail.com>.
2016-02-01 12:46:38 +01:00
Victor Stinner
58afd2551e
Merge 3.5 (test_asyncio)
2016-02-01 12:41:24 +01:00
Martin Panter
7909411964
Issue #19587 : Merge test_bytes cleanup from 3.5
2016-02-02 10:54:10 +00:00
Martin Panter
275bd96aa6
Issue #19587 : Remove masked and redundant tests in test_bytes
...
* test_contains() did not override anything
* test_expandtabs/upper/lower() in FixedStringTest were masking usable tests
in string_tests. These tests now get run for bytearray() and bytes().
* test_expandtabs/upper/lower() in buffer_tests were only run on bytearray()
and are redundant with string_tests
2016-02-02 10:37:15 +00:00
Martin Panter
9990cb0999
Issue #26173 : Merge SSL tests from 3.5
2016-02-01 22:13:43 +00:00
Martin Panter
3464ea2807
Issue #26173 : Separate bad cert file tests and client rejection test
...
Test test_wrong_cert() runs a server that rejects the client's certificate,
so ECONNRESET is reasonable in addition to SSLError. On the other hand, the
other three tests don't even need to run a server because they are just
testing the parsing of invalid certificate files.
Also fix a ResourceWarning by closing the wrapped socket.
2016-02-01 21:58:11 +00:00
Victor Stinner
0df5313458
test_asyncio: fix test_timeout_time()
...
Accept time delta up to 0.12 second, instead of 0.11, for the "AMD64 FreeBSD
9.x" buildbot slave.
2016-02-01 12:39:50 +01:00
Berker Peksag
396cbd6dfd
Issue #23076 : Path.glob() now raises a ValueError if it's called with an
...
invalid pattern.
Patch by Thomas Nyberg.
2016-01-30 17:51:35 +02:00
Berker Peksag
4a208e448e
Issue #23076 : Path.glob() now raises a ValueError if it's called with an
...
invalid pattern.
Patch by Thomas Nyberg.
2016-01-30 17:50:48 +02:00
Berker Peksag
5586ba7643
Simply docstrings of venv module
...
This will hopefully make maintenance of venv documentation easier.
For example, see commits a4f0d76af176 and 5764cc02244d.
This patch has been reviewed by Vinaj Sajip, the maintainer of
venv module.
2016-01-30 12:34:12 +02:00
Martin Panter
cca32995b3
Issue #4806 : Merge * unpacking fix from 3.5
2016-01-31 06:33:16 +00:00
Martin Panter
b5944220ab
Issue #4806 : Avoid masking original TypeError in call with * unpacking
...
Based on patch by Hagen Fürstenau and Daniel Urban.
2016-01-31 06:30:56 +00:00
Martin Panter
7602b76d47
Issue #26173 : Merge wrongcert test from 3.5
2016-01-30 04:45:02 +00:00
Martin Panter
407b62f3e5
Issue #26173 : Fix test_ssl confusion with non-existing cert and wrongcert.pem
...
Testing for a non-existing certificate file is already done in test_errors().
Copy wrongcert.pem from Python 2 and use it to test the behaviour with a
mismatched certificate.
2016-01-30 03:41:43 +00:00
Serhiy Storchaka
2552c2d6f7
Issue #26202 : copy.deepcopy() now correctly copies range() objects with
...
non-atomic attributes.
2016-01-28 21:43:51 +02:00
Serhiy Storchaka
0a20bbf669
Issue #26202 : copy.deepcopy() now correctly copies range() objects with
...
non-atomic attributes.
2016-01-28 21:43:35 +02:00
Serhiy Storchaka
b49a1edc15
Merge heads
2016-01-28 19:56:40 +02:00
Serhiy Storchaka
d2557a67d8
Issue #26198 : Added tests for "es", "et", "es#", "et#" and "C" format units
...
of PyArg_Parse*() functions.
2016-01-28 19:51:26 +02:00
Serhiy Storchaka
c8241fdde7
Issue #26198 : Added tests for "es", "et", "es#", "et#" and "C" format units
...
of PyArg_Parse*() functions.
2016-01-28 19:49:54 +02:00
Victor Stinner
8f475effbc
Backport fixes on test_eintr
...
* Issue #25234 : Skip test_eintr.test_open() under OS X to avoid hanging
* Issue #25868 : Try to make test_eintr.test_sigwaitinfo() more reliable
especially on slow buildbots. Use a pipe to synchronize the parent and the
child processes.
2016-01-28 18:13:45 +01:00
Berker Peksag
c661e1d10d
Issue #24705 : Add a test case for ef84d21f5292
2016-01-28 16:58:23 +02:00
Berker Peksag
ad13edb6fd
Issue #24705 : Add a test case for ef84d21f5292
2016-01-28 16:58:00 +02:00
Martin Panter
9d48869fcc
Issue #19023 : Merge ctypes doc and tests from 3.5
2016-01-29 10:25:40 +00:00
Martin Panter
34360c8e09
Issue #19023 : Document ctypes array and pointer classes
...
Also add some more tests. Based on patch by Sye van der Veen.
2016-01-29 10:12:19 +00:00
Berker Peksag
81a5092285
Issue #26034 : Improve wording of clear parameter
2016-01-28 09:13:32 +02:00
Berker Peksag
22532ac2eb
Issue #26034 : Improve wording of clear parameter
2016-01-28 09:13:14 +02:00
Berker Peksag
1b95517337
Issue #26034 : Sync documentation of --clear with its behavior
...
Most of the docs has already been updated in c3c188a0325a.
2016-01-28 09:01:49 +02:00
Berker Peksag
547f66f599
Issue #26034 : Sync documentation of --clear with its behavior
...
Most of the docs has already been updated in c3c188a0325a.
2016-01-28 09:01:26 +02:00
Terry Jan Reedy
0110dfc523
Merge with 3.5
2016-01-27 11:52:13 -05:00
Terry Jan Reedy
b31a2849da
Issue #25507 : revert incorrect movement of idleConf import in c548ad75160c.
...
Augment htest to include all major IOBinding functions.
2016-01-27 11:51:50 -05:00
Raymond Hettinger
0ef0423cb2
merge
2016-01-26 21:46:03 -08:00
Raymond Hettinger
3743432302
Issue #26194 : Fix undefined behavior for deque.insert() when len(d) == maxlen
2016-01-26 21:44:16 -08:00
Victor Stinner
be59d1489b
Issue #26146 : enhance ast.Constant error message
...
Mention the name of the invalid type in error message of AST validation for
constants.
Suggestion made by Joseph Jevnik on a review.
2016-01-27 00:39:12 +01:00
Raymond Hettinger
906d82db6d
Fix typo
2016-01-25 23:00:21 -08:00
Senthil Kumaran
0b57f0adde
merge from 3.5
...
Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.
2016-01-25 18:54:37 -08:00
Senthil Kumaran
d4e51f45a9
Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.
2016-01-25 18:53:34 -08:00
Victor Stinner
f2c1aa1661
Add ast.Constant
...
Issue #26146 : Add a new kind of AST node: ast.Constant. It can be used by
external AST optimizers, but the compiler does not emit directly such node.
An optimizer can replace the following AST nodes with ast.Constant:
* ast.NameConstant: None, False, True
* ast.Num: int, float, complex
* ast.Str: str
* ast.Bytes: bytes
* ast.Tuple if items are constants too: tuple
* frozenset
Update code to accept ast.Constant instead of ast.Num and/or ast.Str:
* compiler
* docstrings
* ast.literal_eval()
* Tools/parser/unparse.py
2016-01-26 00:40:57 +01:00
Victor Stinner
1aa78938b0
Issue #26146 : marshal.loads() now uses the empty frozenset singleton
2016-01-23 14:15:48 +01:00
Victor Stinner
5ebe2c89fe
Cleanup test_dict
...
* Write one import per line
* Sort imports by name
* Add an empty line: 2 empty lines between code blocks at the module level (PEP 8)
2016-01-23 13:52:05 +01:00
Victor Stinner
843a1fb1e7
test_gc: remove unused imports
2016-01-23 13:29:02 +01:00
Brett Cannon
9fa812668f
Issue #18018 : Raise an ImportError if a relative import is attempted
...
with no known parent package.
Previously SystemError was raised if the parent package didn't exist
(e.g., __package__ was set to '').
Thanks to Florent Xicluna and Yongzhi Pan for reporting the issue.
2016-01-22 16:39:02 -08:00
Brett Cannon
4b18dd339a
Issue #25234 : Skip test_eintr.test_open() under OS X to avoid hanging
2016-01-22 15:55:56 -08:00
Brett Cannon
b0db3718d4
whitespace cleanup
2016-01-22 15:26:56 -08:00
Brett Cannon
849113af6b
Issue #25791 : Warn when __package__ != __spec__.parent.
...
In a previous change, __spec__.parent was prioritized over
__package__. That is a backwards-compatibility break, but we do
eventually want __spec__ to be the ground truth for module details. So
this change reverts the change in semantics and instead raises an
ImportWarning when __package__ != __spec__.parent to give people time
to adjust to using spec objects.
2016-01-22 15:25:50 -08:00
Victor Stinner
5a701f0304
Issue #25876 : Fix also test_set() of test_gdb when -E command line is used
2016-01-22 15:04:27 +01:00
Victor Stinner
22756f18bc
Issue #25876 : test_gdb: use subprocess._args_from_interpreter_flags() to test
...
Python with more options.
2016-01-22 14:16:47 +01:00
Victor Stinner
3cdd5fb970
code_richcompare() now uses the constants types
...
Issue #25843 : When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.
Add a new _PyCode_ConstantKey() private function.
2016-01-22 12:33:12 +01:00
Victor Stinner
efb2413ce8
code_richcompare() now uses the constants types
...
Issue #25843 : When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.
Add a new _PyCode_ConstantKey() private function.
2016-01-22 12:33:12 +01:00
Victor Stinner
e3560a7dc9
site: error on sitecustomize import error
...
Issue #26099 : The site module now writes an error into stderr if sitecustomize
module can be imported but executing the module raise an ImportError. Same
change for usercustomize.
2016-01-22 12:22:07 +01:00
Donald Stufft
a7baa106cd
Merge update to pip
2016-01-21 21:56:28 -05:00
Donald Stufft
38150e0d85
Merge update to pip
2016-01-21 21:56:06 -05:00
Donald Stufft
5d0124623c
Upgrade pip to 8.0.2
2016-01-21 21:55:32 -05:00
Victor Stinner
f3914eb16d
co_lnotab supports negative line number delta
...
Issue #26107 : The format of the co_lnotab attribute of code objects changes to
support negative line number delta.
Changes:
* assemble_lnotab(): if line number delta is less than -128 or greater than
127, emit multiple (offset_delta, lineno_delta) in co_lnotab
* update functions decoding co_lnotab to use signed 8-bit integers
- dis.findlinestarts()
- PyCode_Addr2Line()
- _PyCode_CheckLineNumber()
- frame_setlineno()
* update lnotab_notes.txt
* increase importlib MAGIC_NUMBER to 3361
* document the change in What's New in Python 3.6
* cleanup also PyCode_Optimize() to use better variable names
2016-01-20 12:16:21 +01:00
Serhiy Storchaka
5ccbf79eae
Issue #26147 : xmlrpc now works with strings not encodable with used
...
non-UTF-8 encoding.
2016-01-20 10:41:33 +02:00
Serhiy Storchaka
aebb6d3682
Issue #26147 : xmlrpc now works with strings not encodable with used
...
non-UTF-8 encoding.
2016-01-20 10:34:27 +02:00
Donald Stufft
33abe9a210
Merge update to pip/setuptools
2016-01-19 20:15:33 -05:00
Donald Stufft
1dce2c72ed
Merge update to pip/setuptools
2016-01-19 20:14:39 -05:00
Donald Stufft
33a827678e
Update pip to 8.0.0 and setuptools to 19.4
2016-01-19 20:13:51 -05:00
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
Serhiy Storchaka
31a858cbf1
Issue #16620 : Got rid of using undocumented function glob.glob1().
2016-01-19 14:09:33 +02:00
Serhiy Storchaka
47670ebb0c
Issue #16620 : Fixed AttributeError in msilib.Directory.glob().
2016-01-19 14:06:13 +02:00
Serhiy Storchaka
e914cd1308
Issue #16620 : Fixed AttributeError in msilib.Directory.glob().
2016-01-19 13:55:36 +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
905a97d4c2
Issue #26013 : Added compatibility with broken protocol 2 pickles created
...
in old Python 3 versions (3.4.3 and lower).
2016-01-18 21:36:03 +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
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
Terry Jan Reedy
ab061cf2ae
Merge with 3.5
2016-01-16 23:44:16 -05: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
709c2aeba6
Issue #26071 : bdist_wininst created binaries fail to start and find 32bit Python
2016-01-16 13:55:05 -08: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
d8ce735e82
Issue #25850 : Use cross-compilation by default for 64-bit Windows.
2016-01-16 12:40:19 -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
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
Brett Cannon
43dab4bfcf
Merge 'used with permission' additions
2016-01-15 09:54:16 -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
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
86f7109dad
Issue #25822 : Add docstrings to the fields of urllib.parse results.
...
Patch contributed by Swati Jaiswal.
2016-01-14 00:11:39 -08: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
Senthil Kumaran
121edbf7e2
Issue25347 - Format the error message output of mock's assert_has_calls method.
...
Patch contributed by Robert Zimmerman.
2016-01-12 06:18:32 -08:00
Barry Warsaw
e973620472
Merge heads.
2016-01-11 15:53:19 -05:00
doko@ubuntu.com
0633cb7d7a
Merge 3.5
2016-01-11 21:43:29 +01: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
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
Yury Selivanov
d9d0e864b9
Issue #26050 : Add asyncio.StreamReader.readuntil() method.
...
Patch by Марк Коренберг.
2016-01-11 12:28:19 -05:00
Senthil Kumaran
96b531abd5
Issue #26069 : Remove the deprecated apis in the trace module.
2016-01-11 07:09:42 -08:00
Andrew Svetlov
511bf7880c
merge 3.5
2016-01-11 12:26:02 +02: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
34dd59ec84
merge 3.5
2016-01-11 09:13:10 +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
ef7851b891
#24789 : merge with 3.5.
2016-01-09 16:09:19 +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
b94591c2bf
merge from 3.5
...
Issue #22138 : Fix mock.patch behavior when patching descriptors. Restore
original values after patching.
Patch contributed by Sean McCully.
2016-01-08 23:44:10 -08: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
2900995edd
Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.5->3.6)
2016-01-07 13:13:31 -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
8355bd7f66
Add another try/except PermissionError to avoid depending on listdir order. Fix issues #24120 and #26012 . (Merge 3.5->3.6)
2016-01-07 10:58:20 -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
bd15bae45a
Fix typo in docstring of multiprocessing.spawn.spawn_main()
2016-01-07 19:03:15 +02:00
Berker Peksag
16fb674882
Fix typo in docstring of multiprocessing.spawn.spawn_main()
2016-01-07 19:02:55 +02:00
Guido van Rossum
483397a235
Issue #22570 : Add 'path' attribute to pathlib.Path objects. (Merge 3.5->3.6)
2016-01-06 11:03:47 -08: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
e630b6818f
Issue #26012 : Don't traverse into symlinks for ** pattern in pathlib.Path.[r]glob(). (Merge 3.5->3.6)
2016-01-06 10:36:19 -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
080169c494
Issue #24120 : Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri. (Merge 3.5->3.6)
2016-01-06 09:53:51 -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
317f64f048
#21815 : violate IMAP RFC to be compatible with, e.g., gmail
...
and others, including imaplib's own behavior. I'm applying this only to 3.6
because there's a potential backward compatibility concern: if there are
servers that include ] characters in the 'text' portion of their imap
responses, this code change could introduce a new bug.
Patch by Lita Cho, reviewed by Jessica McKellar, Berker Peksag, Maciej Szulik,
silentghost, and me (I fleshed out the comments with the additional
info/concerns.)
2016-01-02 17:18:34 -05:00
R David Murray
01759d5554
Merge: #22709 : Use stdin as-is if it does not have a buffer attribute.
2016-01-02 15:43:44 -05: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
a313538381
Remove a duplicate test_addresses key:value as identified by Vincent
...
Davis reviewing code.
2016-01-01 17:42:30 -08: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
58f8833e4c
Make catched exception more specific and correct a comment.
2015-12-30 21:00:29 +02:00
Serhiy Storchaka
beb652ccc1
Make catched exception more specific and correct a comment.
2015-12-30 21:00:08 +02:00
Berker Peksag
a7161e7fac
Issue #25977 : Fix typos in Lib/tokenize.py
...
Patch by John Walker.
2015-12-30 01:42:43 +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
Serhiy Storchaka
0d250bc119
Issue #25971 : Optimized creating Fractions from floats by 2 times and from
...
Decimals by 3 times.
Unified error messages in float.as_integer_ratio(), Decimal.as_integer_ratio(),
and Fraction constructors.
2015-12-29 22:34:23 +02:00
Benjamin Peterson
5aab44b301
merge 3.5 ( #25973 )
2015-12-29 10:08:51 -06: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
Brett Cannon
eae3079041
Issue #25802 : Deprecate load_module() on importlib.machinery.SourceFileLoader and SourcelessFileLoader.
...
They were the only remaining implementations of load_module() not
documented as deprecated.
2015-12-28 17:55:27 -08:00
Brett Cannon
838629a1fe
Issue #25234 : Skip test_eintr.test_os_open under OS X.
...
Test inconsistently hangs.
2015-12-28 17:23:35 -08:00
Brett Cannon
3bbad12b5b
Tweak skipping message
2015-12-28 17:21:44 -08:00
Brett Cannon
b4783f4bc1
Merge
2015-12-28 17:18:21 -08:00
Brett Cannon
3c61a448f1
Issue #24725 : Skip the test_socket.testFDPassEmpty on OS X.
...
In OS X 10.11, the test fails consistently due to a platform change
since 10.10. Thanks to Jeff Ramnani for the patch.
2015-12-28 17:17:58 -08:00
Stefan Krah
150660eefd
Issue #25940 : Make buildbots usable again until a solution is found.
2015-12-29 02:15:35 +01:00
Stefan Krah
2335f44d8e
Issue #25928 : Temporarily disable some tests in test_statistics in order
...
to sort out its assumptions about the as_integer_ratio() interface.
2015-12-29 00:11:36 +01:00
Stefan Krah
e3f359c71c
Merge.
2015-12-28 23:12:52 +01:00
Stefan Krah
53f2e0ad45
Issue #25928 : Add Decimal.as_integer_ratio(). Python parts and docs by
...
Mark Dickinson.
2015-12-28 23:02:02 +01:00
Serhiy Storchaka
3f1b95b4ae
Merge heads
2015-12-29 00:01:31 +02:00
Serhiy Storchaka
e3a7d26aa6
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:59:09 +02: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
Ezio Melotti
ac1e7f6983
Remove duplicate method in test_pathlib. Initial patch by Navneet Suman.
2015-12-28 23:50:19 +02:00
Brett Cannon
1e3c3e906c
Issue #25768 : Make compileall functions return booleans and document
...
the return values as well as test them.
Thanks to Nicholas Chammas for the bug report and initial patch.
2015-12-27 13:17:04 -08:00
Vinay Sajip
c1681674d4
Closes #25685 : Merged fix from 3.5.
2015-12-26 12:51:43 +00:00
Vinay Sajip
9cdfd18fc6
Closes #25685 : Made SocketHandler emission more efficient.
2015-12-26 12:48:44 +00:00
Serhiy Storchaka
f9253c96fd
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:05:35 +02: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
85896f72d5
Issue #25860 : Fixed test failure caused by inconsistency of os.walk() and
...
os.fwalk() parameter names.
2015-12-23 00:37:50 +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
345e78e566
Issue #25860 : os.fwalk() no longer skips remaining directories when error occurs.
...
Original patch by Samson Lee.
2015-12-23 00:09:01 +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
3987e26e75
Issue #25914 : Fixed and simplified OrderedDict.__sizeof__.
2015-12-22 08:22:05 +02:00
Serhiy Storchaka
0ce7a3a34c
Issue #25914 : Fixed and simplified OrderedDict.__sizeof__.
2015-12-22 08:16:18 +02:00
Serhiy Storchaka
47a9d59d51
Issue #25902 : Fixed various refcount issues in ElementTree iteration.
2015-12-21 11:11:12 +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
3182db356c
Issue #25766 : Special method __bytes__() now works in str subclasses.
2015-12-20 16:37:21 +02:00
Serhiy Storchaka
5aac3ed799
Issue #25766 : Special method __bytes__() now works in str subclasses.
2015-12-20 16:36:34 +02:00
Serhiy Storchaka
5decf0bf32
Fixed sizeof tests for dict and type (they were passed by accident).
...
Added tests for dict views iterators.
2015-12-20 11:39:47 +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
36b5b6a417
Don't create non-needed file.
2015-12-20 09:38:31 +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
0702d4d245
Use correct PyGC_Head size in tests for issue #25421 .
2015-12-19 22:51:00 +02:00
Serhiy Storchaka
9c297e43bf
Use correct PyGC_Head size in tests for issue #25421 .
2015-12-19 22:49:29 +02:00
Serhiy Storchaka
a9406e77fa
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:07:11 +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
Serhiy Storchaka
a254921cd4
Issue #22227 : The TarFile iterator is reimplemented using generator.
...
This implementation is simpler that using class.
2015-12-19 09:43:14 +02:00
Terry Jan Reedy
de20bad224
Merge with 3.5
2015-12-18 15:47:28 -05: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
3fd4a735d8
Issue #25899 : Converted non-ASCII characters in docstrings and manpage
...
to ASCII replacements. Removed UTF-8 BOM from Misc/NEWS.
Original patch by Chris Angelico.
2015-12-18 13:10:37 +02: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
afaf3544aa
Merge typo fixes from 3.5
2015-12-17 10:20:21 +00:00
Martin Panter
6f9b010242
Fix a couple of typos in code comments
2015-12-17 10:18:28 +00:00
Yury Selivanov
d4222dba18
Merge 3.5
2015-12-16 20:41:39 -05: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
29832bb19d
Merge 3.5
2015-12-16 20:23:47 -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
9f79a705ab
Merge 3.5
2015-12-16 19:51:31 -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
94a35cc4f8
Merge 3.5
2015-12-16 19:40:23 -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
88aa2dc1ac
Merge 3.5
2015-12-16 19:36:01 -05:00