diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/types_hash.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/types_hash.py b/tests/basics/types_hash.py new file mode 100644 index 0000000000..2595097d2d --- /dev/null +++ b/tests/basics/types_hash.py @@ -0,0 +1,6 @@ +# Types are hashable +print(hash(type) != 0) +print(hash(int) != 0) +print(hash(list) != 0) +class Foo: pass +print(hash(Foo) != 0) |