From d291007fea82c3ba33835af6d66ed162196e351b Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 20 Dec 2016 14:08:27 +1100 Subject: [PATCH] tests/basics/builtin_dir: Add test for dir() of a type. --- tests/basics/builtin_dir.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/basics/builtin_dir.py b/tests/basics/builtin_dir.py index 70ab249603..843467e783 100644 --- a/tests/basics/builtin_dir.py +++ b/tests/basics/builtin_dir.py @@ -7,6 +7,9 @@ print('__name__' in dir()) import sys print('platform' in dir(sys)) +# dir of type +print('append' in dir(list)) + class Foo: def __init__(self): self.x = 1