mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue 12647: Add __bool__() method to the None object.
This commit is contained in:
parent
a2250e61db
commit
66d2be8986
3 changed files with 48 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue