mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Fix more to pass unittest
This commit is contained in:
1 parent
e1ddbda4fc
commit
cf3572385c
14 files changed
+230
-284
No files matched your search
@@ -21,9 +21,8 @@ class C():
|
||||
|
||||
memoryview(bytearray('abcde', encoding='utf-8'))
|
||||
memoryview(array.array('i', [1, 2, 3]))
|
||||
# TODO: deal with subclass for buffer protocol
|
||||
# memoryview(A('b', [0]))
|
||||
# memoryview(B('abcde', encoding='utf-8'))
|
||||
memoryview(A('b', [0]))
|
||||
memoryview(B('abcde', encoding='utf-8'))
|
||||
|
||||
assert_raises(TypeError, lambda: memoryview([1, 2, 3]))
|
||||
assert_raises(TypeError, lambda: memoryview((1, 2, 3)))
|
||||
|
||||
Reference in new issue
Block a user