mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.11] gh-99430: Remove duplicated tests for old-styled classes (GH-99432) (GH-115298)
python 1 & 2 were a loong time ago.
(cherry picked from commit d329f859b9
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
7273a58a85
commit
75d92f5c4e
5 changed files with 6 additions and 139 deletions
|
@ -2443,12 +2443,7 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
def __repr__(self):
|
||||
return '\\n'
|
||||
|
||||
class s2:
|
||||
def __repr__(self):
|
||||
return '\\n'
|
||||
|
||||
self.assertEqual(repr(s1()), '\\n')
|
||||
self.assertEqual(repr(s2()), '\\n')
|
||||
|
||||
def test_printable_repr(self):
|
||||
self.assertEqual(repr('\U00010000'), "'%c'" % (0x10000,)) # printable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue