circuitpython/tests/cpydiff/types_str_subclassequality.py

15 lines
228 B
Python

"""
categories: Types,str
description: Instance of a subclass of str cannot be compared for equality with an instance of a str
cause: Unknown
workaround: Unknown
"""
class S(str):
pass
s = S("hello")
print(s == "hello")