Commit graph

22666 commits

Author SHA1 Message Date
Łukasz Langa
a785c87d6e DTrace support: function calls, GC activity, line execution
Tested on macOS 10.11 dtrace, Ubuntu 16.04 SystemTap, and libbcc.

Largely based by an initial patch by Jesús Cea Avión, with some
influence from Dave Malcolm's SystemTap patch and Nikhil Benesch's
unification patch.

Things deliberately left out for simplicity:
- ustack helpers, I have no way of testing them at this point since
they are Solaris-specific
- PyFrameObject * in function__entry/function__return, this is
SystemTap-specific
- SPARC support
- dynamic tracing
- sys module dtrace facility introspection

All of those might be added later.
2016-09-09 17:37:37 -07:00
Steve Dower
ff70fc2206 Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun) 2016-09-09 17:33:37 -07:00
Steve Dower
8dcc48ee3b Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun) 2016-09-09 17:27:33 -07:00
R David Murray
1319236167 Merge: #14977: Make mailcap respect the order of the lines in the mailcap file. 2016-09-09 20:09:43 -04:00
R David Murray
347dc95cd3 #14977: Make mailcap respect the order of the lines in the mailcap file.
This is required by RFC 1542, so despite the subtle behavior change we
are treating it as a bug.  Patch by Michael Lazar.
2016-09-09 20:04:23 -04:00
Zachary Ware
5272868e1f Rename test_strlit -> test_string_literals 2016-09-09 16:15:03 -07:00
Raymond Hettinger
f1024f7425 merge 2016-09-09 15:58:00 -07:00
R David Murray
06ed218ed0 #20476: add a message_factory policy attribute to email. 2016-09-09 18:39:18 -04:00
Serhiy Storchaka
142aee3a8e Merge heads 2016-09-10 01:14:38 +03:00
Serhiy Storchaka
be9a4e5c85 Issue #433028: Added support of modifier spans in regular expressions. 2016-09-10 00:57:55 +03:00
Brett Cannon
a721abac29 Issue #26331: Implement the parsing part of PEP 515.
Thanks to Georg Brandl for the patch.
2016-09-09 14:57:09 -07:00
Guido van Rossum
7b3b3dc85d Merge asyncio upstream. 2016-09-09 14:26:31 -07:00
Zachary Ware
724f6a67f2 Rename test_pep####.py files 2016-09-09 12:55:37 -07:00
Zachary Ware
a0154c0f0e Fix running test_tokenize directly 2016-09-09 12:55:14 -07:00
R David Murray
94a7927cc6 #28047: Fix calculation of base64 line length.
This is buggy in the old email code as well, but it doesn't affect anything
there because only the default line length is ever used there.
2016-09-09 15:00:09 -04:00
Victor Stinner
f9b760f48a Rework CALL_FUNCTION* opcodes
Issue #27213: Rework CALL_FUNCTION* opcodes to produce shorter and more
efficient bytecode:

* CALL_FUNCTION now only accepts position arguments
* CALL_FUNCTION_KW accepts position arguments and keyword arguments, but keys
  of keyword arguments are packed into a constant tuple.
* CALL_FUNCTION_EX is the most generic, it expects a tuple and a dict for
  positional and keyword arguments.

CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW opcodes have been removed.

2 tests of test_traceback are currently broken: skip test, the issue #28050 was
created to track the issue.

Patch by Demur Rumed, design by Serhiy Storchaka, reviewed by Serhiy Storchaka
and Victor Stinner.
2016-09-09 10:17:08 -07:00
Steve Dower
2a2becc1d1 Merge with 3.5 2016-09-09 12:09:07 -07:00
Eric Snow
06aed90a1f Issue #27576: Fix call order in OrderedDict.__init__(). 2016-09-09 11:59:08 -07:00
Zachary Ware
cce02f8b82 Remove Lib/test/test_pep247.py
This test file is a holdover from the days before hashlib, and doesn't seem to
have anything of value in it.
2016-09-09 11:38:38 -07:00
Yury Selivanov
d04e417b1e tests: use subTest in test_unparse.test_files 2016-09-09 11:14:59 -07:00
Yury Selivanov
52c4e7cc84 Issue #28008: Implement PEP 530 -- asynchronous comprehensions. 2016-09-09 10:36:01 -07:00
Guido van Rossum
6cff8744a0 Issue #27999: Make "global after use" a SyntaxError, and ditto for nonlocal.
Patch by Ivan Levkivskyi.
2016-09-09 09:36:26 -07:00
Steve Dower
6d5cf8a73e Fixes expected error when getting encoding while shutting down. 2016-09-09 09:21:01 -07:00
Guido van Rossum
deed5a18ca Issue #28038: Remove Tools/parser/com2ann.py and its unit test.
Development is moving to https://github.com/ilevkivskyi/com2ann
2016-09-09 09:06:11 -07:00
Martin Panter
2b9b70b43b Issue #27106: Add test for configparser.__all__
Patch by Jacek Kołodziej. The Error class is deliberately omitted because it
is a generic name and of limited use.
2016-09-09 06:46:48 +00:00
Yury Selivanov
eb6364557f Issue #28003: Implement PEP 525 -- Asynchronous Generators. 2016-09-08 22:01:51 -07:00
Victor Stinner
b96ef55d49 regrtest: log FS and locale encodings 2016-09-08 21:46:56 -07:00
Yury Selivanov
f8cb8a16a3 Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.
Patch by Ivan Levkivskyi.
2016-09-08 20:50:03 -07:00
Eric Snow
4f29e75289 Issue #24254: Drop cls.__definition_order__. 2016-09-08 15:11:11 -07:00
Raymond Hettinger
4c483ad52b Merge 2016-09-08 14:45:40 -07:00
Raymond Hettinger
262b6793e0 Issue #26020: Fix evaluation order for set literals 2016-09-08 14:40:36 -07:00
Steve Dower
33df0c3fb6 More lenient skipping of console tests. 2016-09-08 14:36:18 -07:00
Steve Dower
f09e2fa2e9 Skips console open_fd tests when we don't have real consoles. 2016-09-08 14:34:24 -07:00
Berker Peksag
2b2a9be913 Issue #27445: Don't pass str(_charset) to MIMEText.set_payload()
Patch by Claude Paroz.
2016-09-08 19:40:30 +03:00
Senthil Kumaran
82733fac8d Issue11551 - Increase the test coverage of _dummy_thread module to 100%.
Initial patch contributed by Denver Coneybeare.
2016-09-08 02:46:22 -07:00
Vinay Sajip
d61910c598 Fixes #27930: improved QueueListener behaviour. 2016-09-08 01:13:39 +01:00
Martin Panter
0f0eac431f Issue #27993: Fix problems with plural objects in docs and comments 2016-09-07 11:04:41 +00:00
Martin Panter
0be894b2f6 Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 2016-09-07 12:03:06 +00:00
Martin Panter
be8da9c990 Issue #27570: Avoid zero-length memcpy() calls with null source pointers 2016-09-07 11:04:41 +00:00
R David Murray
dc1650ca06 #22233: Only split headers on \r and/or \n, per email RFCs.
Original patch by Martin Panter, new policy fixes by me.
2016-09-07 17:44:34 -04:00
R David Murray
c2e2473bc2 27988: Make sure iter_attachments does not mutate the payload list. 2016-09-07 13:39:36 -04:00
Benjamin Peterson
48c88307d8 capture stderr to silence output during test_coroutines (closes #27968) 2016-09-07 09:00:48 -07:00
Senthil Kumaran
32d374215a [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder". 2016-09-07 00:52:20 -07:00
Christian Heimes
1c03abd026 Issue #27691: Fix ssl module's parsing of GEN_RID subject alternative name fields in X.509 certs. 2016-09-06 23:25:35 +02:00
Benjamin Peterson
cbef66d711 suppress stderr output when checking gdb (closes #27969) 2016-09-06 10:06:31 -07:00
Zachary Ware
f4a7381719 Issue #27748: Backed out changeset f845e24d794e
Apparently the test succeeds on XP.
2016-09-05 18:08:27 -05:00
Zachary Ware
9ed756bc21 Issue #27748: strengthen test_alias_nofallback
This test should always raise RuntimeError.
2016-09-05 17:19:35 -05:00
Christian Heimes
598894ff48 Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0. 2016-09-05 23:19:05 +02:00
Zachary Ware
b3b7a5a16b Issue #27748: Simplify test_winsound.
The tests no longer attempt to figure out if a soundcard or particular
system sounds are available.  Instead, it just tries everything and
accepts RuntimeError as a flavor of success.
2016-09-05 16:06:56 -05:00
Benjamin Peterson
2f40ed4b94 do not allow _PyGen_Finalize to fail (closes #27811)
Patch from Armin Rigo.
2016-09-05 10:14:54 -07:00