tests/basics/builtin_slice: Add test for "slice" builtin name.

This commit is contained in:
Damien George 2016-10-22 14:39:03 +11:00
parent bdb0d2d0bc
commit bc5b896f24
1 changed files with 5 additions and 1 deletions

View File

@ -4,4 +4,8 @@
class A:
def __getitem__(self, idx):
print(idx)
A()[1:2:3]
return idx
s = A()[1:2:3]
# check type
print(type(s) is slice)