Issue 12647: Add __bool__() method to the None object.

This commit is contained in:
Raymond Hettinger 2011-07-28 09:55:13 -07:00
parent a2250e61db
commit 66d2be8986
3 changed files with 48 additions and 5 deletions

View file

@ -2068,9 +2068,6 @@ order (MRO) for bases """
# Two essentially featureless objects, just inheriting stuff from
# object.
self.assertEqual(dir(NotImplemented), dir(Ellipsis))
if support.check_impl_detail():
# None differs in PyPy: it has a __nonzero__
self.assertEqual(dir(None), dir(Ellipsis))
# Nasty test case for proxied objects
class Wrapper(object):