summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_slice.py
Commit message (Collapse)AuthorAgeFilesLines
* add gc support to slice (closes #26659)Benjamin Peterson2016-04-161-1/+12
|
* Issue #24134: Use assertRaises() in context manager form in test_slice toSerhiy Storchaka2015-05-201-1/+2
| | | | avoid passing the test accidently because slice.__hash__ is None.
* 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. ........
* #7092 - Silence more py3k deprecation warnings, using ↵Florent Xicluna2010-03-211-1/+2
| | | | test_support.check_py3k_warnings() helper.
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-3/+1
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-1/+3
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-1/+1
|
* Issue 2235: Py3k warnings are now emitted for classes that will no longer ↵Nick Coghlan2008-08-111-0/+1
| | | | inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
* Issue #3004: Minor fix to slice.indices(). slice(-10).indices(9) nowMark Dickinson2008-06-201-0/+14
| | | | | returns (0, 0, 1) instead of (0, -1, 1), and slice(None, 10, -1).indices(10) returns (9, 9, -1) instead of (9, 10, -1).
* SF 1191699: Make slices picklableRaymond Hettinger2007-04-111-0/+8
|
* A test case for the fix in #1674228.Georg Brandl2007-03-061-0/+11
|
* SF bug #800796: Difference between hash() and __hash__()Raymond Hettinger2003-09-051-0/+5
| | | | slice(5).__hash__() now raises a TypeError.
* SF patch #736962: Port tests to unittest (Part 2)Raymond Hettinger2003-09-021-12/+90
| | | | | | | (Contributed by Walter Dörwald.) * Convert test_slice.py to unittest format * Expand the test coverage.
* Some days, I think my comment ofMichael W. Hudson2002-11-051-0/+3
| | | | | | | | | | | | /* this is harder to get right than you might think */ angered some God somewhere. After noticing >>> range(5000000)[slice(96360, None, 439)] [] I found that my cute test for the slice being empty failed due to overflow. Fixed, and added simple test (not the above!).
* Whitespace normalization.Tim Peters2002-08-081-1/+0
|
* 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. :)
* A few days ago, Guido said (in the thread "[Python-Dev] PythonMichael W. Hudson2002-07-191-0/+14
version of PySlice_GetIndicesEx"): > OK. Michael, if you want to check in indices(), go ahead. Then I did what was needed, but didn't check it in. Here it is.