Home
last modified time | relevance | path

Searched refs:StrSubclass (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_str.py7 class StrSubclass(str): class
114 self.assertEqual(StrSubclass(Foo8("foo")), "foofoo")
115 self.assertIs(type(StrSubclass(Foo8("foo"))), StrSubclass)
/external/python/cpython3/Lib/test/
Dtest_unicode.py46 class StrSubclass(str): class
1505 subclass = StrSubclass(text)
2259 s = StrSubclass(StrSubclassToStrSubclass("foo"))
2261 self.assertIs(type(s), StrSubclass)
Dtest_pathlib.py209 class StrSubclass(str): class
212 p = P(*(StrSubclass(x) for x in args))