summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binop.py
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes (#2902)Ville Skyttä2017-08-031-1/+1
|
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* Anti-registration of various ABC methods.Guido van Rossum2016-08-181-1/+49
| | | | | | | | | | - Issue #25958: Support "anti-registration" of special methods from various ABCs, like __hash__, __iter__ or __len__. All these (and several more) can be set to None in an implementation class and the behavior will be as if the method is not defined at all. (Previously, this mechanism existed only for __hash__, to make mutable classes unhashable.) Code contributed by Andrew Barnert and Ivan Levkivskyi.
* Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+1
|
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Issue #4395: Better testing and documentation of binary operators.Robert Collins2015-08-061-1/+21
|\ | | | | | | Patch by Martin Panter.
| * Issue #4395: Better testing and documentation of binary operators.Robert Collins2015-08-061-1/+22
| | | | | | | | Patch by Martin Panter.
* | Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-4/+1
|/ | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* Issue #21408: The default __ne__() now returns NotImplemented if __eq__()Serhiy Storchaka2015-01-261-4/+0
| | | | returned NotImplemented. Removed incorrect implementations of __ne__().
* Syntax cleanup.Florent Xicluna2010-07-281-1/+1
|
* Issue #7435: Remove duplicate int/long tests, and otherMark Dickinson2009-12-051-9/+6
| | | | references to long in py3k. Patch provided by flox.
* Issue #6970: Remove redundant calls made when comparing objects.Mark Dickinson2009-11-151-2/+72
|
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-4/+4
|
* Issue 4910, patch 2 of (probably) 3: pave the way for renaming ofMark Dickinson2009-01-151-6/+0
| | | | | | | | | nb_long: remove last remaining use of nb_long (in the struct module) from the core, set nb_long slots on all builtin and extension types to 0, and remove uses of __long__ in test_complex and test_binop. Reviewed by Benjamin Peterson.
* division is no longer a future thing for test_binopBenjamin Peterson2008-06-281-12/+7
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Raise statement normalization in Lib/test/.Collin Winter2007-08-291-6/+6
|
* Rip out 'long' and 'L'-suffixed integer literals.Guido van Rossum2007-01-151-7/+7
| | | | (Rough first cut.)
* Patch #1550800: make exec a function.Georg Brandl2006-09-061-1/+1
|
* Get rid of remnants of integer divisionNeal Norwitz2006-03-241-4/+0
|
* Fix error in a docstring where a single quote started the docstring but tripleBrett Cannon2005-04-301-1/+1
| | | | | | quote ended it. Closes bug #1192777. Thanks Christopher Smith.
* 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. :)
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+6
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Rename 'getset' to 'property'.Guido van Rossum2001-09-061-2/+2
|
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-2/+2
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* Remove the local 'getset' class -- this is now a built-in type withGuido van Rossum2001-08-241-18/+0
| | | | the same signature.
* Fix for bug [#452230] future division isn't propagated.Tim Peters2001-08-171-0/+1
| | | | | | | builtin_eval wasn't merging in the compiler flags from the current frame; I suppose we never noticed this before because future division is the first future-feature that can affect expressions (nested_scopes and generators had only statement-level effects).
* A test suite for binary operators, disguised as a rational numberGuido van Rossum2001-08-081-0/+340
class.