cpython/Lib/test/output
Guido van Rossum f137f75ab8 Hopefully fix the profiler right. Add a test suite that checks that
it deals correctly with some anomalous cases; according to this test
suite I've fixed it right.

The anomalous cases had to do with 'exception' events: these aren't
generated when they would be most helpful, and the profiler has to
work hard to recover the right information.  The problems occur when C
code (such as hasattr(), which is used as the example here) calls back
into Python code and clears an exception raised by that Python code.
Consider this example:

    def foo():
        hasattr(obj, "bar")

Where obj is an instance from a class like this:

    class C:
        def __getattr__(self, name):
            raise AttributeError

The profiler sees the following sequence of events:

    call (foo)
    call (__getattr__)
    exception (in __getattr__)
    return (from foo)

Previously, the profiler would assume the return event returned from
__getattr__. An if statement checking for this condition and raising
an exception was commented out...  This version does the right thing.
2001-10-04 00:58:24 +00:00
..
test_asynchat
test_atexit
test_augassign Add tests for augmented floor division 2001-08-29 17:50:27 +00:00
test_bastion
test_binascii
test_builtin
test_cfgparser
test_cgi
test_charmapcodec Looks like someone forgot the change the expected output file. 2001-08-24 04:33:10 +00:00
test_class
test_coercion Generalize tuple() to work nicely with iterators. 2001-05-05 03:56:37 +00:00
test_compare
test_compile
test_cookie Get rid of the superstitious "~" in dict hashing's "i = (~hash) & mask". 2001-05-13 00:19:31 +00:00
test_cpickle
test_exceptions
test_extcall Undo previous checkin -- Barry fixed it better. 2001-08-24 19:46:21 +00:00
test_future Fix SF bug [ #450245 ] Error in parsing future stmts 2001-08-20 20:33:42 +00:00
test_gettext
test_global
test_grammar Test case for SF bugs #463359 and #462937, added to test_grammar for lack of 2001-09-26 12:43:39 +00:00
test_httplib Add test for SF bug #405427 2001-04-13 14:57:44 +00:00
test_linuxaudiodev
test_longexp
test_math
test_md5
test_mimetools
test_MimeWriter
test_minidom Update the xml.dom.minidom tests to cover the DOM-compliant parts of the 2001-09-28 20:31:50 +00:00
test_mmap
test_new
test_nis
test_opcodes
test_openpty
test_operations
test_pickle
test_pkg
test_poll
test_popen2
test_posixpath
test_pow New restriction on pow(x, y, z): If z is not None, x and y must be of 2001-09-03 08:35:41 +00:00
test_profile Hopefully fix the profiler right. Add a test suite that checks that 2001-10-04 00:58:24 +00:00
test_pty
test_pwd
test_pyexpat Update test to accomodate the change to the namespace_separator parameter 2001-04-25 16:03:54 +00:00
test_re
test_regex
test_rgbimg
test_richcmp
test_rotor
test_sax Add a test that xml.sax.saxutils.XMLGenerator does the right thing 2001-08-07 19:17:06 +00:00
test_scope Fix for SF bug [ #443866 ] Evaluating func_code causing core dump 2001-07-30 21:55:29 +00:00
test_signal
test_socket
test_string
test_thread
test_threadedtempfile
test_tokenize
test_types
test_ucn
test_unicode Fix Unicode .join() method to raise a TypeError for sequence 2001-09-20 17:22:58 +00:00
test_unicode_file Add support for Windows using "mbcs" as the default Unicode encoding when dealing with the file system. As discussed on python-dev and in patch 410465. 2001-05-13 08:04:26 +00:00
test_unicodedata
test_urlparse
test_winreg
test_winsound
test_xreadline
test_zlib