cpython/Lib/test/output
Tim Peters 6912d4ddf0 Generalize tuple() to work nicely with iterators.
NEEDS DOC CHANGES.
This one surprised me!  While I expected tuple() to be a no-brainer, turns
out it's actually dripping with consequences:
1. It will *allow* the popular PySequence_Fast() to work with any iterable
   object (code for that not yet checked in, but should be trivial).
2. It caused two std tests to fail.  This because some places used
   PyTuple_Sequence() (the C spelling of tuple()) as an indirect way to test
   whether something *is* a sequence.  But tuple() code only looked for the
   existence of sq->item to determine that, and e.g. an instance passed
   that test whether or not it supported the other operations tuple()
   needed (e.g., __len__).  So some things the tests *expected* to fail
   with an AttributeError now fail with a TypeError instead.  This looks
   like an improvement to me; e.g., test_coercion used to produce 559
   TypeErrors and 2 AttributeErrors, and now they're all TypeErrors.  The
   error details are more informative too, because the places calling this
   were *looking* for TypeErrors in order to replace the generic tuple()
   "not a sequence" msg with their own more specific text, and
   AttributeErrors snuck by that.
2001-05-05 03:56:37 +00:00
..
test___all__ added __all__ lists to a number of Python modules 2001-01-20 19:54:20 +00:00
test___future__ Add __future__.py to std library, + dull test to verify that assignments 2001-02-26 21:14:49 +00:00
test_al
test_array
test_asynchat Add test for asynchat. This also tests asyncore. 2001-04-06 16:32:22 +00:00
test_atexit
test_audioop
test_augassign
test_bastion add test of bastion and rexec to std regression test suite 2001-01-19 03:22:48 +00:00
test_binascii
test_binhex
test_bisect
test_bsddb
test_bufio MS Win32 .readline() speedup, as discussed on Python-Dev. This is a tricky 2001-01-07 21:19:34 +00:00
test_builtin Now that Marc-Andre has retracted unistr(), remove the tests. 2001-01-19 21:57:52 +00:00
test_capi Patch derived from Trent's 101162: a Python/C API testing framework. 2001-02-02 05:57:15 +00:00
test_cd
test_cfgparser Make sure ConfigParser uses .optionxform() consistently; this affects 2001-02-26 21:55:34 +00:00
test_cgi
test_charmapcodec Moved the test codec definition to a new module and updated the test and 2001-01-10 10:21:11 +00:00
test_cl
test_class
test_cmath
test_coercion Generalize tuple() to work nicely with iterators. 2001-05-05 03:56:37 +00:00
test_compare No more RCmp. 2001-01-04 01:36:50 +00:00
test_compile SF patch #103749: implicit tuple + default arg 2001-02-19 23:53:42 +00:00
test_complex SF bug [ #409448 ] Complex division is braindead 2001-03-18 08:21:57 +00:00
test_contains
test_cookie Since Guido fiddled Cookie.py to work with doctest, it's a Good Thing to 2001-04-06 21:20:58 +00:00
test_copy_reg
test_cpickle Reorganize pickle/cPickle testing so the tests pass regardless of the order 2001-01-22 22:05:20 +00:00
test_crypt
test_dbm
test_difflib Changed doctest to run tests in alphabetic order of name. 2001-03-21 23:07:59 +00:00
test_dl
test_doctest Changed doctest to run tests in alphabetic order of name. 2001-03-21 23:07:59 +00:00
test_dospath
test_dumbdbm A dumb test for the dumdbm module. 2001-01-18 16:46:52 +00:00
test_errno
test_exceptions Allow 'continue' inside 'try' clause 2001-02-01 22:48:12 +00:00
test_extcall Test cases for examples of ext call error handling. 2001-04-11 13:53:35 +00:00
test_fcntl
test_file
test_fnmatch Add test cases for the fnmatch module. 2001-03-21 18:29:25 +00:00
test_fork1
test_format
test_funcattrs Committing PEP 232, function attribute feature, approved by Guido. 2001-01-15 20:30:15 +00:00
test_future Fix compileall.py so that it fails on SyntaxErrors 2001-04-18 01:19:28 +00:00
test_gc
test_gdbm
test_getopt
test_gettext
test_gl
test_global test_global was broken by some recent checkin. Repairing. 2001-03-02 01:48:16 +00:00
test_grammar Add test for a list comprehension that is nested in the left-hand part 2001-03-19 20:42:11 +00:00
test_grp
test_gzip
test_hash
test_httplib Add test for SF bug #405427 2001-04-13 14:57:44 +00:00
test_imageop
test_imgfile
test_import
test_inspect inspect: a module for getting information out of live Python objects 2001-02-27 14:43:21 +00:00
test_iter Add test suite for iterators. 2001-04-21 13:33:54 +00:00
test_largefile
test_linuxaudiodev better format names and error messages 2001-01-15 22:21:39 +00:00
test_locale Patch #415777: new grouping strategy. 2001-04-13 08:09:50 +00:00
test_long
test_longexp
test_mailbox
test_math
test_md5
test_mimetools
test_MimeWriter
test_minidom Added test case for legal DOM children 2000-12-31 04:03:27 +00:00
test_mmap Fix the test output, now that escapes in repr() of string and Unicode 2001-01-24 21:49:57 +00:00
test_new
test_nis
test_ntpath
test_opcodes
test_openpty
test_operations
test_operator
test_parser Add more regression tests, including for the import statement variations. 2001-01-07 06:02:19 +00:00
test_pickle
test_pkg Patch #103343: Allow the important test_pkg to succeed under Jython. 2001-01-21 19:51:53 +00:00
test_poll
test_popen2
test_posixpath
test_pow
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_rfc822
test_rgbimg
test_richcmp Rich comparison tests 2001-01-18 15:48:05 +00:00
test_rotor Fix the test output, now that escapes in repr() of string and Unicode 2001-01-24 21:49:57 +00:00
test_sax
test_scope Fix 2.1 nested scopes crash reported by Evan Simpson 2001-04-27 02:29:40 +00:00
test_select
test_sha
test_signal
test_socket
test_sre SRE 2.1b2: increase the chances that the sre test works on other 2001-03-22 23:48:28 +00:00
test_strftime
test_string
test_StringIO In O_writelines: Replace use of string.joinfields with "".join. 2001-02-09 23:44:22 +00:00
test_strop
test_struct
test_sunaudiodev
test_sundry Jeremy's patch #103323: trivial tests of all untested modules. 2001-01-19 05:41:36 +00:00
test_symtable Add minimal interface to symtable: _symtable module. 2001-02-02 18:24:26 +00:00
test_thread
test_threadedtempfile Guido found a brand new race in tempfile on Linux, due to Linux changing 2001-01-13 03:04:02 +00:00
test_time
test_timing
test_tokenize Update to reflect new tokenize_test.py 2001-04-13 14:55:18 +00:00
test_traceback Test that traceback module works with SyntaxErrors with or without carets. 2001-03-21 20:33:04 +00:00
test_types
test_ucn improved the ucnhash test a bit 2001-01-19 11:13:46 +00:00
test_unicode
test_unicodedata
test_unpack
test_urllib
test_urlparse Add test cases based on RFC 1808. So now we actually have a test suite 2001-01-05 05:57:04 +00:00
test_userdict
test_userlist
test_userstring
test_wave
test_weakref Convert the weakref test suite to PyUNIT, and add tests that exercise weak 2001-03-23 04:22:45 +00:00
test_winreg
test_winsound
test_xmllib
test_xreadline Assorted xreadlines problems: 2001-01-09 23:26:39 +00:00
test_zipfile
test_zlib Add test case from bug #124981: zlib decompress of sync-flushed data 2001-02-21 02:17:01 +00:00