8000 tests: Move CPy diff test to real test now that subclass equality works. · boris93/micropython@69b415f · GitHub
[go: up one dir, main page]

Skip to content

Commit 69b415f

Browse files
committed
tests: Move CPy diff test to real test now that subclass equality works.
Testing for equality of subclassed strings now works, thanks to commit 3aab54b
1 parent ff9a61b commit 69b415f

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

tests/basics/subclass_native_str.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Test subclassing built-in str
2+
3+
class S(str):
4+
pass
5+
6+
s = S('hello')
7+
print(s == 'hello')
8+
print('hello' == s)
9+
print(s == 'Hello')
10+
print('Hello' == s)

tests/cpydiff/types_str_subclassequality.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0