Guido van Rossum
a4ff6ab093
Add tests for overridable operators that have default interpretations
...
(__hash__ etc.), in static and dynamic classes, overridden and
default.
2001-08-15 23:57:59 +00:00
Just van Rossum
ba634b2ec3
Rewrote Jack's latest change so it does what it intended to do...
2001-08-15 21:20:42 +00:00
Guido van Rossum
28962cc0ea
Given a class without __cmp__ or __eq__, cmp() of two instances of
...
that class should compare the id() of those instances. Add a test
that verifies this. This test currently fails; I believe this is
caused by object.c:2.132 (Patch #424475 by loewis).
2001-08-15 21:02:20 +00:00
Guido van Rossum
b5a136b05d
Add a test to verify that bound methods work correctly.
2001-08-15 17:51:17 +00:00
Jack Jansen
31b5323c84
Don't remove non-directories from sys.path on the mac: files
...
can be on sys.path too.
2001-08-15 12:07:46 +00:00
Tim Peters
e5614630fb
Move one of the tests into the "PEP 255" section, to reflect a change in
...
the PEP.
2001-08-15 04:41:19 +00:00
Jeremy Hylton
9272b14d62
Fix typo in astgen script
2001-08-14 21:18:30 +00:00
Guido van Rossum
80e36750c8
Add a test for a weird bug I just discovered: a dynamic subclass
...
doesn't have a __dict__!
2001-08-14 20:00:33 +00:00
Jeremy Hylton
7713ac2ff1
Regenerated from new ast.txt and new astgen.py
2001-08-14 18:59:01 +00:00
Barry Warsaw
033daa49ea
Test the new semantics for setting and deleting a function's __dict__
...
attribute. Deleting it, or setting it to a non-dictionary result in a
TypeError. Note that getting it the first time magically initializes
it to an empty dict so that func.__dict__ will always appear to be a
dictionary (never None).
Closes SF bug #446645 .
2001-08-14 18:28:28 +00:00
Barry Warsaw
b9c1d3dedf
reload(exceptions) should not raise an ImportError, but should act
...
just like reload(sys). Test that this is so. Closes SF bug #422004 .
2001-08-13 23:07:00 +00:00
Tim Peters
04601063e8
Repair Unix-specific assumptions that caused this to fail on Windows.
2001-08-13 22:25:24 +00:00
Barry Warsaw
406d46e185
found_terminator(): Add a debug print showing the data.
2001-08-13 21:18:01 +00:00
Fred Drake
3a28ca8fb8
Nick Mathewson: test suite for the class browser support module.
2001-08-13 20:26:19 +00:00
Fred Drake
03f7a70345
Nick Mathewson: Make sure the recursion is handled properly.
...
This is part of SF patch #440292 .
2001-08-13 20:20:51 +00:00
Guido van Rossum
97dbec97bc
Remove redundant import (PyChecker).
...
Update greeting message to avoid the long copyright notice.
2001-08-13 15:58:26 +00:00
Guido van Rossum
4a5555b19d
Remove unused variable 'imports' from readmodule_ex().
2001-08-13 15:55:19 +00:00
Guido van Rossum
8f15bd8500
Remove redundant 'import string' (PyChecker).
2001-08-13 15:48:06 +00:00
Guido van Rossum
ef8f4dee07
Remove redundant imports (PyChecker).
2001-08-13 15:37:02 +00:00
Guido van Rossum
a79bbaca54
Remove redundant 'import sys' (PyChecker).
2001-08-13 15:34:41 +00:00
Guido van Rossum
f9f48812d0
Remove two redundant statements (PyChecker).
2001-08-13 15:30:22 +00:00
Guido van Rossum
bfbc18dbf9
Remove redundant assignment l = [] from poll3() -- copy-and-paste
...
error.
2001-08-13 15:21:55 +00:00
Guido van Rossum
8710681400
Commenting out the getfillable() method -- it's broken, and nobody
...
remembers what it is supposed to do. :-(
2001-08-13 15:04:33 +00:00
Andrew M. Kuchling
7c2cf73811
Remove redefinition of has_option() method
2001-08-13 14:58:32 +00:00
Andrew M. Kuchling
8ea9227b1b
Remove empty __init__ (PyChecker)
2001-08-13 14:55:17 +00:00
Andrew M. Kuchling
f31d31373e
Remove redefinition of writelines() method
...
Remove unused variable and import
2001-08-13 14:54:12 +00:00
Andrew M. Kuchling
77f9caf633
Remove unused variable (PyChecker)
2001-08-13 14:52:37 +00:00
Andrew M. Kuchling
1f877ef199
Remove some dead code (PyChecker)
2001-08-13 14:50:44 +00:00
Andrew M. Kuchling
86c7e22036
Add forgotten import (PyChecker)
2001-08-13 14:47:12 +00:00
Andrew M. Kuchling
e7abf97903
Remove unused import (PyChecker)
2001-08-13 14:43:43 +00:00
Andrew M. Kuchling
6be424fdd6
Remove redundant import
2001-08-13 14:41:39 +00:00
Andrew M. Kuchling
994b51e906
Capture exception message (PyChecker)
2001-08-13 14:40:47 +00:00
Andrew M. Kuchling
a49e0a0893
Remove unused imports (PyChecker)
2001-08-13 14:40:29 +00:00
Andrew M. Kuchling
3e44248483
Remove unused variable
2001-08-13 14:38:50 +00:00
Andrew M. Kuchling
118aa5337c
Fix malformed line (PyChecker)
2001-08-13 14:37:23 +00:00
Guido van Rossum
49fa2bdaa1
Fix two bugs discovered by PyChecker. (I cannot test these, but I'm
...
confident that the old code was utterly broken -- the worse that can
happen is that the new code is still broken.)
2001-08-13 14:12:35 +00:00
Andrew M. Kuchling
246c425964
Fix for NameError caught by PyChecker.
...
(This command seems to be essentially untested; should fix that...)
2001-08-13 13:56:24 +00:00
Andrew M. Kuchling
fd6608bcea
Fix typo (PyChecker)
2001-08-13 13:48:55 +00:00
Andrew M. Kuchling
fee3126eb3
Catch curses.error instead of a non-existent global (PyChecker)
...
Edit comment
2001-08-13 13:47:23 +00:00
Andrew M. Kuchling
40ea6177b9
Remove redundant import
2001-08-13 13:45:22 +00:00
Steven M. Gava
33277c767f
further work on font config and general feel improvements
2001-08-13 04:36:58 +00:00
Tim Peters
5e824c37d3
SF patch #445412 extract ndiff functionality to difflib, from
...
David Goodger.
2001-08-12 22:25:01 +00:00
Jeremy Hylton
39f77bc90e
Modify _Set to support iteration.
...
Otherwise printlist(surprise) will fail with a TypeError, because map
is called with an argument that doesn't support iteration.
2001-08-12 21:53:08 +00:00
Guido van Rossum
d3077402c7
- Expand test for dynamic objects.
...
- Remove various 'global' directives and move some global definitions
inside the test functions that use them -- we have nested scopes so
the old hacks using globals are no longer needed.
2001-08-12 05:24:18 +00:00
Tim Peters
a45da92484
Make the output of tests skipped readable (i.e., deliberately break it
...
into indented lines each of which probably fits on a typical screen line).
2001-08-12 03:45:50 +00:00
Guido van Rossum
9d4fe4298e
dynamics(): add tests for dynamic *instances* (which are currently
...
broken). Also fix an invalid reference to C (should be S).
2001-08-12 03:38:18 +00:00
Jeremy Hylton
08a6403973
Test the unary operator changes to the compiler
2001-08-12 02:22:27 +00:00
Guido van Rossum
f73e30c3e3
Add the list of expected skips for Linux 2.x. Restructured the code a
...
little bit using a dictionary to avoid more code duplication as
more platforms are supported.
2001-08-12 02:22:19 +00:00
Tim Peters
a2be2d624a
Move line; reported on python-dev by Mark Favas (thanks!).
2001-08-12 02:01:09 +00:00
Tim Peters
b5b7b78414
Teach regrtest which tests we *expect* to skip on Win32. Please teach it
...
about your platform too.
2001-08-12 01:20:39 +00:00