summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bool.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-1/+1
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-7/+5
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* - patch #1600346 submitted by Tomer FilibaJack Diederich2006-11-281-4/+31
| | | | | | - Renamed nb_nonzero slots to nb_bool - Renamed __nonzero__ methods to __bool__ - update core, lib, docs, and tests to match
* Anna Ravenscroft identified many occurrences of "file" used to open a fileAlex Martelli2006-08-241-1/+1
| | | | | | in the stdlib and changed each of them to use "open" instead. At this time there are no other known occurrences that can be safely changed (in Lib and all subdirectories thereof).
* Get rid of dict.has_key(). Boy this has a lot of repercussions!Guido van Rossum2006-08-181-3/+3
| | | | | | Not all code has been fixed yet; this is just a checkpoint... The C API still has PyDict_HasKey() and _HasKeyString(); not sure if I want to change those just yet.
* Quite a few fixes to make the library and test suite more robust whenGuido van Rossum2006-08-171-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cPickle cannot be imported. This was necessary because my last mass checkin broke cPickle and I don't feel like debugging it right now; but it seems a good idea in general not to require cPickle when pickle.py is also there. A few unrelated fixes for issues while debigging various test failures. setup.py: disable building of cPickle until I've fixed it Objects/... genobject.c: disallow raising string exceptions Lib/... Cookie.py: fix doctest not to fail if cPickle is missing ctypes/macholib/dyld.py: fix relative imports sqlite3/__init__.py: fix relative import xml/dom/__init__.py: fix relative import Lib/test/... regrtest.py: reduce list of skipped items on darwin test_generators.py: don't test string exceptions; test throw() errors test_traceback.py: don't test string exceptions pickletester.py: don't fail if cPickle is missing test_datetime.py: don't fail if cPickle is missing test_descr.py: don't fail if cPickle is missing (still some other failures) test_exceptions.py: don't fail if cPickle is missing test_re.py: don't fail if cPickle is missing test_array.py: use pickle, not cPickle test_bool.py: don't fail if cPickle is missing test_deque.py: use pickle, not cPickle test_logging.py: use pickle, not cPickle
* Whitespace normalization.Tim Peters2003-06-291-3/+3
|
* Add tests for __nonzero__() problems.Jeremy Hylton2003-06-271-0/+21
|
* Whitespace normalization.Tim Peters2003-05-121-1/+0
|
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-1/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Consistently use test_support.foo everywhere.Walter Dörwald2003-05-011-15/+5
| | | | | | Remove the last use of veris(). Remove now useless imports and functions.
* Factor out common boilerplate for test_supportRaymond Hettinger2003-04-271-3/+1
|
* Port test_bool.py to PyUnit. From SF patch #662807.Walter Dörwald2003-04-251-253/+328
|
* - bool() called without arguments now returns False rather thanGuido van Rossum2003-04-191-0/+1
| | | | | | | raising an exception. This is consistent with calling the constructors for the other builtin types -- called without argument they all return the false value of that type. (SF patch #724135) Thanks to Alex Martelli.
* 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. :)
* This is my nearly two year old patchMichael W. Hudson2002-06-111-1/+1
| | | | | | | | | [ 400998 ] experimental support for extended slicing on lists somewhat spruced up and better tested than it was when I wrote it. Includes docs & tests. The whatsnew section needs expanding, and arrays should support extended slices -- later.
* More mindless --disable-unicode proofing.Michael W. Hudson2002-05-201-23/+24
|
* Patch #542569: tp_print tp_repr tp_str in test_bool.py.Martin v. Löwis2002-04-141-1/+18
|
* Add tests for binary pickles.Guido van Rossum2002-04-051-0/+12
|
* Implement an idea by Paul Rubin:Guido van Rossum2002-04-051-0/+6
| | | | | | | | Change pickling format for bools to use a backwards compatible encoding. This means you can pickle True or False on Python 2.3 and Python 2.2 or before will read it back as 1 or 0. The code used for pickling bools before would create pickles that could not be read in previous Python versions.
* Oops. Here are the new files. My apologies.Guido van Rossum2002-04-031-0/+228