diff options
author | Guido van Rossum <guido@python.org> | 2001-08-07 16:53:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-07 16:53:42 (GMT) |
commit | 15d86c6297849dbacadfc07580934e3f39881057 (patch) | |
tree | 17820ee080aa43e4d825e9c2514a42d62766da7a /Lib/test/test_descr.py | |
parent | f040ede6e8a0ccb37f60798ad1cc48d265b5d2c2 (diff) | |
download | cpython-15d86c6297849dbacadfc07580934e3f39881057.zip cpython-15d86c6297849dbacadfc07580934e3f39881057.tar.gz cpython-15d86c6297849dbacadfc07580934e3f39881057.tar.bz2 |
Remove the test for the 'object' type -- it can no longer be
instantiated. (Its use as a base class is adequately tested by other
tests.)
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 92f79d5..5b5f137 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -472,29 +472,6 @@ def diamond(): verify(G().boo() == "C") verify(G.__mro__ == (G, E, D, C, B, A, object)) -def objects(): - if verbose: print "Testing object class..." - a = object() - verify(a.__class__ == object == type(a)) - b = object() - verify(a is not b) - verify(not hasattr(a, "foo")) - try: - a.foo = 12 - except TypeError: - pass - else: - verify(0, "object() should not allow setting a foo attribute") - verify(not hasattr(object(), "__dict__")) - - class Cdict(object): - pass - x = Cdict() - verify(x.__dict__ is None) - x.foo = 1 - verify(x.foo == 1) - verify(x.__dict__ == {'foo': 1}) - def slots(): if verbose: print "Testing __slots__..." class C0(object): @@ -812,7 +789,6 @@ def all(): pymods() multi() diamond() - objects() slots() dynamics() errors() |