gh-99430: Remove duplicated tests for old-styled classes (#99432)

python 1 & 2 were a loong time ago.
This commit is contained in:
Nikita Sobolev 2022-11-13 21:30:00 +03:00 committed by GitHub
parent 439b9cfaf4
commit d329f859b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 139 deletions

View file

@ -2380,12 +2380,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