diff options
| author | Paul Sokolovsky | 2014-04-05 13:09:33 +0300 |
|---|---|---|
| committer | Paul Sokolovsky | 2014-04-05 13:10:56 +0300 |
| commit | 438d504e27790bd3186051367f7c2afc266ba1e6 (patch) | |
| tree | 5d4eee4acecc67d1ffb3139b9631f90333dce1ba /tests/basics | |
| parent | 91cbe6033a8fec6b11c414670f7ed75e9598857c (diff) | |
objtype: Add equality test for type types.
Diffstat (limited to 'tests/basics')
| -rw-r--r-- | tests/basics/types2.py (renamed from tests/basics/types_hash.py) | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/types_hash.py b/tests/basics/types2.py index 2595097d2..83a69c918 100644 --- a/tests/basics/types_hash.py +++ b/tests/basics/types2.py @@ -4,3 +4,9 @@ print(hash(int) != 0) print(hash(list) != 0) class Foo: pass print(hash(Foo) != 0) + +print(int == int) +print(int != list) + +d = {} +d[int] = float |
