mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
test that object has a __dir__() implementation
This commit is contained in:
parent
04778a8150
commit
dac9acedfd
1 changed files with 2 additions and 0 deletions
|
|
@ -385,6 +385,8 @@ def __dir__(self):
|
|||
except:
|
||||
self.assertEqual(len(dir(sys.exc_info()[2])), 4)
|
||||
|
||||
# test that object has a __dir__()
|
||||
self.assertEqual(sorted([].__dir__()), dir([]))
|
||||
|
||||
def test_divmod(self):
|
||||
self.assertEqual(divmod(12, 7), (1, 5))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue