Commit 2eff9c29 authored by Rami Ali's avatar Rami Ali
Browse files

tests/basics: Improve user class coverage.

parent 1b41caca
......@@ -15,3 +15,12 @@ c = C()
print(c[1])
c[1] = 2
del c[3]
# index not supported
class A:
pass
a = A()
try:
a[1]
except TypeError:
print('TypeError')
# converting user instance to buffer
class C:
pass
c = C()
try:
d = bytearray(c)
except TypeError:
print('TypeError')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment