test that object has a __dir__() implementation
This commit is contained in:
parent
04778a8150
commit
dac9acedfd
|
@ -385,6 +385,8 @@ class BuiltinTest(unittest.TestCase):
|
||||||
except:
|
except:
|
||||||
self.assertEqual(len(dir(sys.exc_info()[2])), 4)
|
self.assertEqual(len(dir(sys.exc_info()[2])), 4)
|
||||||
|
|
||||||
|
# test that object has a __dir__()
|
||||||
|
self.assertEqual(sorted([].__dir__()), dir([]))
|
||||||
|
|
||||||
def test_divmod(self):
|
def test_divmod(self):
|
||||||
self.assertEqual(divmod(12, 7), (1, 5))
|
self.assertEqual(divmod(12, 7), (1, 5))
|
||||||
|
|
Loading…
Reference in New Issue