summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_trace.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-41138: Fix trace CLI for non-UTF-8 files. (GH-21177)Miss Islington (bot)2020-06-281-13/+21
| | | | | | Fix also a resource warning when store counts and module info. (cherry picked from commit 04cdeb7a5617c48102f45b965e683b12cdf934f8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵Serhiy Storchaka2020-06-251-3/+6
| | | | | | characters. (GH-21035). (GH-21156) (cherry picked from commit 700cfa8c90a90016638bac13c4efd03786b2b2a0)
* Fix typos in comments, docs and test names (#15018)Min ho Kim2019-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Fix typos in comments, docs and test names * Update test_pyparse.py account for change in string length * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: Dealloccte -> Deallocate Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Update posixmodule checksum. * Reverse idlelib changes.
* [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)Serhiy Storchaka2019-06-051-3/+2
| | | Turn deprecation warnings added in 3.8 into TypeError.
* Add option to trace to run modules (GH-5134)Mario Corchero2019-06-011-1/+6
| | | | | Adds a new option in trace that allows tracing runnable modules. It is exposed as `--module module_name` as `-m` is already in use for another argument.
* bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637)Serhiy Storchaka2019-04-011-0/+12
| | | | | | | | | | | | | | | | | | | | | | Deprecated passing the following arguments as keyword arguments: - "func" in functools.partialmethod(), weakref.finalize(), profile.Profile.runcall(), cProfile.Profile.runcall(), bdb.Bdb.runcall(), trace.Trace.runfunc() and curses.wrapper(). - "function" in unittest.addModuleCleanup() and unittest.TestCase.addCleanup(). - "fn" in the submit() method of concurrent.futures.ThreadPoolExecutor and concurrent.futures.ProcessPoolExecutor. - "callback" in contextlib.ExitStack.callback(), contextlib.AsyncExitStack.callback() and contextlib.AsyncExitStack.push_async_callback(). - "c" and "typeid" in the create() method of multiprocessing.managers.Server and multiprocessing.managers.SharedMemoryServer. - "obj" in weakref.finalize(). Also allowed to pass arbitrary keyword arguments (even "self" and "func") if the above arguments are passed as positional argument.
* bpo-34876: Change the lineno of the AST for decorated function and class. ↵Serhiy Storchaka2018-10-301-0/+44
| | | | | | | (GH-9731) It was overridden by the lineno of the first decorator. Now it is the lineno of 'def' or 'class'.
* bpo-34171: Fix test_trace. (GH-8940)Serhiy Storchaka2018-08-271-3/+6
| | | | Remove "trace.cover" left from previous test runs before testing that it is no longer created.
* bpo-34171: Prevent creating Lib/trace.cover when run the trace module. (GH-8841)Serhiy Storchaka2018-08-251-0/+5
|
* bpo-26818: Add a test to make sure the bug is fixed (GH-8664)Berker Peksag2018-08-111-0/+22
| | | | The main cause of this bug was fixed as part of bpo-31908.
* bpo-31908: Fix output of cover files for trace module command-line tool. ↵Michael Selik2018-05-011-0/+41
| | | | | | (GH-4205) Previously emitted cover files only when --missing option was used.
* bpo-32852: Fix trace changing sys.argv to tuple. (GH-5692)Kyle Altendorf2018-02-171-0/+10
|
* Issue #19398: Extra slash no longer added to sys.path components in case ofSerhiy Storchaka2016-11-111-4/+4
|\ | | | | | | | | empty compile-time PYTHONPATH components. This fixes some tests in -S or -I modes.
| * Issue #19398: Extra slash no longer added to sys.path components in case ofSerhiy Storchaka2016-11-111-4/+4
| | | | | | | | | | empty compile-time PYTHONPATH components. This fixes some tests in -S or -I modes.
* | Issue22642 - Convert trace module's option handling mechanism from getopt to ↵Senthil Kumaran2016-01-131-0/+22
| | | | | | | | | | | | argparse. Patch contributed by SilentGhost.
* | Issue #26069: Remove the deprecated apis in the trace module.Senthil Kumaran2016-01-111-47/+1
|/
* Issue 24215: Added tests for more builtin types in test_pprint.Serhiy Storchaka2015-05-201-8/+4
|\ | | | | | | Made test_pprint and test_trace discoverable.
| * Issue 24215: Added tests for more builtin types in test_pprint.Serhiy Storchaka2015-05-201-8/+4
| | | | | | | | Made test_pprint and test_trace discoverable.
* | Issue #23731: Implement PEP 488.Brett Cannon2015-04-131-2/+2
| | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied.
* | Fixes #10541: regrtest -T is brokenAlexander Belopolsky2014-06-291-1/+5
|/ | | | | | * makes test_trace tests restore the tracefunc after they run * write_results() in trace module will not terminate if lnotab cannot be found.
* #17143: fix buildbot failures on Windows.Ezio Melotti2013-02-201-5/+6
|
* #17143: fix a missing import in the trace module. Initial patch by Berker ↵Ezio Melotti2013-02-151-0/+45
| | | | Peksag.
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-2/+2
|
* Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-1/+1
| | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* #11565: Merge with 3.2.Ezio Melotti2011-03-161-1/+1
|\
| * #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
| |\
| | * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| | |
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| | * Merged revisions 85000 via svnmerge fromAlexander Belopolsky2010-09-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85000 | alexander.belopolsky | 2010-09-24 18:04:22 -0400 (Fri, 24 Sep 2010) | 1 line This should fix buildbot failure introduced by r84994 ........
| | * Merged revisions 84994 via svnmerge fromAlexander Belopolsky2010-09-241-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84994 | alexander.belopolsky | 2010-09-24 14:03:12 -0400 (Fri, 24 Sep 2010) | 1 line Issue #9936: Fixed executable lines' search in the trace module. ........
| | * Issue 9315: Removed list comprehention test.Alexander Belopolsky2010-09-161-22/+0
| | |
| | * Merged revisions 84780-84781 via svnmerge fromAlexander Belopolsky2010-09-131-0/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k with some manual fixes ........ r84780 | alexander.belopolsky | 2010-09-13 14:14:34 -0400 (Mon, 13 Sep 2010) | 3 lines Issue #9315: Fix for the trace module to record correct class name when tracing methods. Unit tests. Patch by Eli Bendersky. ........ r84781 | alexander.belopolsky | 2010-09-13 14:15:33 -0400 (Mon, 13 Sep 2010) | 1 line Removed debugging setting ........
| | * Merged revisions 83140-83141 via svnmerge fromAlexander Belopolsky2010-07-251-790/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83140 | alexander.belopolsky | 2010-07-25 11:02:55 -0400 (Sun, 25 Jul 2010) | 5 lines Issue #9315: Renamed test_trace to test_sys_settrace and test_profilehooks to test_sys_setprofile so that test_trace can be used for testing the trace module and for naming consistency. ........ r83141 | alexander.belopolsky | 2010-07-25 11:05:42 -0400 (Sun, 25 Jul 2010) | 1 line Corrected comments on where settrace and setprofile are tested. ........
| | * Reverted r83143: svnmerge failed to add new namesAlexander Belopolsky2010-07-251-0/+790
| | |
| | * Merged revisions 83140-83141 via svnmerge fromAlexander Belopolsky2010-07-251-790/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83140 | alexander.belopolsky | 2010-07-25 11:02:55 -0400 (Sun, 25 Jul 2010) | 5 lines Issue #9315: Renamed test_trace to test_sys_settrace and test_profilehooks to test_sys_setprofile so that test_trace can be used for testing the trace module and for naming consistency. ........ r83141 | alexander.belopolsky | 2010-07-25 11:05:42 -0400 (Sun, 25 Jul 2010) | 1 line Corrected comments on where settrace and setprofile are tested. ........
* | | Issue #10992: make tests pass when run under coverage.Brett Cannon2011-02-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various tests fail when run under coverage. A primary culprit is refcount tests which fail as the counts are thrown off by the coverage code. A new decorator -- test.support.refcount_test -- is used to decorate tests which test refcounts and to skip them when running under coverage. Other tests simply fail because of changes in the system (e.g., __local__ suddenly appearing). Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
* | | Issue #10990: Prevent tests from clobbering a set trace function.Brett Cannon2011-02-211-0/+7
|/ / | | | | | | | | | | | | | | | | | | | | Many tests simply didn't care if they unset a pre-existing trace function. This made test coverage impossible. This patch fixes various tests to put back any pre-existing trace function. It also introduces test.support.no_tracing as a decorator which will temporarily unset the trace function for tests which simply fail otherwise. Thanks to Kristian Vlaardingerbroek for helping to find the cause of various trace function unsets.
* | Fixed deprecation warnings.Alexander Belopolsky2010-11-261-2/+2
| |
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-1/+1
| |
* | Fixed unit test failure on WindowsAlexander Belopolsky2010-11-081-4/+5
| |
* | Streamlined code in trace.Ignore and added unit tests.Alexander Belopolsky2010-11-081-0/+14
| |
* | This should fix buildbot failure introduced by r84994Alexander Belopolsky2010-09-241-0/+2
| |
* | Issue #9936: Fixed executable lines' search in the trace module.Alexander Belopolsky2010-09-241-3/+22
| |
* | Removed debugging settingAlexander Belopolsky2010-09-131-1/+0
| |
* | Issue #9315: Fix for the trace module to record correct class nameAlexander Belopolsky2010-09-131-6/+282
| | | | | | | | when tracing methods. Unit tests. Patch by Eli Bendersky.
* | #3821: beginnings of a trace.py unittest.Georg Brandl2010-08-021-0/+47
| |
* | Issue #9315: Renamed test_trace to test_sys_settrace andAlexander Belopolsky2010-07-251-790/+0
| | | | | | | | | | test_profilehooks to test_sys_setprofile so that test_trace can be used for testing the trace module and for naming consistency.
* | Issue #9315: Revert r83005 before renaming test_trace toAlexander Belopolsky2010-07-251-0/+790
| | | | | | | | | | test_sys_settrace and test_profilehooks to test_sys_setprofile in all three branches.
* | move test_trace.py so as not to conflict with future tests for the trace moduleBenjamin Peterson2010-07-201-790/+0
|/
* Merged revisions 73114 via svnmerge fromAmaury Forgeot d'Arc2009-06-011-0/+17
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73114 | amaury.forgeotdarc | 2009-06-01 22:53:18 +0200 (lun., 01 juin 2009) | 3 lines #4547: When debugging a very large function, it was not always possible to update the lineno attribute of the current frame. ........