summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_structseq.py
Commit message (Collapse)AuthorAgeFilesLines
* use assert[Not]In where appropriateEzio Melotti2010-01-231-2/+2
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-8/+8
|
* Temporarily revert 59967 until GC can be added.Raymond Hettinger2008-01-151-6/+0
|
* Issue 1820: structseq objects did not work with the % formatting operator ↵Raymond Hettinger2008-01-151-0/+6
| | | | | | or isinstance(t, tuple). Orignal patch (without tests) by Leif Walsh.
* Added new an better structseq representation. E.g. repr(time.gmtime(0)) now ↵Christian Heimes2008-01-141-1/+5
| | | | returns 'time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)' instead of '(1970, 1, 1, 0, 0, 0, 3, 1, 0)'. The feature is part of #1816: sys.flags
* Improve extended slicing support in builtin types and classes. Specifically:Thomas Wouters2007-08-281-0/+12
| | | | | | | | | | | | | | | | | | | | - Specialcase extended slices that amount to a shallow copy the same way as is done for simple slices, in the tuple, string and unicode case. - Specialcase step-1 extended slices to optimize the common case for all involved types. - For lists, allow extended slice assignment of differing lengths as long as the step is 1. (Previously, 'l[:2:1] = []' failed even though 'l[:2] = []' and 'l[:2:None] = []' do not.) - Implement extended slicing for buffer, array, structseq, mmap and UserString.UserString. - Implement slice-object support (but not non-step-1 slice assignment) for UserString.MutableString. - Add tests for all new functionality.
* SF patch #736962: Port tests to unittestRaymond Hettinger2003-08-301-25/+101
| | | | | | | | (Contributed by Walter Dörwald). * Convert three test modules to unittest format. * Expanded coverage in test_structseq.py. * Raymond added a new test in test_sets.py
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Test forMichael W. Hudson2002-03-061-0/+12
| | | | | | [ 526039 ] devious code can crash structseqs Bugfix candidate.
* Huh. In an effort to be less thorough <wink>, seems I checked in a newTim Peters2001-10-311-1/+1
| | | | test that wouldn't even compile,
* Fix bad bug in structseq slicing (NULL pointers in result). Reported byTim Peters2001-10-301-0/+16
Jack Jansen on python-dev. Add simple test case. Move vereq() from test_descr to test_support (it's handy!).